*
*/
+#include <linux/config.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/kernel.h>
{
hysdn_card *card = dev_id; /* parameter from irq */
tErgDpram *dpr;
- unsigned long flags;
- unsigned char volatile b;
+ ulong flags;
+ uchar volatile b;
if (!card)
return IRQ_NONE; /* error -> spurious interrupt */
{
tErgDpram *dpr;
int again;
- unsigned long flags;
+ ulong flags;
if (card->state != CARD_STATE_RUN)
return; /* invalid call */
static void
ergo_stopcard(hysdn_card * card)
{
- unsigned long flags;
- unsigned char val;
+ ulong flags;
+ uchar val;
hysdn_net_release(card); /* first release the net device if existing */
#ifdef CONFIG_HYSDN_CAPI
static void
ergo_set_errlog_state(hysdn_card * card, int on)
{
- unsigned long flags;
+ ulong flags;
if (card->state != CARD_STATE_RUN) {
card->err_log_state = ERRLOG_STATE_OFF; /* must be off */
/* Negative return values are interpreted as errors. */
/*****************************************************************************/
static int
-ergo_writebootimg(struct HYSDN_CARD *card, unsigned char *buf,
- unsigned long offs)
+ergo_writebootimg(struct HYSDN_CARD *card, uchar * buf, ulong offs)
{
- unsigned char *dst;
+ uchar *dst;
tErgDpram *dpram;
int cnt = (BOOT_IMG_SIZE >> 2); /* number of words to move and swap (byte order!) */
/* case of errors a negative error value is returned. */
/********************************************************************************/
static int
-ergo_writebootseq(struct HYSDN_CARD *card, unsigned char *buf, int len)
+ergo_writebootseq(struct HYSDN_CARD *card, uchar * buf, int len)
{
tDpramBootSpooler *sp = (tDpramBootSpooler *) card->dpram;
- unsigned char *dst;
- unsigned char buflen;
+ uchar *dst;
+ uchar buflen;
int nr_write;
- unsigned char tmp_rdptr;
- unsigned char wr_mirror;
+ uchar tmp_rdptr;
+ uchar wr_mirror;
int i;
if (card->debug_flags & LOG_POF_CARD)
{
tErgDpram *dpr = card->dpram; /* pointer to DPRAM structure */
int timecnt = 10000 / 50; /* timeout is 10 secs max. */
- unsigned long flags;
+ ulong flags;
int msg_size;
int i;
if ((dpr->ToPcChannel != CHAN_SYSTEM) ||
(dpr->ToPcSize < MIN_RDY_MSG_SIZE) ||
(dpr->ToPcSize > MAX_RDY_MSG_SIZE) ||
- ((*(unsigned long *) dpr->ToPcBuf) != RDY_MAGIC))
+ ((*(ulong *) dpr->ToPcBuf) != RDY_MAGIC))
break; /* an error occurred */
/* Check for additional data delivered during SysReady */
}
ergo_stopcard(card); /* disable interrupts */
- if (request_irq(card->irq, ergo_interrupt, IRQF_SHARED, "HYSDN", card)) {
+ if (request_irq(card->irq, ergo_interrupt, SA_SHIRQ, "HYSDN", card)) {
ergo_releasehardware(card); /* return the acquired hardware */
return (-1);
}