android_kernel_xiaomi_sm8350/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
math-emu
mm [POWERPC] Use 1TB segments 2007-10-12 14:05:17 +10:00
oprofile
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
.gitignore
Kconfig [POWERPC] Adjust TASK_SIZE on ppc32 systems to 3GB that are capable 2007-10-11 13:40:21 -05:00
Kconfig.debug
Makefile