summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-06-06 22:32:29 +0000
committerimp <imp@FreeBSD.org>2001-06-06 22:32:29 +0000
commitabebae52ec3f674730055c04a3b57846ff3ab5c0 (patch)
treefed0397fe45a5607341107a6aa4a5acdde5d6381 /sys/dev/aic
parent0732738ec450bcfa11cfc73cc53b16c92c4a5e9a (diff)
downloadFreeBSD-src-abebae52ec3f674730055c04a3b57846ff3ab5c0.zip
FreeBSD-src-abebae52ec3f674730055c04a3b57846ff3ab5c0.tar.gz
Add PnP IDs for AHA-1530 and AHA-1520 cards.
PR: 19497, 18378 Submitted by: Martijn Plak <martijn@be3.com>
Diffstat (limited to 'sys/dev/aic')
-rw-r--r--sys/dev/aic/aic_isa.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/aic/aic_isa.c b/sys/dev/aic/aic_isa.c
index e35dcc9..64dbafc 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);
OpenPOWER on IntegriCloud