diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2008-09-04 00:03:45 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2008-09-30 09:23:04 -0400 |
commit | ec4f9945b5b3e9e491a04eb1efe1c959371fa6de (patch) | |
tree | af711173c68d0939ba85e581c63f83a4599f02ce /drivers/net/ibm_newemac/Kconfig | |
parent | b68d185ab12b1fc8000432c5d5ab5404d4788b4c (diff) |
ibm_newemac: Introduce mal_has_feature
There are some PowerPC SoCs that do odd things with the MAL handling. In
order to accommodate them, we need to introduce a feature mechanism that is
similar to the existing emac_has_feature function.
This adds a feature variable to the mal_instance structure, and adds a
mal_has_feature function. Two features are defined and are guarded
by Kconfig options that are selected by the affected platforms.
MAL_FTR_CLEAR_ICINSTAT is used for platforms that need to clear the
interrupt bits in the ICINTSTAT SDR for txeob/rxeob. This is common
on MAL implementations that have interrupt coalescing.
MAL_FTR_COMMON_ERR_INT is used for platforms that have SERR, TXDE,
and RXDE OR'd into a single interrupt bit.
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/net/ibm_newemac/Kconfig')
-rw-r--r-- | drivers/net/ibm_newemac/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ibm_newemac/Kconfig b/drivers/net/ibm_newemac/Kconfig index dfb6547c37cb..44e5a0e9922a 100644 --- a/drivers/net/ibm_newemac/Kconfig +++ b/drivers/net/ibm_newemac/Kconfig | |||
@@ -66,3 +66,11 @@ config IBM_NEW_EMAC_EMAC4 | |||
66 | config IBM_NEW_EMAC_NO_FLOW_CTRL | 66 | config IBM_NEW_EMAC_NO_FLOW_CTRL |
67 | bool | 67 | bool |
68 | default n | 68 | default n |
69 | |||
70 | config IBM_NEW_EMAC_MAL_CLR_ICINTSTAT | ||
71 | bool | ||
72 | default n | ||
73 | |||
74 | config IBM_NEW_EMAC_MAL_COMMON_ERR | ||
75 | bool | ||
76 | default n | ||