diff options
| author | Stefan Eßer <se@FreeBSD.org> | 1996-12-21 00:04:09 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 1996-12-21 00:04:09 +0000 |
| commit | d14302ba21d7ee613b2ff9ae37161733fdac979e (patch) | |
| tree | 3c5e8d65c34f2ef13e2a76aef5b86a1de78996c3 /sys/dev/ed/if_ed_pci.c | |
| parent | 4205b53dc0e0793230c96f0bd351893fded6c862 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ed/if_ed_pci.c')
| -rw-r--r-- | sys/dev/ed/if_ed_pci.c | 19 |
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 743b6a063eb3..76d3fe97f1d9 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; |
