The PAGE_SHIFT definition is an architectural property, rather than an
aspect of a particular I/O API implementation (of which, in theory,
there may be more than one per architecture).
Reflect this by moving the definition to the top-level bits/io.h for
each architecture.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+/** Page shift */
+#define PAGE_SHIFT 12
+
#include <ipxe/arm_io.h>
#endif /* _BITS_IO_H */
*
*/
-/** Page shift */
-#define PAGE_SHIFT 12
-
/*
* Physical<->Bus address mappings
*
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+/** Page shift */
+#define PAGE_SHIFT 12
+
#include <ipxe/x86_io.h>
#endif /* _BITS_IO_H */
*
*/
-/** Page shift */
-#define PAGE_SHIFT 12
-
/*
* Physical<->Bus address mappings
*