Go to the documentation of this file.
28 #include <linux/list.h>
125 void *additional_info);
139 #define NVSP_INVALID_PROTOCOL_VERSION ((u32)0xFFFFFFFF)
141 #define NVSP_PROTOCOL_VERSION_1 2
142 #define NVSP_PROTOCOL_VERSION_2 0x30002
464 #define NETVSC_MTU 65536
466 #define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*2)
468 #define NETVSC_RECEIVE_BUFFER_ID 0xcafe
471 #define NETVSC_RECEIVE_PACKETLIST_COUNT 256
473 #define NETVSC_PACKET_SIZE 2048
675 #define NDIS_VLAN_PPI_SIZE (sizeof(struct rndis_per_packet_info) + \
676 sizeof(struct ndis_pkt_8021q_info))
689 #define RNDIS_CONFIG_PARAM_TYPE_INTEGER 0
690 #define RNDIS_CONFIG_PARAM_TYPE_STRING 2
860 #define RNDIS_MESSAGE_SIZE(msg) \
861 (sizeof(msg) + (sizeof(struct rndis_message) - \
862 sizeof(union rndis_message_container)))
865 #define MESSAGE_TO_INFO_BUFFER(msg) \
866 (((unsigned char *)(msg)) + msg->info_buf_offset)
869 #define MESSAGE_TO_STATUS_BUFFER(msg) \
870 (((unsigned char *)(msg)) + msg->status_buf_offset)
873 #define MESSAGE_TO_OOBD_BUFFER(msg) \
874 (((unsigned char *)(msg)) + msg->oob_data_offset)
877 #define MESSAGE_TO_DATA_BUFFER(msg) \
878 (((unsigned char *)(msg)) + msg->per_pkt_info_offset)
881 #define RNDIS_MESSAGE_PTR_TO_MESSAGE_PTR(rndis_msg) \
882 ((void *) &rndis_msg->msg)
885 #define RNDIS_MESSAGE_RAW_PTR_TO_MESSAGE_PTR(rndis_msg) \
889 #define __struct_bcount(x)
893 #define RNDIS_HEADER_SIZE (sizeof(struct rndis_message) - \
894 sizeof(union rndis_message_container))
896 #define NDIS_PACKET_TYPE_DIRECTED 0x00000001
897 #define NDIS_PACKET_TYPE_MULTICAST 0x00000002
898 #define NDIS_PACKET_TYPE_ALL_MULTICAST 0x00000004
899 #define NDIS_PACKET_TYPE_BROADCAST 0x00000008
900 #define NDIS_PACKET_TYPE_SOURCE_ROUTING 0x00000010
901 #define NDIS_PACKET_TYPE_PROMISCUOUS 0x00000020
902 #define NDIS_PACKET_TYPE_SMT 0x00000040
903 #define NDIS_PACKET_TYPE_ALL_LOCAL 0x00000080
904 #define NDIS_PACKET_TYPE_GROUP 0x00000100
905 #define NDIS_PACKET_TYPE_ALL_FUNCTIONAL 0x00000200
906 #define NDIS_PACKET_TYPE_FUNCTIONAL 0x00000400
907 #define NDIS_PACKET_TYPE_MAC_FRAME 0x00000800