From 8df9215e547226beead4d2790672620234885694 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 24 Jan 2000 08:11:10 +0000 Subject: Ack! I totally botched the pci probe routine which resulted in it trying to match everything else *but* a specialix pci card. *blush*. --- sys/dev/si/si_pci.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'sys/dev/si') 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 -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 -- cgit v1.1