linux/drivers/net/ibm_newemac
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
..
core.c ibm_newemac annotations (iomem, NULL noise) 2007-10-14 12:41:52 -07:00
core.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
debug.c Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
debug.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
emac.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
Kconfig Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
Makefile Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
mal.c Update ibm_newemac to use dcr_host_t.base 2007-10-15 14:29:49 -04:00
mal.h Add dcr_host_t.base in dcr_read()/dcr_write() 2007-10-15 14:29:49 -04:00
phy.c Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
phy.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
rgmii.c ibm_newemac annotations (iomem, NULL noise) 2007-10-14 12:41:52 -07:00
rgmii.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
tah.c ibm_newemac annotations (iomem, NULL noise) 2007-10-14 12:41:52 -07:00
tah.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00
zmii.c ibm_newemac annotations (iomem, NULL noise) 2007-10-14 12:41:52 -07:00
zmii.h Device tree aware EMAC driver 2007-10-10 16:51:52 -07:00