RTEMS  5.1
ethernet.h
1 /*
2  * RTEMS network driver for Blackfin embedded ethernet controller
3  *
4  * COPYRIGHT (c) 2008 Kallisti Labs, Los Gatos, CA, USA
5  * written by Allan Hessenflow <allanh@kallisti.com>
6  *
7  * The license and distribution terms for this file may be
8  * found in the file LICENSE in this distribution or at
9  * http://www.rtems.org/license/LICENSE.
10  */
11 
12 #ifndef _ethernet_h_
13 #define _ethernet_h_
14 
15 
16 #define BFIN_ETHERNET_DEBUG_NONE 0x0000
17 #define BFIN_ETHERNET_DEBUG_ALL 0xFFFF
18 
19 #define BFIN_ETHERNET_DEBUG (BFIN_ETHERNET_DEBUG_NONE)
20 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 
27 typedef struct {
28  uint32_t sclk;
29  void *ethBaseAddress;
30  void *rxdmaBaseAddress;
31  void *txdmaBaseAddress;
32  int rxDescCount;
33  int txDescCount;
34  enum {rmii, mii} phyType;
35  int phyAddr;
37 
38 
39 void bfin_ethernet_rxdma_isr(int vector);
40 void bfin_ethernet_txdma_isr(int vector);
41 void bfin_ethernet_mac_isr(int vector);
42 
43 int bfin_ethernet_driver_attach(struct rtems_bsdnet_ifconfig *config,
44  int attaching,
46 
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 
53 #endif /* _ethernet_h_ */
54 
Definition: deflate.c:115
Definition: ethernet.h:27