android_kernel_xiaomi_sm8350/arch/powerpc/sysdev
Timur Tabi 4c35630ccd [POWERPC] Change rheap functions to use ulongs instead of pointers
The rheap allocation functions return a pointer, but the actual value is based
on how the heap was initialized, and so it can be anything, e.g. an offset
into a buffer.  A ulong is a better representation of the value returned by
the allocation functions.

This patch changes all of the relevant rheap functions to use a unsigned long
integers instead of a pointer.  In case of an error, the value returned is
a negative error code that has been cast to an unsigned long.  The caller can
use the IS_ERR_VALUE() macro to check for this.

All code which calls the rheap functions is updated accordingly.  Macros
IS_MURAM_ERR() and IS_DPERR(), have been deleted in favor of IS_ERR_VALUE().

Also added error checking to rh_attach_region().

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2007-05-09 23:01:43 -05:00
..
qe_lib [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
commproc.c [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
cpm2_common.c [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
cpm2_pic.c [POWERPC] cpm2: CPM2 interrupt controller fix 2007-02-07 14:03:20 +11:00
cpm2_pic.h [POWERPC] cpm2: CPM2 interrupt controller fix 2007-02-07 14:03:20 +11:00
dart_iommu.c [POWERPC] DART iommu suspend 2007-05-07 20:31:14 +10:00
dart.h
dcr-low.S
dcr.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00
fsl_pcie.c [POWERPC] 86xx/85xx: Move 8641 PCI-Express to arch/powerpc/sysdev/fsl_pcie.c. 2007-03-26 17:03:25 -05:00
fsl_pcie.h [POWERPC] 86xx/85xx: Unify Freescale PCI Express memory map registers structure 2007-03-26 17:03:49 -05:00
fsl_soc.c [POWERPC] fsl_soc: Make mac_addr const in fs_enet_of_init(). 2007-05-09 16:35:00 +10:00
fsl_soc.h
grackle.c [POWERPC] Assign all PCI busses on G3 Blue & White 2007-02-07 14:03:22 +11:00
i8259.c
indirect_pci.c
ipic.c [POWERPC] 83xx: Return a point to the struct ipic from ipic_init() 2007-01-26 01:45:32 -06:00
ipic.h
Makefile [POWERPC] Abolish powerpc_flash_init() 2007-05-08 15:09:26 +10:00
micropatch.c [POWERPC] 8xx: powerpc port of core CPM PIC 2007-02-07 14:03:17 +11:00
mmio_nvram.c [POWERPC] Fix cell's mmio nvram to properly parse device tree 2007-01-22 21:27:35 +11:00
mpc8xx_pic.c [POWERPC] 8xx: powerpc port of core CPM PIC 2007-02-07 14:03:17 +11:00
mpc8xx_pic.h [POWERPC] 8xx: powerpc port of core CPM PIC 2007-02-07 14:03:17 +11:00
mpic_msi.c [POWERPC] MPIC MSI allocator 2007-05-08 13:43:48 +10:00
mpic_u3msi.c [POWERPC] MPIC U3/U4 MSI backend 2007-05-08 13:46:48 +10:00
mpic.c [POWERPC] MPIC U3/U4 MSI backend 2007-05-08 13:46:48 +10:00
mpic.h [POWERPC] MPIC U3/U4 MSI backend 2007-05-08 13:46:48 +10:00
pmi.c [POWERPC] add of_iomap function 2007-04-23 21:44:40 +02:00
timer.c [POWERPC] arch/powerpc/sysdev/timer.c build fix 2007-04-30 11:02:05 +10:00
tsi108_dev.c [POWERPC] Generalize tsi108 PHY types 2007-05-08 11:54:20 +10:00
tsi108_pci.c [POWERPC] Generalize tsi108 PCI setup 2007-05-08 11:54:20 +10:00
uic.c [POWERPC] Rename device_is_compatible to of_device_is_compatible 2007-05-07 20:31:14 +10:00