Contiki 2.5
rtl8019dev.h
1 #ifndef __RTL8019DEV_H__
2 #define __RTL8019DEV_H__
3 
4 /*****************************************************************************
5 * Module Name: Realtek 8019AS Driver Interface for uIP-AVR Port
6 *
7 * Created By: Louis Beaudoin (www.embedded-creations.com)
8 *
9 * Original Release: September 21, 2002
10 *
11 * Module Description:
12 * Provides three functions to interface with the Realtek 8019AS driver
13 * These functions can be called directly from the main uIP control loop
14 * to send packets from uip_buf and uip_appbuf, and store incoming packets to
15 * uip_buf
16 *
17 * September 30, 2002 - Louis Beaudoin
18 * Modifications required to handle the packet receive function changes in
19 * rtl8019.c. There is no longer a need to poll for an empty buffer or
20 * an overflow.
21 * Added support for the Imagecraft Compiler
22 *
23 *****************************************************************************/
24 
25 #include "net/uip.h"
26 #include "dev/rtl8019.h"
27 
28 /*****************************************************************************
29 * RTL8019dev_init()
30 * Created By: Louis Beaudoin
31 * Date: September 21, 2002
32 * Description: Power-up initialization of the RTL8019
33 *****************************************************************************/
34 void RTL8019dev_init(void);
35 
36 
37 /*****************************************************************************
38 * RTL8019dev_send()
39 * Created By: Louis Beaudoin
40 * Date: September 21, 2002
41 * Description: Sends the packet contained in uip_buf and uip_appdata over
42 * the network
43 *****************************************************************************/
44 void RTL8019dev_send(void);
45 
46 
47 /*****************************************************************************
48 * unsigned char/int RTL8019dev_poll()
49 * Returns: Length of the packet retreived, or zero if no packet retreived
50 * Created By: Louis Beaudoin
51 * Date: September 21, 2002
52 * Description: Polls the RTL8019 looking for an overflow condition or a new
53 * packet in the receive buffer. If a new packet exists and
54 * will fit in uip_buf, it is retreived, and the length is
55 * returned. A packet bigger than the buffer is discarded
56 *****************************************************************************/
57 unsigned int RTL8019dev_poll(void);
58 
59 
60 /*****************************************************************************
61 * RTL8019dev_exit()
62 * Created By: -
63 * Date: -
64 * Description: Final shutdown of the RTL8019
65 *****************************************************************************/
66 void RTL8019dev_exit(void);
67 
68 
69 #endif /* __RTL8019DEV_H__ */