freebsd-nq/sys/powerpc/include
Justin Hibbits 0f7aeab0e7 Implement pmap_change_attr() for PowerPC (Book-E only for now)
Summary:
Some drivers need special memory requirements.  X86 solves this with a
pmap_change_attr() API, which DRM uses for changing the mapping of the GART and
other memory regions.  Implement the same function for PowerPC.  AIM currently
does not need this, but will in the future for DRM, so a default is added for
that, for business as usual.  Book-E has some drivers coming down that do
require non-default memory coherency.  In this case, the Datapath Acceleration
Architecture (DPAA) based ethernet controller has 2 regions for the buffer
portals: cache-inhibited, and cache-enabled.  By default, device memory is
cache-inhibited.  If the cache-enabled memory regions are mapped
cache-inhibited, an alignment exception is thrown on access.

Test Plan:
Tested with a new driver to be added after this (DPAA dTSEC ethernet driver).
No alignment exceptions thrown, driver works as expected with this.

Reviewed By:	nwhitehorn
Sponsored by:	Alex Perez/Inertial Computing
Differential Revision: https://reviews.freebsd.org/D5471
2016-02-27 20:39:36 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Follow up to r287014 2015-08-22 07:27:06 +00:00
altivec.h Dump VMX registers into the userland coredump. 2015-01-03 21:06:06 +00:00
asm.h Provide support for ELFv2 userland if using a newer compiler (recent clang 2015-12-03 00:10:57 +00:00
atomic.h On PowerPC 64bit, the linux-compat mb() definition is implemented with 2015-11-24 09:13:21 +00:00
bat.h
bus_dma.h
bus.h Revert r291009 until rman changes go in. 2015-11-19 04:41:16 +00:00
clock.h
counter.h
cpu.h Bring CPU features list in line with the ABI requirements. 2016-01-02 18:15:10 +00:00
cpufunc.h
db_machdep.h Truncate DB_SMALL_VALUE_MAX to a much lower value. 2015-01-04 01:45:26 +00:00
dbdma.h
dump.h Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
elf.h
endian.h
exec.h
float.h Rationalize BSD license on sys/*/include/float.h 2015-08-05 17:05:35 +00:00
floatingpoint.h
fpu.h
frame.h The AIM DAR (data access fault address register) and Book-E DEAR registers 2015-03-04 21:06:57 +00:00
gdb_machdep.h
hid.h
ieee.h
ieeefp.h
in_cksum.h Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
intr_machdep.h Bump the maximum number of interrupt controllers to allow for the 2016-01-02 19:34:37 +00:00
kdb.h
limits.h
machdep.h
md_var.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h Implement OF_decode_addr() for arm. Move most of powerpc's implementation 2015-12-21 18:07:32 +00:00
openpicreg.h
openpicvar.h
param.h Extend Book-E to support >4GB RAM 2015-12-24 04:30:15 +00:00
pcb.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
pcpu.h Add two new pmap functions: 2015-08-04 19:46:13 +00:00
pio.h
platform.h Extend idle support for newer Book-E cores. 2016-01-01 02:47:40 +00:00
platformvar.h
pmap.h Implement pmap_change_attr() for PowerPC (Book-E only for now) 2016-02-27 20:39:36 +00:00
pmc_mdep.h Implement hwpmc(4) for Freescale e500 core. 2015-04-18 21:39:17 +00:00
proc.h
profile.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
psl.h Kernel support for the Vector-Scalar eXtension (VSX) found on the POWER7 2015-02-22 21:40:27 +00:00
pte.h Fix a panic bug that cropped up in the PTE rewrite. 2016-02-16 02:13:55 +00:00
ptrace.h Add Altivec/VMX register support to ptrace. 2015-01-14 07:01:21 +00:00
reg.h Restore the ABI of 'struct fpreg' on powerpc. 2016-02-01 23:12:04 +00:00
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
sigframe.h
signal.h
slb.h Deallocate any leftover page table entries in the LPAR at boot. This 2015-03-13 00:08:58 +00:00
smp.h
spr.h Print machine check address for Book-E. 2015-11-30 02:40:41 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Implement pmap_change_attr() for PowerPC (Book-E only for now) 2016-02-27 20:39:36 +00:00
trap.h Add more interrupts handled for booke. 2015-12-11 01:23:18 +00:00
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
varargs.h
vdso.h
vm.h
vmparam.h Partially revert r294055. 2016-01-16 21:24:12 +00:00