Changeset View
Changeset View
Standalone View
Standalone View
sys/net/rndis.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | |||||
#define RNDIS_PACKET_MSG_OFFSET_ALIGN 4 | #define RNDIS_PACKET_MSG_OFFSET_ALIGN 4 | ||||
#define RNDIS_PACKET_MSG_OFFSET_ALIGNMASK \ | #define RNDIS_PACKET_MSG_OFFSET_ALIGNMASK \ | ||||
(RNDIS_PACKET_MSG_OFFSET_ALIGN - 1) | (RNDIS_PACKET_MSG_OFFSET_ALIGN - 1) | ||||
/* Per-packet-info for RNDIS data message */ | /* Per-packet-info for RNDIS data message */ | ||||
struct rndis_pktinfo { | struct rndis_pktinfo { | ||||
uint32_t rm_size; | uint32_t rm_size; | ||||
uint32_t rm_type; /* NDIS_PKTINFO_TYPE_ */ | uint32_t rm_type:31; /* NDIS_PKTINFO_TYPE_ */ | ||||
uint32_t rm_internal:1; /* Indicate if internal type */ | |||||
uint32_t rm_pktinfooffset; | uint32_t rm_pktinfooffset; | ||||
uint8_t rm_data[]; | uint8_t rm_data[]; | ||||
}; | }; | ||||
#define RNDIS_PKTINFO_OFFSET \ | #define RNDIS_PKTINFO_OFFSET \ | ||||
__offsetof(struct rndis_pktinfo, rm_data[0]) | __offsetof(struct rndis_pktinfo, rm_data[0]) | ||||
#define RNDIS_PKTINFO_SIZE_ALIGN 4 | #define RNDIS_PKTINFO_SIZE_ALIGN 4 | ||||
#define RNDIS_PKTINFO_SIZE_ALIGNMASK (RNDIS_PKTINFO_SIZE_ALIGN - 1) | #define RNDIS_PKTINFO_SIZE_ALIGNMASK (RNDIS_PKTINFO_SIZE_ALIGN - 1) | ||||
#define NDIS_PKTINFO_TYPE_CSUM 0 | #define NDIS_PKTINFO_TYPE_CSUM 0 | ||||
#define NDIS_PKTINFO_TYPE_IPSEC 1 | #define NDIS_PKTINFO_TYPE_IPSEC 1 | ||||
#define NDIS_PKTINFO_TYPE_LSO 2 | #define NDIS_PKTINFO_TYPE_LSO 2 | ||||
#define NDIS_PKTINFO_TYPE_CLASSIFY 3 | #define NDIS_PKTINFO_TYPE_CLASSIFY 3 | ||||
/* reserved 4 */ | /* reserved 4 */ | ||||
#define NDIS_PKTINFO_TYPE_SGLIST 5 | #define NDIS_PKTINFO_TYPE_SGLIST 5 | ||||
#define NDIS_PKTINFO_TYPE_VLAN 6 | #define NDIS_PKTINFO_TYPE_VLAN 6 | ||||
#define NDIS_PKTINFO_TYPE_ORIG 7 | #define NDIS_PKTINFO_TYPE_ORIG 7 | ||||
#define NDIS_PKTINFO_TYPE_PKT_CANCELID 8 | #define NDIS_PKTINFO_TYPE_PKT_CANCELID 8 | ||||
#define NDIS_PKTINFO_TYPE_ORIG_NBLIST 9 | #define NDIS_PKTINFO_TYPE_ORIG_NBLIST 9 | ||||
#define NDIS_PKTINFO_TYPE_CACHE_NBLIST 10 | #define NDIS_PKTINFO_TYPE_CACHE_NBLIST 10 | ||||
#define NDIS_PKTINFO_TYPE_PKT_PAD 11 | #define NDIS_PKTINFO_TYPE_PKT_PAD 11 | ||||
/* Per-packet-info internal type */ | |||||
#define NDIS_PKTINFO_IT_PKTINFO_ID 1 | |||||
/* Add more internal type here */ | |||||
/* | /* | ||||
* RNDIS control messages | * RNDIS control messages | ||||
*/ | */ | ||||
/* | /* | ||||
* Common header for RNDIS completion messages. | * Common header for RNDIS completion messages. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |