source: rtems/c/src/lib/libcpu/bfin/network/ethernet.h @ 2c77cbff

4.104.114.95
Last change on this file since 2c77cbff was 30abd24, checked in by Joel Sherrill <joel.sherrill@…>, on 08/15/08 at 20:18:41

2008-08-15 Allan Hessenflow <allanh@…>

  • ChangeLog?, Makefile.am, README, configure.ac, preinstall.am, cache/cache.c, cache/cache_.h, clock/clock.c, clock/rtc.c, clock/tod.h, include/bf533.h, include/bf537.h, include/cecRegs.h, include/coreTimerRegs.h, include/dmaRegs.h, include/ebiuRegs.h, include/ethernetRegs.h, include/gpioRegs.h, include/memoryRegs.h, include/mmuRegs.h, include/ppiRegs.h, include/rtcRegs.h, include/sicRegs.h, include/spiRegs.h, include/sportRegs.h, include/timerRegs.h, include/twiRegs.h, include/uartRegs.h, include/wdogRegs.h, interrupt/interrupt.c, interrupt/interrupt.h, mmu/mmu.c, mmu/mmu.h, network/ethernet.c, network/ethernet.h, serial/spi.c, serial/spi.h, serial/sport.c, serial/sport.h, serial/twi.c, serial/twi.h, serial/uart.c, serial/uart.h, timer/timer.c: New files.
  • Property mode set to 100644
File size: 1.2 KB
Line 
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.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#ifndef _ethernet_h_
15#define _ethernet_h_
16
17
18#define BFIN_ETHERNET_DEBUG_NONE                0x0000
19#define BFIN_ETHERNET_DEBUG_ALL                 0xFFFF
20
21#define BFIN_ETHERNET_DEBUG  (BFIN_ETHERNET_DEBUG_NONE)
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28
29typedef struct {
30  uint32_t sclk;
31  void *ethBaseAddress;
32  void *rxdmaBaseAddress;
33  void *txdmaBaseAddress;
34  int rxDescCount;
35  int txDescCount;
36  enum {rmii, mii} phyType;
37  int phyAddr;
38} bfin_ethernet_configuration_t;
39
40
41void bfin_ethernet_rxdma_isr(int vector);
42void bfin_ethernet_txdma_isr(int vector);
43void bfin_ethernet_mac_isr(int vector);
44
45int bfin_ethernet_driver_attach(struct rtems_bsdnet_ifconfig *config,
46                                int attaching,
47                                bfin_ethernet_configuration_t *chip);
48
49
50#ifdef __cplusplus
51}
52#endif
53
54
55#endif /* _ethernet_h_ */
56
Note: See TracBrowser for help on using the repository browser.