2017-08-23 09:51:31 +00:00
|
|
|
menu Ethernet
|
2016-11-08 09:45:17 +00:00
|
|
|
|
|
|
|
config DMA_RX_BUF_NUM
|
2017-01-18 16:32:10 +00:00
|
|
|
int "Number of DMA RX buffers"
|
2017-01-19 08:45:30 +00:00
|
|
|
range 3 20
|
2017-01-18 16:32:10 +00:00
|
|
|
default 10
|
2016-11-08 09:45:17 +00:00
|
|
|
help
|
2017-01-18 16:32:10 +00:00
|
|
|
Number of DMA receive buffers. Each buffer is 1600 bytes.
|
|
|
|
Buffers are allocated statically.
|
|
|
|
Larger number of buffers increases throughput.
|
2017-01-19 08:45:30 +00:00
|
|
|
If enable flow ctrl, the num must be above 9 .
|
2016-11-08 09:45:17 +00:00
|
|
|
|
|
|
|
config DMA_TX_BUF_NUM
|
2017-10-12 12:24:02 +00:00
|
|
|
int "Number of DMA TX buffers"
|
2017-01-19 08:45:30 +00:00
|
|
|
range 3 20
|
2016-11-08 09:45:17 +00:00
|
|
|
default 10
|
|
|
|
help
|
2017-01-18 16:32:10 +00:00
|
|
|
Number of DMA transmit buffers. Each buffer is 1600 bytes.
|
|
|
|
Buffers are allocated statically.
|
|
|
|
Larger number of buffers increases throughput.
|
2016-12-18 13:18:37 +00:00
|
|
|
|
|
|
|
config EMAC_L2_TO_L3_RX_BUF_MODE
|
2017-01-18 16:32:10 +00:00
|
|
|
bool "Enable copy between Layer2 and Layer3"
|
2016-12-18 13:18:37 +00:00
|
|
|
default n
|
|
|
|
help
|
2017-01-18 16:32:10 +00:00
|
|
|
If this options is selected, a copy of each received buffer will be created when
|
|
|
|
passing it from the Ethernet MAC (L2) to the IP stack (L3). Otherwise, IP stack
|
|
|
|
will receive pointers to the DMA buffers used by Ethernet MAC.
|
2018-08-22 09:46:14 +00:00
|
|
|
|
2017-01-18 16:32:10 +00:00
|
|
|
When Ethernet MAC doesn't have any unused buffers left, it will drop incomming
|
|
|
|
packets (flow control may help with this problem, to some extent).
|
2018-08-22 09:46:14 +00:00
|
|
|
|
2017-01-18 16:32:10 +00:00
|
|
|
The buffers for the IP stack are allocated from the heap, so the total number of
|
|
|
|
receive buffers is limited by the available heap size, if this option is selected.
|
2018-08-22 09:46:14 +00:00
|
|
|
|
2017-01-18 16:32:10 +00:00
|
|
|
If unsure, choose n.
|
2016-12-18 13:18:37 +00:00
|
|
|
|
2018-08-22 09:46:14 +00:00
|
|
|
config EMAC_CHECK_LINK_PERIOD_MS
|
|
|
|
int "Period(ms) of checking Ethernet linkup status"
|
|
|
|
range 1000 5000
|
|
|
|
default 2000
|
|
|
|
help
|
|
|
|
The emac driver uses an internal timer to check the ethernet linkup
|
|
|
|
status. Here you should choose a valid the interval time.
|
|
|
|
|
2016-12-18 13:18:37 +00:00
|
|
|
config EMAC_TASK_PRIORITY
|
|
|
|
int "EMAC_TASK_PRIORITY"
|
|
|
|
default 20
|
2017-01-18 16:32:10 +00:00
|
|
|
range 3 22
|
2016-12-18 13:18:37 +00:00
|
|
|
help
|
2017-01-18 16:32:10 +00:00
|
|
|
Ethernet MAC task priority.
|
2016-12-18 13:18:37 +00:00
|
|
|
|
2018-09-05 13:43:03 +00:00
|
|
|
config EMAC_TASK_STACK_SIZE
|
|
|
|
int "Stack Size of EMAC Task"
|
|
|
|
default 3072
|
|
|
|
range 2000 8000
|
|
|
|
help
|
|
|
|
Stack Size of Ethernet MAC task.
|
|
|
|
|
2017-08-23 09:51:31 +00:00
|
|
|
endmenu
|