freebsd-nq/sys/powerpc
Michal Meloun 95a85c125d Add NetBSD compatible bus_space_peek_N() and bus_space_poke_N() functions.
One problem with the bus_space_read_N() and bus_space_write_N() family of
functions is that they provide no protection against exceptions which can
occur when no physical hardware or device responds to the read or write
cycles. In such a situation, the system typically would panic due to a
kernel-mode bus error. The bus_space_peek_N() and bus_space_poke_N() family
of functions provide a mechanism to handle these exceptions gracefully
without the risk of crashing the system.

Typical example is access to PCI(e) configuration space in bus enumeration
function on badly implemented PCI(e) root complexes (RK3399 or Neoverse
N1 N1SDP and/or access to PCI(e) register when device is in deep sleep state.

This commit adds a real implementation for arm64 only. The remaining
architectures have bus_space_peek()/bus_space_poke() emulated by using
bus_space_read()/bus_space_write() (without exception handling).

MFC after:	1 month
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D25371
2020-09-19 11:06:41 +00:00
..
aim [PowerPC64LE] Set up the powernv partition table correctly. 2020-09-15 20:25:38 +00:00
amigaone powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
booke powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
conf Include TMPFS in all the GENERIC kernel configs 2020-07-24 08:40:04 +00:00
cpufreq powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fpu powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
include Add NetBSD compatible bus_space_peek_N() and bus_space_poke_N() functions. 2020-09-19 11:06:41 +00:00
mambo powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mikrotik powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ofw powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powermac powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
powernv [PowerPC] Fix setting of time in OPAL 2020-09-10 01:49:53 +00:00
powerpc Get rid of sv_errtbl and SV_ABI_ERRNO(). 2020-09-17 11:39:33 +00:00
ps3 powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pseries powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
psim powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00