diff options
| author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2004-12-03 16:45:11 +0000 |
|---|---|---|
| committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2004-12-03 16:45:11 +0000 |
| commit | dd3e3dfb6f0bad090b392e0db747f5994c241b62 (patch) | |
| tree | d9c71e4a646f0e2329cfe5f6c1a333840dcb3536 /sys/pci | |
| parent | 32ba8e9390deffc1ac129850f212ef4cba235d24 (diff) | |
Notes
Diffstat (limited to 'sys/pci')
| -rw-r--r-- | sys/pci/if_pcnreg.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/pci/if_pcnreg.h b/sys/pci/if_pcnreg.h index 0f3b86ddeb0b..122e2a6f57b5 100644 --- a/sys/pci/if_pcnreg.h +++ b/sys/pci/if_pcnreg.h @@ -206,6 +206,9 @@ #define PCN_MODE_RXNOBROAD 0x4000 #define PCN_MODE_PROMISC 0x8000 +/* Settings for PCN_MODE_PORTSEL when ASEL (BCR2[1] is 0 */ +#define PCN_PORT_AUI 0x0000 +#define PCN_PORT_10BASET 0x0080 #define PCN_PORT_GPSI 0x0100 #define PCN_PORT_MII 0x0180 @@ -236,6 +239,8 @@ /* * BCR (bus control) registers */ +#define PCN_BCR_MMRA 0x00 /* Master Mode Read Active */ +#define PCN_BCR_MMW 0x01 /* Master Mode Write Active */ #define PCN_BCR_MISCCFG 0x02 #define PCN_BCR_LED0 0x04 #define PCN_BCR_LED1 0x05 @@ -270,9 +275,22 @@ #define PCN_BCR_PHYSEL 0x31 /* + * Miscellaneous Configuration (BCR2) + */ +#define PCN_MISC_TMAULOOP 1<<14 /* T-MAU Loopback packet enable. */ +#define PCN_MISC_LEDPE 1<<12 /* LED Program Enable */ +#define PCN_MISC_APROMWE 1<<8 /* Address PROM Write Enable */ +#define PCN_MISC_INTLEVEL 1<<7 /* Interrupt level */ +#define PCN_MISC_EADISEL 1<<3 /* EADI Select */ +#define PCN_MISC_AWAKE 1<<2 /* Power saving mode select */ +#define PCN_MISC_ASEL 1<<1 /* Auto Select */ +#define PCN_MISC_XMAUSEL 1<<0 /* Reserved. */ + +/* * Full duplex control (BCR9) */ #define PCN_DUPLEX_FDEN 0x0001 /* Full-duplex enable */ +#define PCN_DUPLEX_AUI 0x0002 /* AUI full-duplex */ #define PCN_DUPLEX_FDRPAD 0x0004 /* Full-duplex runt pkt accept dis. */ /* @@ -496,7 +514,7 @@ struct pcn_softc { #define PCN_PCI_INTLINE 0x3C #define PCN_PCI_INTPIN 0x3D #define PCN_PCI_MINGNT 0x3E -#define PCN_PCI_MINLAT 0x0F +#define PCN_PCI_MINLAT 0x3F #define PCN_PCI_RESETOPT 0x48 #define PCN_PCI_EEPROM_DATA 0x4C |
