2 #include "dev/rtl8019dev.h"
26 #define IP_TCP_HEADER_LENGTH 40
27 #define TOTAL_HEADER_LENGTH (IP_TCP_HEADER_LENGTH+ETHERNET_HEADER_LENGTH)
31 void RTL8019dev_init(
void)
37 void RTL8019dev_send(
void)
39 RTL8019beginPacketSend(
uip_len);
42 if(
uip_len <= TOTAL_HEADER_LENGTH ) {
43 RTL8019sendPacketData(uip_buf,
uip_len);
46 RTL8019sendPacketData(uip_buf, TOTAL_HEADER_LENGTH);
50 RTL8019endPacketSend();
55 unsigned int RTL8019dev_poll(
void)
57 unsigned int packetLength;
59 packetLength = RTL8019beginPacketRetreive();
68 RTL8019endPacketRetreive();
73 RTL8019retreivePacketData( uip_buf, packetLength );
74 RTL8019endPacketRetreive();
80 void RTL8019dev_exit(
void)