etherswitch.h (250381) | etherswitch.h (253569) |
---|---|
1/* | 1/* |
2 * $FreeBSD: head/sys/dev/etherswitch/etherswitch.h 250381 2013-05-08 20:46:54Z adrian $ | 2 * $FreeBSD: head/sys/dev/etherswitch/etherswitch.h 253569 2013-07-23 13:56:38Z loos $ |
3 */ 4 5#ifndef __SYS_DEV_ETHERSWITCH_ETHERSWITCH_H 6#define __SYS_DEV_ETHERSWITCH_ETHERSWITCH_H 7 8#include <sys/ioccom.h> 9 10#ifdef _KERNEL --- 10 unchanged lines hidden (view full) --- 21struct etherswitch_phyreg { 22 uint16_t phy; 23 uint16_t reg; 24 uint16_t val; 25}; 26typedef struct etherswitch_phyreg etherswitch_phyreg_t; 27 28#define ETHERSWITCH_NAMEMAX 64 | 3 */ 4 5#ifndef __SYS_DEV_ETHERSWITCH_ETHERSWITCH_H 6#define __SYS_DEV_ETHERSWITCH_ETHERSWITCH_H 7 8#include <sys/ioccom.h> 9 10#ifdef _KERNEL --- 10 unchanged lines hidden (view full) --- 21struct etherswitch_phyreg { 22 uint16_t phy; 23 uint16_t reg; 24 uint16_t val; 25}; 26typedef struct etherswitch_phyreg etherswitch_phyreg_t; 27 28#define ETHERSWITCH_NAMEMAX 64 |
29#define ETHERSWITCH_VID_MASK 0xfff 30#define ETHERSWITCH_VID_VALID (1 << 12) |
|
29#define ETHERSWITCH_VLAN_ISL (1 << 0) /* ISL */ 30#define ETHERSWITCH_VLAN_PORT (1 << 1) /* Port based vlan */ 31#define ETHERSWITCH_VLAN_DOT1Q (1 << 2) /* 802.1q */ 32#define ETHERSWITCH_VLAN_DOT1Q_4K (1 << 3) /* 4k support on 802.1q */ 33#define ETHERSWITCH_VLAN_DOUBLE_TAG (1 << 4) /* Q-in-Q */ 34#define ETHERSWITCH_VLAN_CAPS_BITS \ 35"\020\1ISL\2PORT\3DOT1Q\4DOT1Q4K\5QinQ" 36 --- 65 unchanged lines hidden --- | 31#define ETHERSWITCH_VLAN_ISL (1 << 0) /* ISL */ 32#define ETHERSWITCH_VLAN_PORT (1 << 1) /* Port based vlan */ 33#define ETHERSWITCH_VLAN_DOT1Q (1 << 2) /* 802.1q */ 34#define ETHERSWITCH_VLAN_DOT1Q_4K (1 << 3) /* 4k support on 802.1q */ 35#define ETHERSWITCH_VLAN_DOUBLE_TAG (1 << 4) /* Q-in-Q */ 36#define ETHERSWITCH_VLAN_CAPS_BITS \ 37"\020\1ISL\2PORT\3DOT1Q\4DOT1Q4K\5QinQ" 38 --- 65 unchanged lines hidden --- |