diff options
Diffstat (limited to 'sys/dev/si')
-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 |