Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | SMT6_10 |
#define | SMT7_20 |
#define | OPT_PMF /* if parameter management is supported */ |
#define | OPT_SRF /* if status report is supported */ |
#define | SMT_VID 0x0001 /* V 5.1 .. 6.1 */ |
#define | SMT_VID_2 0x0002 /* V 7.2 */ |
#define | SWAP_SMTHEADER "662sl8ss" |
#define | SMT_ANNOUNCE 0x01 /* announcement */ |
#define | SMT_REQUEST 0x02 /* request */ |
#define | SMT_REPLY 0x03 /* reply */ |
#define | SMT_NIF 0x01 /* neighbor information frames */ |
#define | SMT_SIF_CONFIG 0x02 /* station information configuration */ |
#define | SMT_SIF_OPER 0x03 /* station information operation */ |
#define | SMT_ECF 0x04 /* echo frames */ |
#define | SMT_RAF 0x05 /* resource allocation */ |
#define | SMT_RDF 0x06 /* request denied */ |
#define | SMT_SRF 0x07 /* status report */ |
#define | SMT_PMF_GET 0x08 /* parameter management get */ |
#define | SMT_PMF_SET 0x09 /* parameter management set */ |
#define | SMT_ESF 0xff /* extended service */ |
#define | SMT_MAX_ECHO_LEN 4458 /* max length of SMT Echo */ |
#define | SMT_TEST_ECHO_LEN SMT_MAX_ECHO_LEN /* test length */ |
#define | SMT_MAX_INFO_LEN (4352-20) /* max length for SMT info */ |
#define | PARA_LEN (sizeof(struct smt_para)) |
#define | SMTSETPARA(p, t) |
#define | SMT_P_UNA 0x0001 /* upstream neighbor address */ |
#define | SWAP_SMT_P_UNA "s6" |
#define | SMT_P_SDE 0x0002 /* station descriptor */ |
#define | SWAP_SMT_P_SDE "1111" |
#define | SMT_SDE_STATION 0 /* end node */ |
#define | SMT_SDE_CONCENTRATOR 1 /* concentrator */ |
#define | SMT_P_STATE 0x0003 /* station state */ |
#define | SWAP_SMT_P_STATE "scc" |
#define | SMT_ST_WRAPPED (1<<0) /* station wrapped */ |
#define | SMT_ST_UNATTACHED (1<<1) /* unattached concentrator */ |
#define | SMT_ST_TWISTED_A (1<<2) /* A-A connection, twisted ring */ |
#define | SMT_ST_TWISTED_B (1<<3) /* B-B connection, twisted ring */ |
#define | SMT_ST_ROOTED_S (1<<4) /* rooted station */ |
#define | SMT_ST_SRF (1<<5) /* SRF protocol supported */ |
#define | SMT_ST_SYNC_SERVICE (1<<6) /* use synchronous bandwidth */ |
#define | SMT_ST_MY_DUPA (1<<0) /* my station detected dupl. */ |
#define | SMT_ST_UNA_DUPA (1<<1) /* my UNA detected duplicate */ |
#define | SMT_P_TIMESTAMP 0x0004 /* time stamp */ |
#define | SWAP_SMT_P_TIMESTAMP "8" |
#define | SMT_P_POLICY 0x0005 /* station policies */ |
#define | SWAP_SMT_P_POLICY "ss" |
#define | SMT_PL_HOLD 1 /* hold policy supported (Dual MAC) */ |
#define | SMT_P_LATENCY 0x0006 /* latency */ |
#define | SWAP_SMT_P_LATENCY "ssss" |
#define | SMT_P_NEIGHBORS 0x0007 /* MAC neighbor description */ |
#define | SWAP_SMT_P_NEIGHBORS "ss66" |
#define | SMT_PHY_A 0 /* A port */ |
#define | SMT_PHY_B 1 /* B port */ |
#define | SMT_PHY_S 2 /* slave port */ |
#define | SMT_PHY_M 3 /* master port */ |
#define | SMT_CS_DISABLED 0 /* connect state : disabled */ |
#define | SMT_CS_CONNECTING 1 /* connect state : connecting */ |
#define | SMT_CS_STANDBY 2 /* connect state : stand by */ |
#define | SMT_CS_ACTIVE 3 /* connect state : active */ |
#define | SMT_RM_NONE 0 |
#define | SMT_RM_MAC 1 |
#define | SMT_P_PATH 0x0008 /* path descriptor */ |
#define | SWAP_SMT_P_PATH "[6s]" |
#define | SMT_P_MAC_STATUS 0x0009 /* MAC status */ |
#define | SWAP_SMT_P_MAC_STATUS "sslllllllll" |
#define | SMT_P_LEM 0x000a /* link error monitor */ |
#define | SWAP_SMT_P_LEM "ssccccll" |
#define | SMT_P_MAC_COUNTER 0x000b /* MAC frame counters */ |
#define | SWAP_SMT_P_MAC_COUNTER "ssll" |
#define | SMT_P_MAC_FNC 0x000c /* MAC frame not copied counter */ |
#define | SWAP_SMT_P_MAC_FNC "ssl" |
#define | SMT_P_PRIORITY 0x000d /* MAC priority values */ |
#define | SWAP_SMT_P_PRIORITY "ssl" |
#define | SMT_P_EB 0x000e /* PHY EB status */ |
#define | SWAP_SMT_P_EB "ssl" |
#define | SMT_P_MANUFACTURER 0x000f /* manufacturer field */ |
#define | SWAP_SMT_P_MANUFACTURER "" |
#define | SMT_P_USER 0x0010 /* manufacturer field */ |
#define | SWAP_SMT_P_USER "" |
#define | SMT_P_ECHODATA 0x0011 /* echo data */ |
#define | SWAP_SMT_P_ECHODATA "" |
#define | SMT_P_REASON 0x0012 /* reason code */ |
#define | SWAP_SMT_P_REASON "l" |
#define | SMT_RDF_CLASS 0x00000001 /* class not supported */ |
#define | SMT_RDF_VERSION 0x00000002 /* version not supported */ |
#define | SMT_RDF_SUCCESS 0x00000003 /* success (PMF) */ |
#define | SMT_RDF_BADSET 0x00000004 /* bad set count (PMF) */ |
#define | SMT_RDF_ILLEGAL 0x00000005 /* read only (PMF) */ |
#define | SMT_RDF_NOPARAM 0x6 /* parameter not supported (PMF) */ |
#define | SMT_RDF_RANGE 0x8 /* out of range */ |
#define | SMT_RDF_AUTHOR 0x9 /* not autohorized */ |
#define | SMT_RDF_LENGTH 0x0a /* length error */ |
#define | SMT_RDF_TOOLONG 0x0b /* length error */ |
#define | SMT_RDF_SBA 0x0d /* SBA denied */ |
#define | SMT_P_REFUSED 0x0013 /* refused frame beginning */ |
#define | SWAP_SMT_P_REFUSED "l" |
#define | SMT_P_VERSION 0x0014 /* SMT supported versions */ |
#define | SWAP_SMT_P_VERSION "sccss" |
#define | SWAP_SMT_P0015 "l" |
#define | SYNC_BW 0x00000001L /* Synchronous Bandwidth */ |
#define | SWAP_SMT_P0016 "l" |
#define | REQUEST_ALLOCATION 0x1 /* req allocation of sync bandwidth */ |
#define | REPORT_ALLOCATION 0x2 /* rep of sync bandwidth allocation */ |
#define | CHANGE_ALLOCATION 0x3 /* forces a station using sync band-*/ |
#define | SWAP_SMT_P0017 "l" |
#define | SWAP_SMT_P0018 "l" |
#define | SWAP_SMT_P0019 "s6" |
#define | SWAP_SMT_P001A "l" |
#define | SWAP_SMT_P001B "l" |
#define | SWAP_SMT_P001C "l" |
#define | SWAP_SMT_P001D "l" |
#define | SMT_P_FSC 0x200b |
#define | FSC_TYPE0 0 /* "normal" node (A/C handling) */ |
#define | FSC_TYPE1 1 /* Special A/C indicator forwarding */ |
#define | FSC_TYPE2 2 /* Special A/C indicator forwarding */ |
#define | SMT_P_AUTHOR 0x0021 |
#define | SWAP_SMT_P1048 "ll" |
#define | SWAP_SMT_P208C "4lss66" |
#define | SWAP_SMT_P208D "4lllll" |
#define | SWAP_SMT_P208E "4llll" |
#define | SWAP_SMT_P208F "4ll6666s6" |
#define | SWAP_SMT_P2090 "4lssl" |
#define | SBAPATHINDEX (0x01L) |
#define | SWAP_SMT_P320B "42s" |
#define | SWAP_SMT_P320F "4l" |
#define | SWAP_SMT_P3210 "4l" |
#define | SWAP_SMT_P4050 "4l1111ll" |
#define | SWAP_SMT_P4051 "4lssss" |
#define | SWAP_SMT_P4052 "4ll" |
#define | SWAP_SMT_P4053 "4lsslss" |
#define | SMT_P_SETCOUNT 0x1035 |
#define | SWAP_SMT_P_SETCOUNT "l8" |
#define | SIZEOF_SMT_SIF_CONFIG |
#define | SIZEOF_SMT_SIF_OPERATION |
#define | SMT_ECF_LEN (sizeof(struct smt_header)+sizeof(struct smt_para)) |
#define | SMT_STATION_ACTION 1 |
#define | SMT_STATION_ACTION_CONNECT 0 |
#define | SMT_STATION_ACTION_DISCONNECT 1 |
#define | SMT_STATION_ACTION_PATHTEST 2 |
#define | SMT_STATION_ACTION_SELFTEST 3 |
#define | SMT_STATION_ACTION_DISABLE_A 4 |
#define | SMT_STATION_ACTION_DISABLE_B 5 |
#define | SMT_STATION_ACTION_DISABLE_M 6 |
#define | SMT_PORT_ACTION 2 |
#define | SMT_PORT_ACTION_MAINT 0 |
#define | SMT_PORT_ACTION_ENABLE 1 |
#define | SMT_PORT_ACTION_DISABLE 2 |
#define | SMT_PORT_ACTION_START 3 |
#define | SMT_PORT_ACTION_STOP 4 |
Typedefs | |
typedef u_char | t_station_id [8] |
#define CHANGE_ALLOCATION 0x3 /* forces a station using sync band-*/ |
#define REPORT_ALLOCATION 0x2 /* rep of sync bandwidth allocation */ |
#define REQUEST_ALLOCATION 0x1 /* req allocation of sync bandwidth */ |
#define SIZEOF_SMT_SIF_CONFIG |
#define SIZEOF_SMT_SIF_OPERATION |
#define SMT_P_MAC_FNC 0x000c /* MAC frame not copied counter */ |
#define SMT_RDF_NOPARAM 0x6 /* parameter not supported (PMF) */ |
#define SMT_RDF_VERSION 0x00000002 /* version not supported */ |
#define SMT_SIF_CONFIG 0x02 /* station information configuration */ |
#define SMT_ST_SYNC_SERVICE (1<<6) /* use synchronous bandwidth */ |
#define SMT_ST_TWISTED_A (1<<2) /* A-A connection, twisted ring */ |
#define SMT_ST_TWISTED_B (1<<3) /* B-B connection, twisted ring */ |
#define SMT_ST_UNA_DUPA (1<<1) /* my UNA detected duplicate */ |
#define SMT_ST_UNATTACHED (1<<1) /* unattached concentrator */ |
#define SMT_TEST_ECHO_LEN SMT_MAX_ECHO_LEN /* test length */ |