kernel-fxtec-pro1x/drivers/net/arm
Figo.zhang 31b73ab3ef NET/KS8695: add support NAPI for Rx
Add support NAPI Rx API for KS8695NET driver.

v2, change the Rx function to NAPI.

in <KS8695X Integrated Multi-port Gateway Solution Register Description
 v1.0>:

Interrupt Enable Register (offset 0xE204)
Bit29 : WAN MAC Receive Interrupt Enable
Bit16 : LAN MAC Receive Interrupt Enable

Interrupt Status Register (Offset 0xF208)
Bit29: WAN MAC Receive Status
Bit16: LAN MAC Receive Status

see arch/arm/mach-ks8695/devices.c:
ks8695_wan_resources[] and ks8695_lan_resources[]
have IORESOURCE_IRQ , it have define the RX irq,
for wan, irq = 29; for lan ,irq = 16.
so we can do this read the interrupt status:

unsigned long mask_bit = 1 << ksp->rx_irq;
status = readl(KS8695_IRQ_VA + KS8695_INTST);

Signed-off-by: Figo.zhang <figo1802@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-10-28 03:55:24 -07:00
..
am79c961a.c net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions 2009-07-05 19:16:04 -07:00
am79c961a.h fix file specification in comments 2006-10-03 23:01:26 +02:00
at91_ether.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2009-07-23 19:03:51 -07:00
at91_ether.h at91_ether: use netstats in net_device structure 2008-07-22 19:45:41 -04:00
ep93xx_eth.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
ether1.c net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions 2009-07-05 19:16:04 -07:00
ether1.h
ether3.c net: use NETDEV_TX_OK instead of 0 in ndo_start_xmit() functions 2009-07-05 19:16:04 -07:00
ether3.h
etherh.c Revert "etherh: Get working again." 2009-02-22 19:54:16 -08:00
ixp4xx_eth.c netdev: drivers should make ethtool_ops const 2009-09-02 01:03:33 -07:00
Kconfig Add mac driver for w90p910 2009-07-20 07:45:05 -07:00
ks8695net.c NET/KS8695: add support NAPI for Rx 2009-10-28 03:55:24 -07:00
ks8695net.h net: Add support for the KS8695 ethernet devices. 2008-12-11 21:00:29 -08:00
Makefile Add mac driver for w90p910 2009-07-20 07:45:05 -07:00
w90p910_ether.c drivers: Kill now superfluous ->last_rx stores 2009-09-02 23:07:36 -07:00