android_kernel_xiaomi_sm8350/drivers/net/ibm_newemac
Josh Boyer ec4f9945b5 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>
2008-09-30 09:23:04 -04:00
..
core.c ibm_newemac: Allow the "no flow control" EMAC feature to work 2008-09-30 09:22:45 -04:00
core.h ibm_newemac: Allow the "no flow control" EMAC feature to work 2008-09-30 09:22:45 -04:00
debug.c ibm_newemac: Parameterize EMAC Multicast Match Handling 2008-07-09 16:30:46 +10:00
debug.h
emac.h ibm_newemac: Parameterize EMAC Multicast Match Handling 2008-07-09 16:30:46 +10:00
Kconfig ibm_newemac: Introduce mal_has_feature 2008-09-30 09:23:04 -04:00
Makefile
mal.c
mal.h ibm_newemac: Introduce mal_has_feature 2008-09-30 09:23:04 -04:00
phy.c
phy.h
rgmii.c ibm_newemac: Add MII mode support to the EMAC RGMII bridge. 2008-07-15 12:39:05 +10:00
rgmii.h
tah.c
tah.h
zmii.c
zmii.h