require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&RNDIS_RX_LIST_CNT)) {
    sub RNDIS_RX_LIST_CNT () {	1;}
}
unless(defined(&RNDIS_TX_LIST_CNT)) {
    sub RNDIS_TX_LIST_CNT () {	1;}
}
unless(defined(&RNDIS_BUFSZ)) {
    sub RNDIS_BUFSZ () {	1542;}
}
unless(defined(&GET_IFP)) {
    sub GET_IFP {
	my($sc) = @_;
	eval q((($sc)-> ($sc_arpcom->{ac_if})));
    }
}
unless(defined(&RNDIS_STATUS_BUFFER_OVERFLOW)) {
    sub RNDIS_STATUS_BUFFER_OVERFLOW () {	0x80000005;}
}
unless(defined(&RNDIS_STATUS_FAILURE)) {
    sub RNDIS_STATUS_FAILURE () {	0xc0000001;}
}
unless(defined(&RNDIS_STATUS_INVALID_DATA)) {
    sub RNDIS_STATUS_INVALID_DATA () {	0xc0010015;}
}
unless(defined(&RNDIS_STATUS_MEDIA_CONNECT)) {
    sub RNDIS_STATUS_MEDIA_CONNECT () {	0x4001000b;}
}
unless(defined(&RNDIS_STATUS_MEDIA_DISCONNECT)) {
    sub RNDIS_STATUS_MEDIA_DISCONNECT () {	0x4001000c;}
}
unless(defined(&RNDIS_STATUS_NOT_SUPPORTED)) {
    sub RNDIS_STATUS_NOT_SUPPORTED () {	0xc00000bb;}
}
unless(defined(&RNDIS_STATUS_PENDING)) {
    sub RNDIS_STATUS_PENDING () {	 &STATUS_PENDING;}
}
unless(defined(&RNDIS_STATUS_RESOURCES)) {
    sub RNDIS_STATUS_RESOURCES () {	0xc000009a;}
}
unless(defined(&RNDIS_STATUS_SUCCESS)) {
    sub RNDIS_STATUS_SUCCESS () {	0x;}
}
unless(defined(&OID_GEN_SUPPORTED_LIST)) {
    sub OID_GEN_SUPPORTED_LIST () {	0x10101;}
}
unless(defined(&OID_GEN_HARDWARE_STATUS)) {
    sub OID_GEN_HARDWARE_STATUS () {	0x10102;}
}
unless(defined(&OID_GEN_MEDIA_SUPPORTED)) {
    sub OID_GEN_MEDIA_SUPPORTED () {	0x10103;}
}
unless(defined(&OID_GEN_MEDIA_IN_USE)) {
    sub OID_GEN_MEDIA_IN_USE () {	0x10104;}
}
unless(defined(&OID_GEN_MAXIMUM_LOOKAHEAD)) {
    sub OID_GEN_MAXIMUM_LOOKAHEAD () {	0x10105;}
}
unless(defined(&OID_GEN_MAXIMUM_FRAME_SIZE)) {
    sub OID_GEN_MAXIMUM_FRAME_SIZE () {	0x10106;}
}
unless(defined(&OID_GEN_LINK_SPEED)) {
    sub OID_GEN_LINK_SPEED () {	0x10107;}
}
unless(defined(&OID_GEN_TRANSMIT_BUFFER_SPACE)) {
    sub OID_GEN_TRANSMIT_BUFFER_SPACE () {	0x10108;}
}
unless(defined(&OID_GEN_RECEIVE_BUFFER_SPACE)) {
    sub OID_GEN_RECEIVE_BUFFER_SPACE () {	0x10109;}
}
unless(defined(&OID_GEN_TRANSMIT_BLOCK_SIZE)) {
    sub OID_GEN_TRANSMIT_BLOCK_SIZE () {	0x1010a;}
}
unless(defined(&OID_GEN_RECEIVE_BLOCK_SIZE)) {
    sub OID_GEN_RECEIVE_BLOCK_SIZE () {	0x1010b;}
}
unless(defined(&OID_GEN_VENDOR_ID)) {
    sub OID_GEN_VENDOR_ID () {	0x1010c;}
}
unless(defined(&OID_GEN_VENDOR_DESCRIPTION)) {
    sub OID_GEN_VENDOR_DESCRIPTION () {	0x1010d;}
}
unless(defined(&OID_GEN_CURRENT_PACKET_FILTER)) {
    sub OID_GEN_CURRENT_PACKET_FILTER () {	0x1010e;}
}
unless(defined(&OID_GEN_CURRENT_LOOKAHEAD)) {
    sub OID_GEN_CURRENT_LOOKAHEAD () {	0x1010f;}
}
unless(defined(&OID_GEN_DRIVER_VERSION)) {
    sub OID_GEN_DRIVER_VERSION () {	0x10110;}
}
unless(defined(&OID_GEN_MAXIMUM_TOTAL_SIZE)) {
    sub OID_GEN_MAXIMUM_TOTAL_SIZE () {	0x10111;}
}
unless(defined(&OID_GEN_PROTOCOL_OPTIONS)) {
    sub OID_GEN_PROTOCOL_OPTIONS () {	0x10112;}
}
unless(defined(&OID_GEN_MAC_OPTIONS)) {
    sub OID_GEN_MAC_OPTIONS () {	0x10113;}
}
unless(defined(&OID_GEN_MEDIA_CONNECT_STATUS)) {
    sub OID_GEN_MEDIA_CONNECT_STATUS () {	0x10114;}
}
unless(defined(&OID_GEN_MAXIMUM_SEND_PACKETS)) {
    sub OID_GEN_MAXIMUM_SEND_PACKETS () {	0x10115;}
}
unless(defined(&OID_GEN_VENDOR_DRIVER_VERSION)) {
    sub OID_GEN_VENDOR_DRIVER_VERSION () {	0x10116;}
}
unless(defined(&OID_GEN_SUPPORTED_GUIDS)) {
    sub OID_GEN_SUPPORTED_GUIDS () {	0x10117;}
}
unless(defined(&OID_GEN_NETWORK_LAYER_ADDRESSES)) {
    sub OID_GEN_NETWORK_LAYER_ADDRESSES () {	0x10118;}
}
unless(defined(&OID_GEN_TRANSPORT_HEADER_OFFSET)) {
    sub OID_GEN_TRANSPORT_HEADER_OFFSET () {	0x10119;}
}
unless(defined(&OID_GEN_MACHINE_NAME)) {
    sub OID_GEN_MACHINE_NAME () {	0x1021a;}
}
unless(defined(&OID_GEN_RNDIS_CONFIG_PARAMETER)) {
    sub OID_GEN_RNDIS_CONFIG_PARAMETER () {	0x1021b;}
}
unless(defined(&OID_GEN_VLAN_ID)) {
    sub OID_GEN_VLAN_ID () {	0x1021c;}
}
unless(defined(&OID_802_3_PERMANENT_ADDRESS)) {
    sub OID_802_3_PERMANENT_ADDRESS () {	0x1010101;}
}
unless(defined(&OID_802_3_CURRENT_ADDRESS)) {
    sub OID_802_3_CURRENT_ADDRESS () {	0x1010102;}
}
unless(defined(&OID_802_3_MULTICAST_LIST)) {
    sub OID_802_3_MULTICAST_LIST () {	0x1010103;}
}
unless(defined(&OID_802_3_MAXIMUM_LIST_SIZE)) {
    sub OID_802_3_MAXIMUM_LIST_SIZE () {	0x1010104;}
}
unless(defined(&OID_802_3_MAC_OPTIONS)) {
    sub OID_802_3_MAC_OPTIONS () {	0x1010105;}
}
unless(defined(&OID_802_3_RCV_ERROR_ALIGNMENT)) {
    sub OID_802_3_RCV_ERROR_ALIGNMENT () {	0x1020101;}
}
unless(defined(&OID_802_3_XMIT_ONE_COLLISION)) {
    sub OID_802_3_XMIT_ONE_COLLISION () {	0x1020102;}
}
unless(defined(&OID_802_3_XMIT_MORE_COLLISIONS)) {
    sub OID_802_3_XMIT_MORE_COLLISIONS () {	0x1020103;}
}
unless(defined(&OID_802_3_XMIT_DEFERRED)) {
    sub OID_802_3_XMIT_DEFERRED () {	0x1020201;}
}
unless(defined(&OID_802_3_XMIT_MAX_COLLISIONS)) {
    sub OID_802_3_XMIT_MAX_COLLISIONS () {	0x1020202;}
}
unless(defined(&OID_802_3_RCV_OVERRUN)) {
    sub OID_802_3_RCV_OVERRUN () {	0x1020203;}
}
unless(defined(&OID_802_3_XMIT_UNDERRUN)) {
    sub OID_802_3_XMIT_UNDERRUN () {	0x1020204;}
}
unless(defined(&OID_802_3_XMIT_HEARTBEAT_FAILURE)) {
    sub OID_802_3_XMIT_HEARTBEAT_FAILURE () {	0x1020205;}
}
unless(defined(&OID_802_3_XMIT_TIMES_CRS_LOST)) {
    sub OID_802_3_XMIT_TIMES_CRS_LOST () {	0x1020206;}
}
unless(defined(&OID_802_3_XMIT_LATE_COLLISIONS)) {
    sub OID_802_3_XMIT_LATE_COLLISIONS () {	0x1020207;}
}
unless(defined(&RNDIS_MEDIUM_802_3)) {
    sub RNDIS_MEDIUM_802_3 () {	0x;}
}
unless(defined(&RNDIS_DF_CONNECTIONLESS)) {
    sub RNDIS_DF_CONNECTIONLESS () {	0x1;}
}
unless(defined(&RNDIS_DF_CONNECTION_ORIENTED)) {
    sub RNDIS_DF_CONNECTION_ORIENTED () {	0x2;}
}
unless(defined(&REMOTE_NDIS_PACKET_MSG)) {
    sub REMOTE_NDIS_PACKET_MSG () {	0x1;}
}
unless(defined(&REMOTE_NDIS_INITIALIZE_MSG)) {
    sub REMOTE_NDIS_INITIALIZE_MSG () {	0x2;}
}
unless(defined(&REMOTE_NDIS_INITIALIZE_CMPLT)) {
    sub REMOTE_NDIS_INITIALIZE_CMPLT () {	0x80000002;}
}
unless(defined(&REMOTE_NDIS_HALT_MSG)) {
    sub REMOTE_NDIS_HALT_MSG () {	0x3;}
}
unless(defined(&REMOTE_NDIS_QUERY_MSG)) {
    sub REMOTE_NDIS_QUERY_MSG () {	0x4;}
}
unless(defined(&REMOTE_NDIS_QUERY_CMPLT)) {
    sub REMOTE_NDIS_QUERY_CMPLT () {	0x80000004;}
}
unless(defined(&REMOTE_NDIS_SET_MSG)) {
    sub REMOTE_NDIS_SET_MSG () {	0x5;}
}
unless(defined(&REMOTE_NDIS_SET_CMPLT)) {
    sub REMOTE_NDIS_SET_CMPLT () {	0x80000005;}
}
unless(defined(&REMOTE_NDIS_SET_PARAM_NUMERIC)) {
    sub REMOTE_NDIS_SET_PARAM_NUMERIC () {	0x;}
}
unless(defined(&REMOTE_NDIS_SET_PARAM_STRING)) {
    sub REMOTE_NDIS_SET_PARAM_STRING () {	0x2;}
}
unless(defined(&REMOTE_NDIS_RESET_MSG)) {
    sub REMOTE_NDIS_RESET_MSG () {	0x6;}
}
unless(defined(&REMOTE_NDIS_RESET_CMPLT)) {
    sub REMOTE_NDIS_RESET_CMPLT () {	0x80000006;}
}
unless(defined(&REMOTE_NDIS_INDICATE_STATUS_MSG)) {
    sub REMOTE_NDIS_INDICATE_STATUS_MSG () {	0x7;}
}
unless(defined(&REMOTE_NDIS_KEEPALIVE_MSG)) {
    sub REMOTE_NDIS_KEEPALIVE_MSG () {	0x8;}
}
unless(defined(&REMOTE_NDIS_KEEPALIVE_CMPLT)) {
    sub REMOTE_NDIS_KEEPALIVE_CMPLT () {	0x80000008;}
}
unless(defined(&RNDIS_PACKET_TYPE_DIRECTED)) {
    sub RNDIS_PACKET_TYPE_DIRECTED () {	0x1;}
}
unless(defined(&RNDIS_PACKET_TYPE_MULTICAST)) {
    sub RNDIS_PACKET_TYPE_MULTICAST () {	0x2;}
}
unless(defined(&RNDIS_PACKET_TYPE_ALL_MULTICAST)) {
    sub RNDIS_PACKET_TYPE_ALL_MULTICAST () {	0x4;}
}
unless(defined(&RNDIS_PACKET_TYPE_BROADCAST)) {
    sub RNDIS_PACKET_TYPE_BROADCAST () {	0x8;}
}
unless(defined(&RNDIS_PACKET_TYPE_SOURCE_ROUTING)) {
    sub RNDIS_PACKET_TYPE_SOURCE_ROUTING () {	0x10;}
}
unless(defined(&RNDIS_PACKET_TYPE_PROMISCUOUS)) {
    sub RNDIS_PACKET_TYPE_PROMISCUOUS () {	0x20;}
}
unless(defined(&RNDIS_PACKET_TYPE_SMT)) {
    sub RNDIS_PACKET_TYPE_SMT () {	0x40;}
}
unless(defined(&RNDIS_PACKET_TYPE_ALL_LOCAL)) {
    sub RNDIS_PACKET_TYPE_ALL_LOCAL () {	0x80;}
}
unless(defined(&RNDIS_PACKET_TYPE_GROUP)) {
    sub RNDIS_PACKET_TYPE_GROUP () {	0x1000;}
}
unless(defined(&RNDIS_PACKET_TYPE_ALL_FUNCTIONAL)) {
    sub RNDIS_PACKET_TYPE_ALL_FUNCTIONAL () {	0x2000;}
}
unless(defined(&RNDIS_PACKET_TYPE_FUNCTIONAL)) {
    sub RNDIS_PACKET_TYPE_FUNCTIONAL () {	0x4000;}
}
unless(defined(&RNDIS_PACKET_TYPE_MAC_FRAME)) {
    sub RNDIS_PACKET_TYPE_MAC_FRAME () {	0x8000;}
}
unless(defined(&RNDIS_HEADER_OFFSET)) {
    sub RNDIS_HEADER_OFFSET () {	($sizeof{ &u_int32_t} * 2);}
}
unless(defined(&RNDIS_DATA_OFFSET)) {
    sub RNDIS_DATA_OFFSET () {	($sizeof{'struct urndis_packet_msg'} -  &offsetof('struct urndis_packet_msg',  &rm_dataoffset));}
}
1;
