blob: 3f44a30e0615080973f26e256f8a20bc31501cbc [file] [log] [blame]
Jeff Kirsher9aa32832011-05-13 14:29:12 -07001config IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +10002 tristate "IBM EMAC Ethernet support"
Kumar Gala83dad4c2008-09-22 14:52:19 -07003 depends on PPC_DCR
Josh Boyer8b8091f2008-06-17 19:27:55 -04004 select CRC32
David Gibson1d3bb992007-08-23 13:56:01 +10005 help
6 This driver supports the IBM EMAC family of Ethernet controllers
7 typically found on 4xx embedded PowerPC chips, but also on the
8 Axon southbridge for Cell.
9
Jeff Kirsher9aa32832011-05-13 14:29:12 -070010config IBM_EMAC_RXB
David Gibson1d3bb992007-08-23 13:56:01 +100011 int "Number of receive buffers"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070012 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100013 default "128"
14
Jeff Kirsher9aa32832011-05-13 14:29:12 -070015config IBM_EMAC_TXB
David Gibson1d3bb992007-08-23 13:56:01 +100016 int "Number of transmit buffers"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070017 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100018 default "64"
19
Jeff Kirsher9aa32832011-05-13 14:29:12 -070020config IBM_EMAC_POLL_WEIGHT
David Gibson1d3bb992007-08-23 13:56:01 +100021 int "MAL NAPI polling weight"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070022 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100023 default "32"
24
Jeff Kirsher9aa32832011-05-13 14:29:12 -070025config IBM_EMAC_RX_COPY_THRESHOLD
David Gibson1d3bb992007-08-23 13:56:01 +100026 int "RX skb copy threshold (bytes)"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070027 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100028 default "256"
29
Jeff Kirsher9aa32832011-05-13 14:29:12 -070030config IBM_EMAC_RX_SKB_HEADROOM
David Gibson1d3bb992007-08-23 13:56:01 +100031 int "Additional RX skb headroom (bytes)"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070032 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100033 default "0"
34 help
35 Additional receive skb headroom. Note, that driver
36 will always reserve at least 2 bytes to make IP header
37 aligned, so usually there is no need to add any additional
38 headroom.
39
40 If unsure, set to 0.
41
Jeff Kirsher9aa32832011-05-13 14:29:12 -070042config IBM_EMAC_DEBUG
David Gibson1d3bb992007-08-23 13:56:01 +100043 bool "Debugging"
Jeff Kirsher9aa32832011-05-13 14:29:12 -070044 depends on IBM_EMAC
David Gibson1d3bb992007-08-23 13:56:01 +100045 default n
46
47# The options below has to be select'ed by the respective
48# processor types or platforms
49
Jeff Kirsher9aa32832011-05-13 14:29:12 -070050config IBM_EMAC_ZMII
David Gibson1d3bb992007-08-23 13:56:01 +100051 bool
52 default n
53
Jeff Kirsher9aa32832011-05-13 14:29:12 -070054config IBM_EMAC_RGMII
David Gibson1d3bb992007-08-23 13:56:01 +100055 bool
56 default n
57
Jeff Kirsher9aa32832011-05-13 14:29:12 -070058config IBM_EMAC_TAH
David Gibson1d3bb992007-08-23 13:56:01 +100059 bool
60 default n
61
Jeff Kirsher9aa32832011-05-13 14:29:12 -070062config IBM_EMAC_EMAC4
David Gibson1d3bb992007-08-23 13:56:01 +100063 bool
64 default n
Josh Boyerb68d1852008-09-04 02:57:57 +000065
Jeff Kirsher9aa32832011-05-13 14:29:12 -070066config IBM_EMAC_NO_FLOW_CTRL
Josh Boyerb68d1852008-09-04 02:57:57 +000067 bool
68 default n
Josh Boyerec4f9942008-09-04 04:03:45 +000069
Jeff Kirsher9aa32832011-05-13 14:29:12 -070070config IBM_EMAC_MAL_CLR_ICINTSTAT
Josh Boyerec4f9942008-09-04 04:03:45 +000071 bool
72 default n
73
Jeff Kirsher9aa32832011-05-13 14:29:12 -070074config IBM_EMAC_MAL_COMMON_ERR
Josh Boyerec4f9942008-09-04 04:03:45 +000075 bool
76 default n