summaryrefslogtreecommitdiffstats
path: root/sys/dev/ida
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2000-12-01 15:26:11 +0000
committerjlemon <jlemon@FreeBSD.org>2000-12-01 15:26:11 +0000
commit700fece2f363b189cbf2531a212f9895b1394808 (patch)
treece894a9ed182fe842fe727a40b3f247f5ab8fbe6 /sys/dev/ida
parent8c848d1d103d22f7cb0a2b60cd7169eb23dd262d (diff)
downloadFreeBSD-src-700fece2f363b189cbf2531a212f9895b1394808.zip
FreeBSD-src-700fece2f363b189cbf2531a212f9895b1394808.tar.gz
Add PCI id for the RAID LC2 controller.
Pick up correct location for the DEC version of the chip, this got broken in a previous commit.
Diffstat (limited to 'sys/dev/ida')
-rw-r--r--sys/dev/ida/ida_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c
index c95db70..839fbbe 100644
--- a/sys/dev/ida/ida_pci.c
+++ b/sys/dev/ida/ida_pci.c
@@ -147,6 +147,7 @@ static struct ida_board board_id[] = {
{ 0x40340E11, "Compaq Smart Array 221 controller", &ida_v3_access },
{ 0x40400E11, "Compaq Integrated Array controller", &ida_v4_access },
+ { 0x40480E11, "Compaq RAID LC2 controller", &ida_v4_access },
{ 0x40500E11, "Compaq Smart Array 4200 controller", &ida_v4_access },
{ 0x40510E11, "Compaq Smart Array 4250ES controller", &ida_v4_access },
{ 0x40580E11, "Compaq Smart Array 431 controller", &ida_v4_access },
@@ -210,6 +211,7 @@ static int
ida_pci_attach(device_t dev)
{
struct ida_board *board = ida_pci_match(dev);
+ u_int32_t id = pci_get_devid(dev);
struct ida_softc *ida;
u_int command;
int error, rid;
@@ -230,7 +232,7 @@ ida_pci_attach(device_t dev)
ida->regs_res_type = SYS_RES_MEMORY;
ida->regs_res_id = IDA_PCI_MEMADDR;
- if (board->board == IDA_DEVICEID_DEC_SMART)
+ if (id == IDA_DEVICEID_DEC_SMART)
ida->regs_res_id = PCIR_MAPS;
ida->regs = bus_alloc_resource(dev, ida->regs_res_type,
OpenPOWER on IntegriCloud