Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/bluetooth/l2cap/ng_l2cap_var.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | typedef struct ng_l2cap { | ||||
bdaddr_t bdaddr; /* unit BDADDR */ | bdaddr_t bdaddr; /* unit BDADDR */ | ||||
hook_p hci; /* HCI downstream hook */ | hook_p hci; /* HCI downstream hook */ | ||||
hook_p l2c; /* L2CAP upstream hook */ | hook_p l2c; /* L2CAP upstream hook */ | ||||
hook_p ctl; /* control hook */ | hook_p ctl; /* control hook */ | ||||
LIST_HEAD(, ng_l2cap_con) con_list; /* ACL connections */ | LIST_HEAD(, ng_l2cap_con) con_list; /* ACL connections */ | ||||
u_int16_t cid; /* last allocated CID */ | u_int16_t cid; /* last allocated CID */ | ||||
u_int16_t lecid; /* last allocated CID for LE */ | |||||
LIST_HEAD(, ng_l2cap_chan) chan_list; /* L2CAP channels */ | LIST_HEAD(, ng_l2cap_chan) chan_list; /* L2CAP channels */ | ||||
} ng_l2cap_t; | } ng_l2cap_t; | ||||
typedef ng_l2cap_t * ng_l2cap_p; | typedef ng_l2cap_t * ng_l2cap_p; | ||||
/* | /* | ||||
* L2CAP connection descriptor | * L2CAP connection descriptor | ||||
*/ | */ | ||||
struct ng_l2cap_cmd; | struct ng_l2cap_cmd; | ||||
typedef struct ng_l2cap_con { | typedef struct ng_l2cap_con { | ||||
ng_l2cap_p l2cap; /* pointer to L2CAP */ | ng_l2cap_p l2cap; /* pointer to L2CAP */ | ||||
u_int16_t state; /* ACL connection state */ | u_int16_t state; /* ACL connection state */ | ||||
u_int16_t flags; /* ACL connection flags */ | u_int16_t flags; /* ACL connection flags */ | ||||
int32_t refcnt; /* reference count */ | int32_t refcnt; /* reference count */ | ||||
bdaddr_t remote; /* remote unit address */ | bdaddr_t remote; /* remote unit address */ | ||||
u_int16_t con_handle; /* ACL connection handle */ | u_int16_t con_handle; /* ACL connection handle */ | ||||
struct callout con_timo; /* connection timeout */ | struct callout con_timo; /* connection timeout */ | ||||
u_int8_t ident; /* last allocated ident */ | u_int8_t ident; /* last allocated ident */ | ||||
uint8_t linktype; | |||||
TAILQ_HEAD(, ng_l2cap_cmd) cmd_list; /* pending L2CAP cmds */ | TAILQ_HEAD(, ng_l2cap_cmd) cmd_list; /* pending L2CAP cmds */ | ||||
struct mbuf *tx_pkt; /* xmitted L2CAP packet */ | struct mbuf *tx_pkt; /* xmitted L2CAP packet */ | ||||
int pending; /* num. of pending pkts */ | int pending; /* num. of pending pkts */ | ||||
struct mbuf *rx_pkt; /* received L2CAP packet */ | struct mbuf *rx_pkt; /* received L2CAP packet */ | ||||
int rx_pkt_len; /* packet len. so far */ | int rx_pkt_len; /* packet len. so far */ | ||||
Show All 16 Lines | |||||
#define NG_L2CAP_CFG_BOTH (NG_L2CAP_CFG_IN|NG_L2CAP_CFG_OUT) | #define NG_L2CAP_CFG_BOTH (NG_L2CAP_CFG_IN|NG_L2CAP_CFG_OUT) | ||||
u_int8_t ident; /* last L2CAP req. ident */ | u_int8_t ident; /* last L2CAP req. ident */ | ||||
u_int16_t psm; /* channel PSM */ | u_int16_t psm; /* channel PSM */ | ||||
u_int16_t scid; /* source channel ID */ | u_int16_t scid; /* source channel ID */ | ||||
u_int16_t dcid; /* destination channel ID */ | u_int16_t dcid; /* destination channel ID */ | ||||
uint16_t idtype; | |||||
u_int16_t imtu; /* incoming channel MTU */ | u_int16_t imtu; /* incoming channel MTU */ | ||||
ng_l2cap_flow_t iflow; /* incoming flow control */ | ng_l2cap_flow_t iflow; /* incoming flow control */ | ||||
u_int16_t omtu; /* outgoing channel MTU */ | u_int16_t omtu; /* outgoing channel MTU */ | ||||
ng_l2cap_flow_t oflow; /* outgoing flow control */ | ng_l2cap_flow_t oflow; /* outgoing flow control */ | ||||
u_int16_t flush_timo; /* flush timeout */ | u_int16_t flush_timo; /* flush timeout */ | ||||
u_int16_t link_timo; /* link timeout */ | u_int16_t link_timo; /* link timeout */ | ||||
Show All 30 Lines |