android_kernel_xiaomi_sdm845/arch/powerpc
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
..
boot [POWERPC] Add memchr() to the bootwrapper 2007-10-12 14:13:44 +10:00
configs Merge branch 'for-2.6.24' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into for-2.6.24 2007-10-12 09:06:32 +10:00
kernel Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
lib [POWERPC] Limit range of __init_ref_ok somewhat 2007-10-03 11:48:44 +10:00
math-emu [POWERPC] ppc math-emu needs -fno-builtin-fabs for math.c and fabs.c 2006-09-26 15:24:35 +10:00
mm [POWERPC] Use 1TB segments 2007-10-12 14:05:17 +10:00
oprofile [POWERPC] cell: Move cbe_regs.h to include/asm-powerpc/cell-regs.h 2007-10-09 21:01:56 +10:00
platforms Add dcr_host_t.base in dcr_read()/dcr_write() 2007-10-15 14:29:49 -04:00
sysdev Add dcr_host_t.base in dcr_read()/dcr_write() 2007-10-15 14:29:49 -04:00
xmon [POWERPC] fix showing xmon help 2007-07-22 21:30:58 +10:00
.gitignore [POWERPC] Add files build to .gitignore 2006-12-04 20:41:29 +11:00
Kconfig [POWERPC] Adjust TASK_SIZE on ppc32 systems to 3GB that are capable 2007-10-11 13:40:21 -05:00
Kconfig.debug [POWERPC] cpm: Describe multi-user ram in its own device node. 2007-10-04 15:47:05 -05:00
Makefile [POWERPC] Select proper defconfig for crosscompiles 2007-10-03 12:02:44 +10:00