1 |
786 |
skrzyp |
#==========================================================================
|
2 |
|
|
#
|
3 |
|
|
# a2fxxx_eth.cdl
|
4 |
|
|
#
|
5 |
|
|
# Ethernet drivers for Actel AF2xxx Controller
|
6 |
|
|
#
|
7 |
|
|
#==========================================================================
|
8 |
|
|
## ####ECOSGPLCOPYRIGHTBEGIN####
|
9 |
|
|
## -------------------------------------------
|
10 |
|
|
## This file is part of eCos, the Embedded Configurable Operating System.
|
11 |
|
|
## Copyright (C) 2011 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): ccoutand
|
43 |
|
|
# Contributors:
|
44 |
|
|
# Date: 2011-05-04
|
45 |
|
|
# Purpose:
|
46 |
|
|
# Description:
|
47 |
|
|
#
|
48 |
|
|
#####DESCRIPTIONEND####
|
49 |
|
|
#
|
50 |
|
|
#========================================================================*/
|
51 |
|
|
|
52 |
|
|
cdl_package CYGPKG_DEVS_ETH_CORTEXM_A2FXXX {
|
53 |
|
|
display "Actel Smartfusion Ethernet driver"
|
54 |
|
|
parent CYGPKG_IO_ETH_DRIVERS
|
55 |
|
|
active_if CYGPKG_IO_ETH_DRIVERS
|
56 |
|
|
active_if CYGPKG_HAL_CORTEXM_A2FXXX
|
57 |
|
|
|
58 |
|
|
implements CYGHWR_NET_DRIVERS
|
59 |
|
|
implements CYGHWR_NET_DRIVER_ETH0
|
60 |
|
|
|
61 |
|
|
include_dir net
|
62 |
|
|
description "
|
63 |
|
|
Ethernet drivers for Actel AF2xxx Controller."
|
64 |
|
|
|
65 |
|
|
compile -library=libextras.a if_a2fxxx.c
|
66 |
|
|
|
67 |
|
|
cdl_option CYGSEM_DEVS_ETH_CORTEXM_A2FXXX_PROMISCUOUS {
|
68 |
|
|
display "Promiscuous Mode"
|
69 |
|
|
flavor bool
|
70 |
|
|
default_value 0
|
71 |
|
|
description "
|
72 |
|
|
Selecting this option will set the Ethernet MAC in promiscuous mode, all Ethernet
|
73 |
|
|
packets will be delivered to the application layer."
|
74 |
|
|
}
|
75 |
|
|
|
76 |
|
|
cdl_option CYGSEM_DEVS_ETH_CORTEXM_A2FXXX_CHATTER {
|
77 |
|
|
display "Display status messages during Ethernet operations"
|
78 |
|
|
flavor bool
|
79 |
|
|
default_value 0
|
80 |
|
|
description "
|
81 |
|
|
Selecting this option will cause the Ethernet driver to print status
|
82 |
|
|
messages as various Ethernet operations are undertaken."
|
83 |
|
|
}
|
84 |
|
|
|
85 |
|
|
cdl_option CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_ISR_PRIORITY {
|
86 |
|
|
display "Ethernet interrupt ISR priority"
|
87 |
|
|
flavor data
|
88 |
|
|
default_value CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_ISR_SP
|
89 |
|
|
description "
|
90 |
|
|
Set the Ethernet controller ISR priority."
|
91 |
|
|
}
|
92 |
|
|
|
93 |
|
|
cdl_option CYGSEM_DEVS_ETH_CORTEXM_A2FXXX_STATS {
|
94 |
|
|
display "Maintain statistics at the MAC layer"
|
95 |
|
|
flavor bool
|
96 |
|
|
default_value 0
|
97 |
|
|
description "
|
98 |
|
|
Selecting this option will cause the Ethernet driver to accumulate statistics
|
99 |
|
|
provided from the MAC layer."
|
100 |
|
|
}
|
101 |
|
|
|
102 |
|
|
cdl_option CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_BUFSIZE_TX {
|
103 |
|
|
display "Buffer size"
|
104 |
|
|
flavor data
|
105 |
|
|
default_value 1536
|
106 |
|
|
description "
|
107 |
|
|
This option specifies the size of the internal transmit buffers used
|
108 |
|
|
for the Actel A2Fxxx/Ethernet device."
|
109 |
|
|
}
|
110 |
|
|
|
111 |
|
|
cdl_option CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_BUFSIZE_RX {
|
112 |
|
|
display "Buffer size"
|
113 |
|
|
flavor data
|
114 |
|
|
default_value 1536
|
115 |
|
|
description "
|
116 |
|
|
This option specifies the size of the internal receive buffers used
|
117 |
|
|
for the Actel A2Fxxx/Ethernet device."
|
118 |
|
|
}
|
119 |
|
|
|
120 |
|
|
cdl_option CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_TxNUM {
|
121 |
|
|
display "Number of output buffers"
|
122 |
|
|
flavor data
|
123 |
|
|
legal_values 2 to 8
|
124 |
|
|
default_value 4
|
125 |
|
|
description "
|
126 |
|
|
This option specifies the number of output buffer packets
|
127 |
|
|
to be used for the Actel A2Fxxx/Ethernet device."
|
128 |
|
|
}
|
129 |
|
|
|
130 |
|
|
cdl_option CYGNUM_DEVS_ETH_CORTEXM_A2FXXX_RxNUM {
|
131 |
|
|
display "Number of input buffers"
|
132 |
|
|
flavor data
|
133 |
|
|
legal_values 2 to 8
|
134 |
|
|
default_value 4
|
135 |
|
|
description "
|
136 |
|
|
This option specifies the number of input buffer packets
|
137 |
|
|
to be used for the Actel A2Fxxx/Ethernet device."
|
138 |
|
|
}
|
139 |
|
|
|
140 |
|
|
cdl_option CYGPKG_DEVS_ETH_CORTEXM_A2FXXX_CFLAGS_ADD {
|
141 |
|
|
display "Additional compiler flags"
|
142 |
|
|
flavor data
|
143 |
|
|
no_define
|
144 |
|
|
default_value { "-D_KERNEL -D__ECOS" }
|
145 |
|
|
description "
|
146 |
|
|
This option modifies the set of compiler flags for
|
147 |
|
|
building the Actel A2Fxxx Ethernet driver package.
|
148 |
|
|
These flags are used in addition to the set of global flags."
|
149 |
|
|
}
|
150 |
|
|
}
|
151 |
|
|
|
152 |
|
|
# EOF a2fxxx_eth.cdl
|