RTEMS: bsps/bfin/include/libcpu/ethernet.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
23extern "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;
36} bfin_ethernet_configuration_t;
37
38
39void bfin_ethernet_rxdma_isr(int vector);
40void bfin_ethernet_txdma_isr(int vector);
41void bfin_ethernet_mac_isr(int vector);
42
43int bfin_ethernet_driver_attach(struct rtems_bsdnet_ifconfig *config,
44 int attaching,
45 bfin_ethernet_configuration_t *chip);
46
47
48#ifdef __cplusplus
49}
50#endif
51
52
53#endif /* _ethernet_h_ */
54
bfin_ethernet_configuration_t
Definition: ethernet.h:27
config_s
Definition: deflate.c:115