summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1996-12-21 00:04:09 +0000
committerse <se@FreeBSD.org>1996-12-21 00:04:09 +0000
commit975c6c7d248e4bd2800372bf2ba57a9b7437ca71 (patch)
tree3c5e8d65c34f2ef13e2a76aef5b86a1de78996c3 /sys/dev/ed
parent581f3e28c3e1e8a1e0fdd55dfc7931a87ef6a4ef (diff)
downloadFreeBSD-src-975c6c7d248e4bd2800372bf2ba57a9b7437ca71.zip
FreeBSD-src-975c6c7d248e4bd2800372bf2ba57a9b7437ca71.tar.gz
Add PCI IDs of the ProLAN and Compex PCI NE2000 clones.
Based on information sent by Peter Mutsaers <plm@xs4all.nl>.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r--sys/dev/ed/if_ed_pci.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c
index 743b6a0..76d3fe9 100644
--- a/sys/dev/ed/if_ed_pci.c
+++ b/sys/dev/ed/if_ed_pci.c
@@ -17,7 +17,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: if_ed_p.c,v 1.4 1996/08/28 18:54:26 bde Exp $
+ * $Id: if_ed_p.c,v 1.5 1996/10/15 19:22:40 bde Exp $
*/
#include "pci.h"
@@ -32,7 +32,9 @@
#include "ed.h"
-#define PCI_DEVICE_ID_NE2000 0x802910ec
+#define PCI_DEVICE_ID_RealTek_8029 0x802910ec
+#define PCI_DEVICE_ID_ProLAN_NE2000 0x09401050
+#define PCI_DEVICE_ID_Compex_NE2000 0x140111f6
extern void *ed_attach_NE2000_pci __P((int, int));
@@ -55,11 +57,12 @@ static char*
ed_pci_probe (pcici_t tag, pcidi_t type)
{
switch(type) {
- case PCI_DEVICE_ID_NE2000:
- return ("NE2000 compatible PCI Ethernet adapter");
- break;
- default:
- break;
+ case PCI_DEVICE_ID_RealTek_8029:
+ return ("NE2000 PCI Ethernet (RealTek 8029)");
+ case PCI_DEVICE_ID_ProLAN_NE2000:
+ return ("NE2000 PCI Ethernet (ProLAN)");
+ case PCI_DEVICE_ID_Compex_NE2000:
+ return ("NE2000 PCI Ethernet (Compex)");
}
return (0);
}
@@ -71,7 +74,7 @@ ed_pci_attach(config_id, unit)
pcici_t config_id;
int unit;
{
- u_long io_port;
+ int io_port;
void *ed; /* device specific data ... */
io_port = pci_conf_read(config_id, PCI_MAP_REG_START) & ~PCI_MAP_IO;
OpenPOWER on IntegriCloud