1 |
786 |
skrzyp |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// devs/eth/mips/vrc4375/..../include/devs_eth_vrc4375.inl
|
4 |
|
|
//
|
5 |
|
|
// vrc4375 ethernet I/O definitions.
|
6 |
|
|
//
|
7 |
|
|
//==========================================================================
|
8 |
|
|
// ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
// -------------------------------------------
|
10 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
12 |
|
|
//
|
13 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
14 |
|
|
// the terms of the GNU General Public License as published by the Free
|
15 |
|
|
// Software Foundation; either version 2 or (at your option) any later
|
16 |
|
|
// version.
|
17 |
|
|
//
|
18 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT
|
19 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
20 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
21 |
|
|
// for more details.
|
22 |
|
|
//
|
23 |
|
|
// You should have received a copy of the GNU General Public License
|
24 |
|
|
// along with eCos; if not, write to the Free Software Foundation, Inc.,
|
25 |
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
26 |
|
|
//
|
27 |
|
|
// As a special exception, if other files instantiate templates or use
|
28 |
|
|
// macros or inline functions from this file, or you compile this file
|
29 |
|
|
// and link it with other works to produce a work based on this file,
|
30 |
|
|
// this file does not by itself cause the resulting work to be covered by
|
31 |
|
|
// the GNU General Public License. However the source code for this file
|
32 |
|
|
// must still be made available in accordance with section (3) of the GNU
|
33 |
|
|
// General Public License v2.
|
34 |
|
|
//
|
35 |
|
|
// This exception does not invalidate any other reasons why a work based
|
36 |
|
|
// on this file might be covered by the GNU General Public License.
|
37 |
|
|
// -------------------------------------------
|
38 |
|
|
// ####ECOSGPLCOPYRIGHTEND####
|
39 |
|
|
//==========================================================================
|
40 |
|
|
//#####DESCRIPTIONBEGIN####
|
41 |
|
|
//
|
42 |
|
|
// Author(s): hmt
|
43 |
|
|
// Contributors:
|
44 |
|
|
// Date: 2001-09-17
|
45 |
|
|
// Purpose: vrc4375 ethernet defintions
|
46 |
|
|
//####DESCRIPTIONEND####
|
47 |
|
|
//==========================================================================
|
48 |
|
|
|
49 |
|
|
// --------------------------------------------------------------
|
50 |
|
|
// Construct the interface
|
51 |
|
|
|
52 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH0
|
53 |
|
|
|
54 |
|
|
static I21143 i21143_eth0_priv_data = {
|
55 |
|
|
#ifdef CYGSEM_DEVS_ETH_MIPS_VRC4375_ETH0_SET_ESA
|
56 |
|
|
hardwired_esa: 1,
|
57 |
|
|
mac_address: CYGDAT_DEVS_ETH_MIPS_VRC4375_ETH0_ESA
|
58 |
|
|
#else
|
59 |
|
|
hardwired_esa: 0,
|
60 |
|
|
#endif
|
61 |
|
|
};
|
62 |
|
|
|
63 |
|
|
ETH_DRV_SC(i21143_sc0,
|
64 |
|
|
&i21143_eth0_priv_data, // Driver specific data
|
65 |
|
|
CYGDAT_DEVS_ETH_MIPS_VRC4375_ETH0_NAME, // Name for device
|
66 |
|
|
i21143_start,
|
67 |
|
|
i21143_stop,
|
68 |
|
|
i21143_ioctl,
|
69 |
|
|
i21143_can_send,
|
70 |
|
|
i21143_send,
|
71 |
|
|
i21143_recv,
|
72 |
|
|
i21143_deliver,
|
73 |
|
|
i21143_poll,
|
74 |
|
|
i21143_int_vector
|
75 |
|
|
);
|
76 |
|
|
|
77 |
|
|
NETDEVTAB_ENTRY(i21143_netdev0,
|
78 |
|
|
"i21143_" CYGDAT_DEVS_ETH_MIPS_VRC4375_ETH0_NAME,
|
79 |
|
|
i21143_init,
|
80 |
|
|
&i21143_sc0);
|
81 |
|
|
|
82 |
|
|
#endif // CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH0
|
83 |
|
|
|
84 |
|
|
// --------------------------------------------------------------
|
85 |
|
|
// These arrays are used for sanity checking of pointers
|
86 |
|
|
I21143 *
|
87 |
|
|
i21143_priv_array[CYGNUM_DEVS_ETH_INTEL_I21143_DEV_COUNT] = {
|
88 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH0
|
89 |
|
|
&i21143_eth0_priv_data,
|
90 |
|
|
#endif
|
91 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH1
|
92 |
|
|
&i21143_eth1_priv_data,
|
93 |
|
|
#endif
|
94 |
|
|
};
|
95 |
|
|
|
96 |
|
|
#ifdef CYGDBG_USE_ASSERTS
|
97 |
|
|
// These are only used when assertions are enabled
|
98 |
|
|
cyg_netdevtab_entry_t *
|
99 |
|
|
i21143_netdev_array[CYGNUM_DEVS_ETH_INTEL_I21143_DEV_COUNT] = {
|
100 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH0
|
101 |
|
|
&i21143_netdev0,
|
102 |
|
|
#endif
|
103 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH1
|
104 |
|
|
&i21143_netdev1,
|
105 |
|
|
#endif
|
106 |
|
|
};
|
107 |
|
|
|
108 |
|
|
struct eth_drv_sc *
|
109 |
|
|
i21143_sc_array[CYGNUM_DEVS_ETH_INTEL_I21143_DEV_COUNT] = {
|
110 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH0
|
111 |
|
|
&i21143_sc0,
|
112 |
|
|
#endif
|
113 |
|
|
#ifdef CYGPKG_DEVS_ETH_MIPS_VRC4375_ETH1
|
114 |
|
|
&i21143_sc1,
|
115 |
|
|
#endif
|
116 |
|
|
};
|
117 |
|
|
#endif // CYGDBG_USE_ASSERTS
|
118 |
|
|
|
119 |
|
|
// --------------------------------------------------------------
|
120 |
|
|
// Debugging
|
121 |
|
|
|
122 |
|
|
//#define CYGDBG_DEVS_ETH_INTEL_I21143_CHATTER 1
|
123 |
|
|
|
124 |
|
|
// --------------------------------------------------------------
|
125 |
|
|
|
126 |
|
|
// EOF devs_eth_vrc4375.inl
|