Changeset View
Changeset View
Standalone View
Standalone View
sys/netgraph/bluetooth/include/ng_hci.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
#define NG_HCI_KEY_SIZE 16 /* link key */ | #define NG_HCI_KEY_SIZE 16 /* link key */ | ||||
#define NG_HCI_PIN_SIZE 16 /* link PIN */ | #define NG_HCI_PIN_SIZE 16 /* link PIN */ | ||||
#define NG_HCI_EVENT_MASK_SIZE 8 /* event mask */ | #define NG_HCI_EVENT_MASK_SIZE 8 /* event mask */ | ||||
#define NG_HCI_LE_EVENT_MASK_SIZE 8 /* event mask */ | #define NG_HCI_LE_EVENT_MASK_SIZE 8 /* event mask */ | ||||
#define NG_HCI_CLASS_SIZE 3 /* unit class */ | #define NG_HCI_CLASS_SIZE 3 /* unit class */ | ||||
#define NG_HCI_FEATURES_SIZE 8 /* LMP features */ | #define NG_HCI_FEATURES_SIZE 8 /* LMP features */ | ||||
#define NG_HCI_UNIT_NAME_SIZE 248 /* unit name size */ | #define NG_HCI_UNIT_NAME_SIZE 248 /* unit name size */ | ||||
#define NG_HCI_COMMANDS_SIZE 64 /*Command list BMP size*/ | #define NG_HCI_COMMANDS_SIZE 64 /*Command list BMP size*/ | ||||
#define NG_HCI_EXTINQ_MAX 240 /**/ | |||||
/* HCI specification */ | /* HCI specification */ | ||||
#define NG_HCI_SPEC_V10 0x00 /* v1.0 */ | #define NG_HCI_SPEC_V10 0x00 /* v1.0 */ | ||||
#define NG_HCI_SPEC_V11 0x01 /* v1.1 */ | #define NG_HCI_SPEC_V11 0x01 /* v1.1 */ | ||||
/* 0x02 - 0xFF - reserved for future use */ | /* 0x02 - 0xFF - reserved for future use */ | ||||
/* LMP features */ | /* LMP features */ | ||||
/* ------------------- byte 0 --------------------*/ | /* ------------------- byte 0 --------------------*/ | ||||
#define NG_HCI_LMP_3SLOT 0x01 | #define NG_HCI_LMP_3SLOT 0x01 | ||||
▲ Show 20 Lines • Show All 465 Lines • ▼ Show 20 Lines | |||||
} ng_hci_node_get_neighbor_cache_ep; | } ng_hci_node_get_neighbor_cache_ep; | ||||
typedef struct { | typedef struct { | ||||
u_int16_t page_scan_rep_mode; /* page rep scan mode */ | u_int16_t page_scan_rep_mode; /* page rep scan mode */ | ||||
u_int16_t page_scan_mode; /* page scan mode */ | u_int16_t page_scan_mode; /* page scan mode */ | ||||
u_int16_t clock_offset; /* clock offset */ | u_int16_t clock_offset; /* clock offset */ | ||||
bdaddr_t bdaddr; /* bdaddr */ | bdaddr_t bdaddr; /* bdaddr */ | ||||
u_int8_t features[NG_HCI_FEATURES_SIZE]; /* features */ | u_int8_t features[NG_HCI_FEATURES_SIZE]; /* features */ | ||||
uint8_t addrtype; | |||||
uint8_t extinq_size; /* MAX 240*/ | |||||
uint8_t extinq_data[NG_HCI_EXTINQ_MAX]; | |||||
} ng_hci_node_neighbor_cache_entry_ep; | } ng_hci_node_neighbor_cache_entry_ep; | ||||
#define NG_HCI_MAX_NEIGHBOR_NUM \ | #define NG_HCI_MAX_NEIGHBOR_NUM \ | ||||
((0xffff - sizeof(ng_hci_node_get_neighbor_cache_ep))/sizeof(ng_hci_node_neighbor_cache_entry_ep)) | ((0xffff - sizeof(ng_hci_node_get_neighbor_cache_ep))/sizeof(ng_hci_node_neighbor_cache_entry_ep)) | ||||
#define NGM_HCI_NODE_GET_CON_LIST 111 /* HCI -> User */ | #define NGM_HCI_NODE_GET_CON_LIST 111 /* HCI -> User */ | ||||
typedef struct { | typedef struct { | ||||
u_int32_t num_connections; /* number of connections */ | u_int32_t num_connections; /* number of connections */ | ||||
▲ Show 20 Lines • Show All 1,418 Lines • Show Last 20 Lines |