summaryrefslogtreecommitdiff
path: root/linux/src
diff options
context:
space:
mode:
Diffstat (limited to 'linux/src')
-rw-r--r--linux/src/drivers/scsi/advansys.c26
-rw-r--r--linux/src/drivers/scsi/aha152x.c2
-rw-r--r--linux/src/drivers/scsi/aha1542.c2
-rw-r--r--linux/src/drivers/scsi/aic7xxx.c2
-rw-r--r--linux/src/drivers/scsi/ultrastor.c12
5 files changed, 22 insertions, 22 deletions
diff --git a/linux/src/drivers/scsi/advansys.c b/linux/src/drivers/scsi/advansys.c
index b7bfcc1..ef61fac 100644
--- a/linux/src/drivers/scsi/advansys.c
+++ b/linux/src/drivers/scsi/advansys.c
@@ -2033,8 +2033,8 @@ STATIC void AscSetISAPNPWaitForKey(void);
STATIC uchar AscGetChipIRQ(PortAddr, ushort);
STATIC uchar AscSetChipIRQ(PortAddr, uchar, ushort);
STATIC ushort AscGetChipBiosAddress(PortAddr, ushort);
-STATIC int DvcEnterCritical(void);
-STATIC void DvcLeaveCritical(int);
+STATIC long DvcEnterCritical(void);
+STATIC void DvcLeaveCritical(long);
STATIC void DvcInPortWords(PortAddr, ushort *, int);
STATIC void DvcOutPortWords(PortAddr, ushort *, int);
STATIC void DvcOutPortDWords(PortAddr, ulong *, int);
@@ -2870,8 +2870,8 @@ typedef struct adv_scsi_req_q {
/*
* Device drivers must define the following functions.
*/
-STATIC int DvcEnterCritical(void);
-STATIC void DvcLeaveCritical(int);
+STATIC long DvcEnterCritical(void);
+STATIC void DvcLeaveCritical(long);
STATIC void DvcSleepMilliSecond(ulong);
STATIC uchar DvcAdvReadPCIConfigByte(ADV_DVC_VAR *, ushort);
STATIC void DvcAdvWritePCIConfigByte(ADV_DVC_VAR *, ushort, uchar);
@@ -5400,7 +5400,7 @@ advansys_queuecommand(Scsi_Cmnd *scp, void (*done)(Scsi_Cmnd *))
{
struct Scsi_Host *shp;
asc_board_t *boardp;
- int flags;
+ long flags;
Scsi_Cmnd *done_scp;
shp = scp->host;
@@ -5495,7 +5495,7 @@ advansys_abort(Scsi_Cmnd *scp)
asc_board_t *boardp;
ASC_DVC_VAR *asc_dvc_varp;
ADV_DVC_VAR *adv_dvc_varp;
- int flags;
+ long flags;
int do_scsi_done;
int scp_found;
Scsi_Cmnd *done_scp = NULL;
@@ -5734,7 +5734,7 @@ advansys_reset(Scsi_Cmnd *scp, unsigned int reset_flags)
asc_board_t *boardp;
ASC_DVC_VAR *asc_dvc_varp;
ADV_DVC_VAR *adv_dvc_varp;
- int flags;
+ long flags;
Scsi_Cmnd *done_scp = NULL, *last_scp = NULL;
Scsi_Cmnd *tscp, *new_last_scp;
int do_scsi_done;
@@ -6269,7 +6269,7 @@ advansys_interrupt(int irq, void *dev_id, struct pt_regs *regs)
#endif /* version >= v1.3.70 */
{
#if LINUX_VERSION_CODE < ASC_LINUX_VERSION(2,1,95)
- int flags;
+ long flags;
#else /* version >= v2.1.95 */
unsigned long flags;
#endif /* version >= v2.1.95 */
@@ -9227,10 +9227,10 @@ DvcSleepMilliSecond(ulong n)
}
}
-STATIC int
+STATIC long
DvcEnterCritical(void)
{
- int flags;
+ long flags;
save_flags(flags);
cli();
@@ -9238,7 +9238,7 @@ DvcEnterCritical(void)
}
STATIC void
-DvcLeaveCritical(int flags)
+DvcLeaveCritical(long flags)
{
restore_flags(flags);
}
@@ -10198,7 +10198,7 @@ asc_prt_hex(char *f, uchar *s, int l)
STATIC int
interrupts_enabled(void)
{
- int flags;
+ long flags;
save_flags(flags);
if (flags & 0x0200) {
@@ -15078,7 +15078,7 @@ AdvISR(ADV_DVC_VAR *asc_dvc)
uchar int_stat;
ushort next_done_loc, target_bit;
int completed_q;
- int flags;
+ long flags;
ADV_SCSI_REQ_Q *scsiq;
ASC_REQ_SENSE *sense_data;
int ret;
diff --git a/linux/src/drivers/scsi/aha152x.c b/linux/src/drivers/scsi/aha152x.c
index a5724bf..44fe1b0 100644
--- a/linux/src/drivers/scsi/aha152x.c
+++ b/linux/src/drivers/scsi/aha152x.c
@@ -1539,7 +1539,7 @@ void aha152x_done(struct Scsi_Host *shpnt, int error)
void aha152x_intr(int irqno, void *dev_id, struct pt_regs * regs)
{
struct Scsi_Host *shpnt = aha152x_host[irqno-IRQ_MIN];
- unsigned int flags;
+ unsigned long flags;
int done=0, phase;
#if defined(DEBUG_RACE)
diff --git a/linux/src/drivers/scsi/aha1542.c b/linux/src/drivers/scsi/aha1542.c
index 113b499..cc27e5c 100644
--- a/linux/src/drivers/scsi/aha1542.c
+++ b/linux/src/drivers/scsi/aha1542.c
@@ -356,7 +356,7 @@ static void aha1542_intr_handle(int irq, void *dev_id, struct pt_regs *regs)
void (*my_done)(Scsi_Cmnd *) = NULL;
int errstatus, mbi, mbo, mbistatus;
int number_serviced;
- unsigned int flags;
+ unsigned long flags;
struct Scsi_Host * shost;
Scsi_Cmnd * SCtmp;
int flag;
diff --git a/linux/src/drivers/scsi/aic7xxx.c b/linux/src/drivers/scsi/aic7xxx.c
index be817bb..93bed41 100644
--- a/linux/src/drivers/scsi/aic7xxx.c
+++ b/linux/src/drivers/scsi/aic7xxx.c
@@ -2800,7 +2800,7 @@ aic7xxx_done_cmds_complete(struct aic7xxx_host *p)
{
Scsi_Cmnd *cmd;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,1,95)
- unsigned int cpu_flags = 0;
+ unsigned long cpu_flags = 0;
#endif
DRIVER_LOCK
diff --git a/linux/src/drivers/scsi/ultrastor.c b/linux/src/drivers/scsi/ultrastor.c
index a1a1982..de82472 100644
--- a/linux/src/drivers/scsi/ultrastor.c
+++ b/linux/src/drivers/scsi/ultrastor.c
@@ -333,7 +333,7 @@ static void log_ultrastor_abort(register struct ultrastor_config *config,
{
static char fmt[80] = "abort %d (%x); MSCP free pool: %x;";
register int i;
- int flags;
+ unsigned long flags;
save_flags(flags);
cli();
@@ -681,7 +681,7 @@ int ultrastor_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
int mscp_index;
#endif
unsigned int status;
- int flags;
+ unsigned long flags;
/* Next test is for debugging; "can't happen" */
if ((config.mscp_free & ((1U << ULTRASTOR_MAX_CMDS) - 1)) == 0)
@@ -853,7 +853,7 @@ int ultrastor_abort(Scsi_Cmnd *SCpnt)
{
int port0 = (config.slot << 12) | 0xc80;
int i;
- int flags;
+ unsigned long flags;
save_flags(flags);
cli();
strcpy(out, "OGM %d:%x ICM %d:%x ports: ");
@@ -879,7 +879,7 @@ int ultrastor_abort(Scsi_Cmnd *SCpnt)
if (config.slot ? inb(config.icm_address - 1) == 2 :
(inb(SYS_DOORBELL_INTR(config.doorbell_address)) & 1))
{
- int flags;
+ unsigned long flags;
save_flags(flags);
printk("Ux4F: abort while completed command pending\n");
restore_flags(flags);
@@ -901,7 +901,7 @@ int ultrastor_abort(Scsi_Cmnd *SCpnt)
and the interrupt handler will call done. */
if (config.slot && inb(config.ogm_address - 1) == 0)
{
- int flags;
+ unsigned long flags;
save_flags(flags);
cli();
@@ -953,7 +953,7 @@ int ultrastor_abort(Scsi_Cmnd *SCpnt)
int ultrastor_reset(Scsi_Cmnd * SCpnt, unsigned int reset_flags)
{
- int flags;
+ unsigned long flags;
register int i;
#if (ULTRASTOR_DEBUG & UD_RESET)
printk("US14F: reset: called\n");