2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/net/ibm_emac
Michael Ellerman 83f34df4e7 Add dcr_host_t.base in dcr_read()/dcr_write()
Now that all users of dcr_read()/dcr_write() add the dcr_host_t.base, we
can save them the trouble and do it in dcr_read()/dcr_write().

As some background to why we just went through all this jiggery-pokery,
benh sayeth:

 Initially the goal of the dcr_read/dcr_write routines was to operate like
 mfdcr/mtdcr which take absolute DCR numbers. The reason is that on 4xx
 hardware, indirect DCR access is a pain (goes through a table of
 instructions) and it's useful to have the compiler resolve an absolute DCR
 inline.

 We decided that wasn't worth the API bastardisation since most places
 where absolute DCR values are used are low level 4xx-only code which may
 as well continue using mfdcr/mtdcr, while the new API is designed for
 device "instances" that can exist on 4xx and Axon type platforms and may
 be located at variable DCR offsets.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-10-15 14:29:49 -04:00
..
ibm_emac_core.c [netdrvr] Stop using legacy hooks ->self_test_count, ->get_stats_count 2007-10-10 16:51:45 -07:00
ibm_emac_core.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
ibm_emac_debug.c drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE 2007-10-10 16:51:15 -07:00
ibm_emac_debug.h fix file specification in comments 2006-10-03 23:01:26 +02:00
ibm_emac_mal.c Use dcr_host_t.base in ibm_emac_mal 2007-10-15 14:29:49 -04:00
ibm_emac_mal.h Add dcr_host_t.base in dcr_read()/dcr_write() 2007-10-15 14:29:49 -04:00
ibm_emac_phy.c ibm_emac: improved PHY support 2007-05-17 20:43:14 -04:00
ibm_emac_phy.h [PATCH] New PowerPC 4xx on-chip ethernet controller driver 2005-10-28 16:42:01 -04:00
ibm_emac_rgmii.c ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac_rgmii.h ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac_tah.c ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac_tah.h ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac_zmii.c ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac_zmii.h ibm_emac: fix section mismatch warnings 2007-05-17 20:43:14 -04:00
ibm_emac.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
Kconfig Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
Makefile [PATCH] New PowerPC 4xx on-chip ethernet controller driver 2005-10-28 16:42:01 -04:00