aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_isr.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2005-07-06 13:30:26 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-07-14 10:54:46 -0400
commit3d71644cf952fd1157a13173237258422ba3c569 (patch)
tree1bae220781b973a9dca754a08aa7630e05ffc50e /drivers/scsi/qla2xxx/qla_isr.c
parentac96202ba096f8fc1ccaf45a2f159a52639ece29 (diff)
[SCSI] qla2xxx: Add ISP24xx definitions.
Add ISP24xx definitions. Add requisite structure definitions and #define's for ISP24xx support. Also drop volatile modifiers from device_reg_* register layouts as the members are never really accessed, only their offsets within the layout are used during reads and writes. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_isr.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 117b56242ee2..f38d13628f43 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -41,7 +41,7 @@ irqreturn_t
41qla2100_intr_handler(int irq, void *dev_id, struct pt_regs *regs) 41qla2100_intr_handler(int irq, void *dev_id, struct pt_regs *regs)
42{ 42{
43 scsi_qla_host_t *ha; 43 scsi_qla_host_t *ha;
44 device_reg_t __iomem *reg; 44 struct device_reg_2xxx __iomem *reg;
45 int status; 45 int status;
46 unsigned long flags; 46 unsigned long flags;
47 unsigned long iter; 47 unsigned long iter;
@@ -54,7 +54,7 @@ qla2100_intr_handler(int irq, void *dev_id, struct pt_regs *regs)
54 return (IRQ_NONE); 54 return (IRQ_NONE);
55 } 55 }
56 56
57 reg = ha->iobase; 57 reg = &ha->iobase->isp;
58 status = 0; 58 status = 0;
59 59
60 spin_lock_irqsave(&ha->hardware_lock, flags); 60 spin_lock_irqsave(&ha->hardware_lock, flags);
@@ -118,7 +118,7 @@ irqreturn_t
118qla2300_intr_handler(int irq, void *dev_id, struct pt_regs *regs) 118qla2300_intr_handler(int irq, void *dev_id, struct pt_regs *regs)
119{ 119{
120 scsi_qla_host_t *ha; 120 scsi_qla_host_t *ha;
121 device_reg_t __iomem *reg; 121 struct device_reg_2xxx __iomem *reg;
122 int status; 122 int status;
123 unsigned long flags; 123 unsigned long flags;
124 unsigned long iter; 124 unsigned long iter;
@@ -133,7 +133,7 @@ qla2300_intr_handler(int irq, void *dev_id, struct pt_regs *regs)
133 return (IRQ_NONE); 133 return (IRQ_NONE);
134 } 134 }
135 135
136 reg = ha->iobase; 136 reg = &ha->iobase->isp;
137 status = 0; 137 status = 0;
138 138
139 spin_lock_irqsave(&ha->hardware_lock, flags); 139 spin_lock_irqsave(&ha->hardware_lock, flags);
@@ -220,7 +220,7 @@ qla2x00_mbx_completion(scsi_qla_host_t *ha, uint16_t mb0)
220{ 220{
221 uint16_t cnt; 221 uint16_t cnt;
222 uint16_t __iomem *wptr; 222 uint16_t __iomem *wptr;
223 device_reg_t __iomem *reg = ha->iobase; 223 struct device_reg_2xxx __iomem *reg = &ha->iobase->isp;
224 224
225 /* Load return mailbox registers. */ 225 /* Load return mailbox registers. */
226 ha->flags.mbox_int = 1; 226 ha->flags.mbox_int = 1;
@@ -261,7 +261,7 @@ qla2x00_async_event(scsi_qla_host_t *ha, uint32_t mbx)
261 uint16_t handle_cnt; 261 uint16_t handle_cnt;
262 uint16_t cnt; 262 uint16_t cnt;
263 uint32_t handles[5]; 263 uint32_t handles[5];
264 device_reg_t __iomem *reg = ha->iobase; 264 struct device_reg_2xxx __iomem *reg = &ha->iobase->isp;
265 uint32_t rscn_entry, host_pid; 265 uint32_t rscn_entry, host_pid;
266 uint8_t rscn_queue_index; 266 uint8_t rscn_queue_index;
267 267
@@ -707,7 +707,7 @@ qla2x00_process_completed_request(struct scsi_qla_host *ha, uint32_t index)
707void 707void
708qla2x00_process_response_queue(struct scsi_qla_host *ha) 708qla2x00_process_response_queue(struct scsi_qla_host *ha)
709{ 709{
710 device_reg_t __iomem *reg = ha->iobase; 710 struct device_reg_2xxx __iomem *reg = &ha->iobase->isp;
711 sts_entry_t *pkt; 711 sts_entry_t *pkt;
712 uint16_t handle_cnt; 712 uint16_t handle_cnt;
713 uint16_t cnt; 713 uint16_t cnt;