diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2014-01-05 18:46:58 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2014-01-05 18:46:58 +0000 |
commit | f06ffda24307372cdf9724883f8b78e76ba141cc (patch) | |
tree | 0809eb8a8b9681c317f608796af896a38368fe13 /sys/mips/include | |
parent | 80568041a3ca34da996e70860437a6aa3c45f50b (diff) | |
download | FreeBSD-src-f06ffda24307372cdf9724883f8b78e76ba141cc.zip FreeBSD-src-f06ffda24307372cdf9724883f8b78e76ba141cc.tar.gz |
Retire machine/fdt.h as a header used by MI code, as its function is now
obsolete. This involves the following pieces:
- Remove it entirely on PowerPC, where it is not used by MD code either
- Remove all references to machine/fdt.h in non-architecture-specific code
(aside from uart_cpu_fdt.c, shared by ARM and MIPS, and so is somewhat
non-arch-specific).
- Fix code relying on header pollution from machine/fdt.h includes
- Legacy fdtbus.c (still used on x86 FDT systems) now passes resource
requests to its parent (nexus). This allows x86 FDT devices to allocate
both memory and IO requests and removes the last notionally MI use of
fdtbus_bs_tag.
- On those architectures that retain a machine/fdt.h, unused bits like
FDT_MAP_IRQ and FDT_INTR_MAX have been removed.
Diffstat (limited to 'sys/mips/include')
-rw-r--r-- | sys/mips/include/fdt.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/mips/include/fdt.h b/sys/mips/include/fdt.h index 2f1fda5..72cc485 100644 --- a/sys/mips/include/fdt.h +++ b/sys/mips/include/fdt.h @@ -33,17 +33,6 @@ #define _MACHINE_FDT_H_ #include <machine/bus.h> -#include <machine/intr_machdep.h> - -/* Max interrupt number */ -#if defined(CPU_RMI) || defined(CPU_NLM) -#define FDT_INTR_MAX XLR_MAX_INTR -#else -#define FDT_INTR_MAX (NHARD_IRQS + NSOFT_IRQS) -#endif - -/* Map phandle/intpin pair to global IRQ number */ -#define FDT_MAP_IRQ(node, pin) (pin) /* * Bus space tag. XXX endianess info needs to be derived from the blob. |