c2b040193a777c09bdc595c95492b57a2521db87
Stefan Schuermans added file headers

Stefan Schuermans authored 12 years ago

1) /* MIPS I system
2)  * Copyright 2011-2012 Stefan Schuermans <stefan@schuermans.info>
3)  * Copyleft GNU public license V2 or later
4)  *          http://www.gnu.org/copyleft/gpl.html
5)  */
6) 
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

7) #ifndef ETH_H
8) #define ETH_H
9) 
Stefan Schuermans made MAC configurable in et...

Stefan Schuermans authored 12 years ago

10) /** initialize MAC address */
11) void eth_mac_init(void);
12) 
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

13) /** initialize receiver */
14) void eth_rx_init(void);
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

15) 
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

16) /** initialize transmitter */
17) void eth_tx_init(void);
18) 
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

19) /**
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

20)  * @brief get next received packet
21)  * @param[out] *pptr pointer to packet data
22)  * @param[out] *psz size of packet
23)  * @return if a packet was received
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

24)  */
Stefan Schuermans implemented ethernet RX bus...

Stefan Schuermans authored 12 years ago

25) int eth_rx(void **pptr, unsigned int *psz);
Stefan Schuermans begin of ethernet RX implem...

Stefan Schuermans authored 12 years ago

26) 
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

27) /**
28)  * @brief transmit packet
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

29)  * @param[in] ptr pointer to packet data
30)  * @param[in] sz size of packet
31)  *
32)  * Padding will be appended if sz is not a multiple of 4 or smaller 60 bytes.
33)  * The buffer pointed to by ptr must be sufficiently large.
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

34)  */
Stefan Schuermans ethernet TX function takes...

Stefan Schuermans authored 12 years ago

35) void eth_tx(const void *ptr, unsigned int sz);
Stefan Schuermans implemented ethernet TX fir...

Stefan Schuermans authored 12 years ago

36) 
Stefan Schuermans added padding of ethernet p...

Stefan Schuermans authored 12 years ago

37) /** get number of received packets */
38) unsigned int eth_rx_get_cnt(void);
39) 
40) /** get number of transmitted packets */
41) unsigned int eth_tx_get_cnt(void);
42)