Use pcidevs.h to get vendor and product IDs.
This commit is contained in:
parent
b6a84f08e8
commit
05cbb33e4c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_vr.c,v 1.7 1999/02/02 00:29:17 thorpej Exp $ */
|
||||
/* $NetBSD: if_vr.c,v 1.8 1999/02/02 00:32:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
@ -95,6 +95,8 @@
|
||||
|
||||
#include <dev/pci/pcireg.h>
|
||||
#include <dev/pci/pcivar.h>
|
||||
#include <dev/pci/pcidevs.h>
|
||||
|
||||
#include <dev/pci/if_vrreg.h>
|
||||
|
||||
#if defined(__NetBSD__) && defined(__alpha__)
|
||||
@ -117,9 +119,9 @@ static struct vr_type {
|
||||
pci_product_id_t vr_did;
|
||||
const char *vr_name;
|
||||
} vr_devs[] = {
|
||||
{ VIA_VENDORID, VIA_DEVICEID_RHINE,
|
||||
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT3043,
|
||||
"VIA VT3043 Rhine I 10/100BaseTX" },
|
||||
{ VIA_VENDORID, VIA_DEVICEID_RHINE_II,
|
||||
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT86C100A,
|
||||
"VIA VT86C100A Rhine II 10/100BaseTX" },
|
||||
{ 0, 0, NULL }
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_vrreg.h,v 1.6 1999/02/02 00:29:17 thorpej Exp $ */
|
||||
/* $NetBSD: if_vrreg.h,v 1.7 1999/02/02 00:32:21 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998
|
||||
@ -344,20 +344,6 @@ struct vr_desc {
|
||||
|
||||
#define VR_TXOWN(x) x->vr_ptr->vr_status
|
||||
|
||||
/*
|
||||
* General constants that are fun to know.
|
||||
*
|
||||
* VIA vendor ID
|
||||
*/
|
||||
#define VIA_VENDORID 0x1106
|
||||
|
||||
/*
|
||||
* VIA Rhine device IDs.
|
||||
*/
|
||||
#define VIA_DEVICEID_RHINE 0x3043
|
||||
#define VIA_DEVICEID_RHINE_II 0x6100
|
||||
|
||||
|
||||
/*
|
||||
* Texas Instruments PHY identifiers
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user