mirror of https://github.com/ipxe/ipxe.git
[ioapi] Move PAGE_SHIFT to bits/io.h
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>pull/888/head
parent
c6901792f0
commit
ef0a6f4792
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
|
|
||||||
|
/** Page shift */
|
||||||
|
#define PAGE_SHIFT 12
|
||||||
|
|
||||||
#include <ipxe/arm_io.h>
|
#include <ipxe/arm_io.h>
|
||||||
|
|
||||||
#endif /* _BITS_IO_H */
|
#endif /* _BITS_IO_H */
|
||||||
|
|
|
@ -20,9 +20,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Page shift */
|
|
||||||
#define PAGE_SHIFT 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Physical<->Bus address mappings
|
* Physical<->Bus address mappings
|
||||||
*
|
*
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
|
|
||||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
|
|
||||||
|
/** Page shift */
|
||||||
|
#define PAGE_SHIFT 12
|
||||||
|
|
||||||
#include <ipxe/x86_io.h>
|
#include <ipxe/x86_io.h>
|
||||||
|
|
||||||
#endif /* _BITS_IO_H */
|
#endif /* _BITS_IO_H */
|
||||||
|
|
|
@ -28,9 +28,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Page shift */
|
|
||||||
#define PAGE_SHIFT 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Physical<->Bus address mappings
|
* Physical<->Bus address mappings
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue