mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
qla2xxx: Use register names instead of register offsets
[ commit c3888416221849ed46fd35413c7a1d00ee291cbe upstream ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8969 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -17,14 +17,14 @@ static void
|
||||
qla27xx_write_remote_reg(struct scsi_qla_host *vha,
|
||||
u32 addr, u32 data)
|
||||
{
|
||||
char *reg = (char *)ISPREG(vha);
|
||||
struct device_reg_24xx __iomem *reg = &vha->hw->iobase->isp24;
|
||||
|
||||
ql_dbg(ql_dbg_misc, vha, 0xd300,
|
||||
"%s: addr/data = %xh/%xh\n", __func__, addr, data);
|
||||
|
||||
WRT_REG_DWORD(reg + IOBASE(vha), 0x40);
|
||||
WRT_REG_DWORD(reg + 0xc4, data);
|
||||
WRT_REG_DWORD(reg + 0xc0, addr);
|
||||
WRT_REG_DWORD(®->iobase_addr, 0x40);
|
||||
WRT_REG_DWORD(®->iobase_c4, data);
|
||||
WRT_REG_DWORD(®->iobase_window, addr);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user