Go to the documentation of this file.
31 #ifndef _RNDIS_DRIVER_H
32 #define _RNDIS_DRIVER_H
38 #ifndef RNDIS_TX_BUFFER_COUNT
39 #define RNDIS_TX_BUFFER_COUNT 2
40 #elif (RNDIS_TX_BUFFER_COUNT < 1)
41 #error RNDIS_TX_BUFFER_COUNT parameter is not valid
45 #ifndef RNDIS_TX_BUFFER_SIZE
46 #define RNDIS_TX_BUFFER_SIZE 2048
47 #elif (RNDIS_TX_BUFFER_SIZE != 2048)
48 #error RNDIS_TX_BUFFER_SIZE parameter is not valid
52 #ifndef RNDIS_RX_BUFFER_COUNT
53 #define RNDIS_RX_BUFFER_COUNT 1
54 #elif (RNDIS_RX_BUFFER_COUNT < 1)
55 #error RNDIS_RX_BUFFER_COUNT parameter is not valid
59 #ifndef RNDIS_RX_BUFFER_SIZE
60 #define RNDIS_RX_BUFFER_SIZE 2048
61 #elif (RNDIS_RX_BUFFER_SIZE != 2048)
62 #error RNDIS_RX_BUFFER_SIZE parameter is not valid
118 uint8_t *buffer,
size_t size,
size_t *
length);
#define RNDIS_TX_BUFFER_SIZE
void rndisDriverEnableIrq(NetInterface *interface)
Enable interrupts.
Structure describing a buffer that spans multiple chunks.
#define RNDIS_RX_BUFFER_SIZE
error_t rndisDriverReceivePacket(NetInterface *interface, uint8_t *buffer, size_t size, size_t *length)
Receive a packet.
NetInterface * rndisDriverInterface
error_t rndisDriverSetMulticastFilter(NetInterface *interface)
Configure multicast MAC address filtering.
error_t rndisDriverInit(NetInterface *interface)
RNDIS driver initialization.
error_t rndisDriverSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
#define RNDIS_TX_BUFFER_COUNT
RndisRxBufferDesc rndisRxBuffer[RNDIS_RX_BUFFER_COUNT]
void rndisDriverEventHandler(NetInterface *interface)
RNDIS driver event handler.
const NicDriver rndisDriver
RNDIS driver.
Network interface controller abstraction layer.
void rndisDriverTick(NetInterface *interface)
RNDIS driver timer handler.
#define RNDIS_RX_BUFFER_COUNT
void rndisDriverDisableIrq(NetInterface *interface)
Disable interrupts.
RndisTxBufferDesc rndisTxBuffer[RNDIS_TX_BUFFER_COUNT]