43 #ifndef _RNDIS_TASK_H_
44 #define _RNDIS_TASK_H_
55 #include "../conf_usb.h"
59 #define USB_ETH_MTU UIP_BUFSIZE+4
84 #ifndef USB_ETH_HOOK_RX_START
86 #define USB_ETH_HOOK_RX_START() rx_start_led()
89 #ifndef USB_ETH_HOOK_TX_END
91 #define USB_ETH_HOOK_TX_END() tx_end_led()
96 #ifndef USB_ETH_HOOK_TX_ERROR
97 #define USB_ETH_HOOK_TX_ERROR(string) do { } while(0)
100 #ifndef USB_ETH_HOOK_RX_ERROR
101 #define USB_ETH_HOOK_RX_ERROR(string) do { } while(0)
107 uint8_t
usb_eth_send(uint8_t * senddata, uint16_t sendlen, uint8_t led);
108 uint8_t usb_eth_set_active(uint8_t active);
109 uint8_t usb_eth_ready_for_next_packet();
111 void sof_action(
void);
113 extern uint8_t usb_eth_is_active;
116 extern uint64_t usb_ethernet_addr;
117 void usb_eth_get_mac_address(uint8_t dest[6]);
118 void usb_eth_set_mac_address(
const uint8_t src[6]);