1 |
786 |
skrzyp |
//==========================================================================
|
2 |
|
|
//
|
3 |
|
|
// devs/eth/mips/ocelot/include/devs_eth_mips_rm7000_ocelot.inl
|
4 |
|
|
//
|
5 |
|
|
// PC i82544 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): jskov, nickg
|
43 |
|
|
// Contributors:jskov
|
44 |
|
|
// Date: 2001-11-25
|
45 |
|
|
// Purpose: PC i82544 ethernet defintions
|
46 |
|
|
//####DESCRIPTIONEND####
|
47 |
|
|
//==========================================================================
|
48 |
|
|
|
49 |
|
|
#include // CYGNUM_HAL_INTERRUPT_ETHR
|
50 |
|
|
|
51 |
|
|
#ifdef CYGPKG_DEVS_ETH_I386_PC_I82544_ETH0
|
52 |
|
|
|
53 |
|
|
#define CYGHWR_INTEL_I82544_PCI_MEM_MAP_BASE (CYGARC_UNCACHED_ADDRESS(CYGMEM_SECTION_pci_window))
|
54 |
|
|
#define CYGHWR_INTEL_I82544_PCI_MEM_MAP_SIZE CYGMEM_SECTION_pci_window_SIZE
|
55 |
|
|
|
56 |
|
|
static I82544 i82544_eth0_priv_data = {
|
57 |
|
|
#ifdef CYGSEM_DEVS_ETH_I386_PC_I82544_ETH0_SET_ESA
|
58 |
|
|
hardwired_esa: 1,
|
59 |
|
|
mac_address: CYGDAT_DEVS_ETH_I386_PC_I82544_ETH0_ESA
|
60 |
|
|
#else
|
61 |
|
|
hardwired_esa: 0,
|
62 |
|
|
#endif
|
63 |
|
|
};
|
64 |
|
|
|
65 |
|
|
ETH_DRV_SC(i82544_sc0,
|
66 |
|
|
&i82544_eth0_priv_data, // Driver specific data
|
67 |
|
|
CYGDAT_DEVS_ETH_I386_PC_I82544_ETH0_NAME, // Name for device
|
68 |
|
|
i82544_start,
|
69 |
|
|
i82544_stop,
|
70 |
|
|
i82544_ioctl,
|
71 |
|
|
i82544_can_send,
|
72 |
|
|
i82544_send,
|
73 |
|
|
i82544_recv,
|
74 |
|
|
i82544_deliver,
|
75 |
|
|
i82544_poll,
|
76 |
|
|
i82544_int_vector
|
77 |
|
|
);
|
78 |
|
|
|
79 |
|
|
NETDEVTAB_ENTRY(i82544_netdev0,
|
80 |
|
|
"i82544_" CYGDAT_DEVS_ETH_I386_PC_I82544_ETH0_NAME,
|
81 |
|
|
i82544_init,
|
82 |
|
|
&i82544_sc0);
|
83 |
|
|
|
84 |
|
|
#endif // CYGPKG_DEVS_ETH_I386_PC_I82544_ETH0
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
// These arrays are used for sanity checking of pointers
|
88 |
|
|
I82544 *
|
89 |
|
|
i82544_priv_array[CYGNUM_DEVS_ETH_INTEL_I82544_DEV_COUNT] = {
|
90 |
|
|
#ifdef CYGPKG_DEVS_ETH_I386_PC_I82544_ETH0
|
91 |
|
|
&i82544_eth0_priv_data,
|
92 |
|
|
#endif
|
93 |
|
|
};
|
94 |
|
|
|
95 |
|
|
#ifdef CYGDBG_USE_ASSERTS
|
96 |
|
|
// These are only used when assertions are enabled
|
97 |
|
|
cyg_netdevtab_entry_t *
|
98 |
|
|
i82544_netdev_array[CYGNUM_DEVS_ETH_INTEL_I82544_DEV_COUNT] = {
|
99 |
|
|
#ifdef CYGPKG_DEVS_ETH_I386_PC_I82544_ETH0
|
100 |
|
|
&i82544_netdev0,
|
101 |
|
|
#endif
|
102 |
|
|
};
|
103 |
|
|
|
104 |
|
|
struct eth_drv_sc *
|
105 |
|
|
i82544_sc_array[CYGNUM_DEVS_ETH_INTEL_I82544_DEV_COUNT] = {
|
106 |
|
|
#ifdef CYGPKG_DEVS_ETH_I386_PC_I82544_ETH0
|
107 |
|
|
&i82544_sc0,
|
108 |
|
|
#endif
|
109 |
|
|
};
|
110 |
|
|
#endif // CYGDBG_USE_ASSERTS
|
111 |
|
|
|
112 |
|
|
// EOF devs_eth_i386_pc_i82544.inl
|