From c29b4c13d08454f80c08f40243702f2f210bcda6 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 6 Jun 2001 22:32:29 +0000 Subject: [PATCH] Add PnP IDs for AHA-1530 and AHA-1520 cards. PR: 19497, 18378 Submitted by: Martijn Plak --- sys/dev/aic/aic_isa.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/dev/aic/aic_isa.c b/sys/dev/aic/aic_isa.c index e35dcc984457..64dbafc0ad9a 100644 --- a/sys/dev/aic/aic_isa.c +++ b/sys/dev/aic/aic_isa.c @@ -57,6 +57,12 @@ static u_int aic_isa_ports[] = { 0x340, 0x140 }; #define AIC_ISA_NUMPORTS (sizeof(aic_isa_ports) / sizeof(aic_isa_ports[0])) #define AIC_ISA_PORTSIZE 0x20 +static struct isa_pnp_id aic_ids[] = { + { 0x15309004, "Adaptec AHA-1530P" }, + { 0x15209004, "Adaptec AHA-1520P" }, + { 0 } +}; + static int aic_isa_alloc_resources(device_t dev) { @@ -124,7 +130,7 @@ aic_isa_probe(device_t dev) u_int port, *ports; u_int8_t porta; - if (isa_get_vendorid(dev)) + if (ISA_PNP_PROBE(device_get_parent(dev), dev, aic_ids) == ENXIO) return (ENXIO); port = isa_get_port(dev);