1 |
786 |
skrzyp |
#ifndef CYGONCE_DEVS_ETH_DAVICOM_DM9000_INFO_H
|
2 |
|
|
#define CYGONCE_DEVS_ETH_DAVICOM_DM9000_INFO_H
|
3 |
|
|
/*==========================================================================
|
4 |
|
|
//
|
5 |
|
|
// dm9000_info.h
|
6 |
|
|
//
|
7 |
|
|
//
|
8 |
|
|
//==========================================================================
|
9 |
|
|
// ####ECOSGPLCOPYRIGHTBEGIN####
|
10 |
|
|
// -------------------------------------------
|
11 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
12 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
13 |
|
|
//
|
14 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
15 |
|
|
// the terms of the GNU General Public License as published by the Free
|
16 |
|
|
// Software Foundation; either version 2 or (at your option) any later
|
17 |
|
|
// version.
|
18 |
|
|
//
|
19 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT
|
20 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
21 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
22 |
|
|
// for more details.
|
23 |
|
|
//
|
24 |
|
|
// You should have received a copy of the GNU General Public License
|
25 |
|
|
// along with eCos; if not, write to the Free Software Foundation, Inc.,
|
26 |
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
27 |
|
|
//
|
28 |
|
|
// As a special exception, if other files instantiate templates or use
|
29 |
|
|
// macros or inline functions from this file, or you compile this file
|
30 |
|
|
// and link it with other works to produce a work based on this file,
|
31 |
|
|
// this file does not by itself cause the resulting work to be covered by
|
32 |
|
|
// the GNU General Public License. However the source code for this file
|
33 |
|
|
// must still be made available in accordance with section (3) of the GNU
|
34 |
|
|
// General Public License v2.
|
35 |
|
|
//
|
36 |
|
|
// This exception does not invalidate any other reasons why a work based
|
37 |
|
|
// on this file might be covered by the GNU General Public License.
|
38 |
|
|
// -------------------------------------------
|
39 |
|
|
// ####ECOSGPLCOPYRIGHTEND####
|
40 |
|
|
//==========================================================================
|
41 |
|
|
//#####DESCRIPTIONBEGIN####
|
42 |
|
|
//
|
43 |
|
|
// Author(s): msalter
|
44 |
|
|
// Contributors:
|
45 |
|
|
// Date: 2004-03-18
|
46 |
|
|
// Description:
|
47 |
|
|
//
|
48 |
|
|
//####DESCRIPTIONEND####
|
49 |
|
|
*/
|
50 |
|
|
|
51 |
|
|
#include <pkgconf/devs_eth_davicom_dm9000.h>
|
52 |
|
|
|
53 |
|
|
struct dm9000 {
|
54 |
|
|
struct eth_drv_sc *sc;
|
55 |
|
|
cyg_uint8 active; // interface is active
|
56 |
|
|
cyg_uint8 reset_pending;
|
57 |
|
|
cyg_uint8 txbusy;
|
58 |
|
|
cyg_uint8 mac_address[6];
|
59 |
|
|
cyg_uint16 rxlen;
|
60 |
|
|
unsigned long txkey;
|
61 |
|
|
volatile unsigned char *io_addr; // addr register
|
62 |
|
|
volatile unsigned char *io_data; // data register
|
63 |
|
|
cyg_vector_t interrupt; // Interrupt vector used by controller
|
64 |
|
|
int (*read_data)(struct dm9000 *p, cyg_uint8 *dest);
|
65 |
|
|
int (*write_data)(struct dm9000 *p, cyg_uint8 *src);
|
66 |
|
|
int buswidth;
|
67 |
|
|
#ifdef CYGINT_IO_ETH_INT_SUPPORT_REQUIRED
|
68 |
|
|
cyg_handle_t interrupt_handle;
|
69 |
|
|
cyg_interrupt interrupt_object;
|
70 |
|
|
#endif
|
71 |
|
|
};
|
72 |
|
|
|
73 |
|
|
#define CYGDAT_DEVS_ETH_DESCRIPTION "Davicom DM9000 Ethernet"
|
74 |
|
|
|
75 |
|
|
#endif
|
76 |
|
|
|
77 |
|
|
/* EOF dm9000_info.h */
|