Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/etherswitch/e6000sw/e6000swreg.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
#define REG_PORT(p) (0x10 + (p)) | #define REG_PORT(p) (0x10 + (p)) | ||||
#define REG_NUM_MAX 31 | #define REG_NUM_MAX 31 | ||||
/* | /* | ||||
* Per-Port Switch Registers | * Per-Port Switch Registers | ||||
*/ | */ | ||||
#define PORT_STATUS 0x0 | #define PORT_STATUS 0x0 | ||||
#define PORT_STATUS_SPEED_MASK 0x300 | |||||
#define PORT_STATUS_SPEED_10 0 | |||||
#define PORT_STATUS_SPEED_100 1 | |||||
#define PORT_STATUS_SPEED_1000 2 | |||||
#define PORT_STATUS_DUPLEX_MASK (1 << 10) | |||||
#define PORT_STATUS_LINK_MASK (1 << 11) | |||||
#define PORT_STATUS_PHY_DETECT_MASK (1 << 12) | |||||
#define PSC_CONTROL 0x1 | #define PSC_CONTROL 0x1 | ||||
#define SWITCH_ID 0x3 | #define SWITCH_ID 0x3 | ||||
#define PORT_CONTROL 0x4 | #define PORT_CONTROL 0x4 | ||||
#define PORT_CONTROL_1 0x5 | #define PORT_CONTROL_1 0x5 | ||||
#define PORT_VLAN_MAP 0x6 | #define PORT_VLAN_MAP 0x6 | ||||
#define PORT_VID 0x7 | #define PORT_VID 0x7 | ||||
#define PORT_ASSOCIATION_VECTOR 0xb | #define PORT_ASSOCIATION_VECTOR 0xb | ||||
#define PORT_ATU_CTRL 0xc | #define PORT_ATU_CTRL 0xc | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |