41 void RTL8019beginPacketSend(
unsigned int packetLength);
59 void RTL8019sendPacketData(
unsigned char * localBuffer,
unsigned int length);
69 void RTL8019endPacketSend(
void);
80 void initRTL8019(
void);
95 void processRTL8019Interrupt(
void);
126 unsigned int RTL8019beginPacketRetreive(
void);
144 void RTL8019retreivePacketData(
unsigned char * localBuffer,
145 unsigned int length);
158 void RTL8019endPacketRetreive(
void);
178 #define MEMORY_MAPPED_NIC 1
180 #if MEMORY_MAPPED_NIC
183 #define MEMORY_MAPPED_RTL8019_OFFSET 0x8300
188 #define RTL8019_ADDRESS_PORT PORTC
189 #define RTL8019_ADDRESS_DDR DDRC
192 #define RTL8019_DATA_PORT PORTA
193 #define RTL8019_DATA_DDR DDRA
194 #define RTL8019_DATA_PIN PINA
197 #define RTL8019_CONTROL_PORT PORTD
198 #define RTL8019_CONTROL_DDR DDRD
199 #define RTL8019_CONTROL_READPIN PD7
200 #define RTL8019_CONTROL_WRITEPIN PD6
204 #define RTL8019_CLEAR_READ cbi(RTL8019_CONTROL_PORT,\
205 RTL8019_CONTROL_READPIN)
206 #define RTL8019_SET_READ sbi(RTL8019_CONTROL_PORT,\
207 RTL8019_CONTROL_READPIN)
208 #define RTL8019_CLEAR_WRITE cbi(RTL8019_CONTROL_PORT,\
209 RTL8019_CONTROL_WRITEPIN)
210 #define RTL8019_SET_WRITE sbi(RTL8019_CONTROL_PORT,\
211 RTL8019_CONTROL_WRITEPIN)
218 #define RTL8019_RESET_PORT PORTE
219 #define RTL8019_RESET_DDR DDRE
220 #define RTL8019_RESET_PIN PORTE0
231 #define ETHERNET_MIN_PACKET_LENGTH 0x3C
232 #define ETHERNET_HEADER_LENGTH 0x0E