diff options
author | peter <peter@FreeBSD.org> | 2000-01-24 08:11:10 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-01-24 08:11:10 +0000 |
commit | 8df9215e547226beead4d2790672620234885694 (patch) | |
tree | 2f070cc0346b03e8776cfbd9ef59d82144bf551e /sys/dev | |
parent | eecb860927bfe15cebd23510f3827cb610e2df2b (diff) | |
download | FreeBSD-src-8df9215e547226beead4d2790672620234885694.zip FreeBSD-src-8df9215e547226beead4d2790672620234885694.tar.gz |
Ack! I totally botched the pci probe routine which resulted in it trying
to match everything else *but* a specialix pci card. *blush*.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/si/si_pci.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/dev/si/si_pci.c b/sys/dev/si/si_pci.c index 6b16d62..96a865c 100644 --- a/sys/dev/si/si_pci.c +++ b/sys/dev/si/si_pci.c @@ -33,21 +33,25 @@ #include <pci/pcivar.h> -static const char * +static int si_pci_probe(device_t dev) { + const char *desc = NULL; + switch (pci_get_devid(dev)) { case 0x400011cb: - return("Specialix SI/XIO PCI host card"); + desc = "Specialix SI/XIO PCI host card"; break; case 0x200011cb: if (pci_read_config(dev, SIJETSSIDREG, 4) == 0x020011cb) - return("Specialix SX PCI host card"); - else - return NULL; + desc = "Specialix SX PCI host card"; break; } - return NULL; + if (desc) { + device_set_desc(dev, desc); + return 0; + } + return ENXIO; } static int |