From 700fece2f363b189cbf2531a212f9895b1394808 Mon Sep 17 00:00:00 2001 From: jlemon Date: Fri, 1 Dec 2000 15:26:11 +0000 Subject: 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. --- sys/dev/ida/ida_pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ida') 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, -- cgit v1.1