From 03bb845633c916832e0dace69b78101660e5a183 Mon Sep 17 00:00:00 2001 From: mdodd Date: Fri, 3 Dec 2004 16:45:11 +0000 Subject: Additional register definitions. Obtained from: NetBSD --- sys/pci/if_pcnreg.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/pci/if_pcnreg.h b/sys/pci/if_pcnreg.h index 0f3b86d..122e2a6 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 -- cgit v1.1