diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-05 22:20:34 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-05 22:20:34 +0000 |
commit | 4b56b716e9c1db1d354754fcde2ae780efbe07d5 (patch) | |
tree | 93e4727fadd77ac9f66ac329f1b49f4dd7940a1b /mdk-stage1 | |
parent | 8aae6742e2a3d39da694b5f226de087fcbbe2600 (diff) | |
download | drakx-backup-do-not-use-4b56b716e9c1db1d354754fcde2ae780efbe07d5.tar drakx-backup-do-not-use-4b56b716e9c1db1d354754fcde2ae780efbe07d5.tar.gz drakx-backup-do-not-use-4b56b716e9c1db1d354754fcde2ae780efbe07d5.tar.bz2 drakx-backup-do-not-use-4b56b716e9c1db1d354754fcde2ae780efbe07d5.tar.xz drakx-backup-do-not-use-4b56b716e9c1db1d354754fcde2ae780efbe07d5.zip |
an old sucking PCI card needs oldskool
i82365 :-((, ugly patch
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/pcmcia_/probe.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mdk-stage1/pcmcia_/probe.c b/mdk-stage1/pcmcia_/probe.c index b48c4544a..9877ad404 100644 --- a/mdk-stage1/pcmcia_/probe.c +++ b/mdk-stage1/pcmcia_/probe.c @@ -115,6 +115,8 @@ pci_id_t pci_id[] = { }; #define PCI_COUNT (sizeof(pci_id)/sizeof(pci_id_t)) +char * driver = NULL; + static int pci_probe(void) { char s[256], *name = NULL; @@ -133,6 +135,10 @@ static int pci_probe(void) (device == pci_id[i].device)) break; if (i < PCI_COUNT) { name = pci_id[i].name; + if (pci_id[i].vendor == 0x1013 && pci_id[i].device == 0x1100) + driver = "i82365"; + else + driver = "yenta_socket"; break; } } @@ -497,7 +503,7 @@ int tcic_probe(void) char * pcmcia_probe(void) { if (!pci_probe()) - return "yenta_socket"; // will only work for 2.4 with kernel pcmcia :-( + return driver; else if (!i365_probe()) return "i82365"; else if (!tcic_probe()) |