arch/io.h: Separate MMIO and PNP ops
Change-Id: Ie32f1d43168c277be46cdbd7fbfa2445d9899689 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31699 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
* 12-Dec-1999 RMK More cleanups
|
||||
* 18-Jun-2000 RMK Removed virt_to_* and friends definitions
|
||||
*/
|
||||
#ifndef __ARCH_IO_H
|
||||
#define __ARCH_IO_H
|
||||
|
||||
#ifndef __ARCH_MMIO_H__
|
||||
#define __ARCH_MMIO_H__
|
||||
|
||||
#include <endian.h>
|
||||
#include <stdint.h>
|
||||
@@ -61,4 +62,4 @@ static inline void write32(void *addr, uint32_t val)
|
||||
*(volatile uint32_t *)addr = val;
|
||||
}
|
||||
|
||||
#endif /* __ARCH_IO_H */
|
||||
#endif /* __ARCH_MMIO_H__ */
|
@@ -25,8 +25,9 @@
|
||||
* 12-Dec-1999 RMK More cleanups
|
||||
* 18-Jun-2000 RMK Removed virt_to_* and friends definitions
|
||||
*/
|
||||
#ifndef __ARCH_IO_H
|
||||
#define __ARCH_IO_H
|
||||
|
||||
#ifndef __ARCH_MMIO_H__
|
||||
#define __ARCH_MMIO_H__
|
||||
|
||||
#include <arch/cache.h> /* for dmb() */
|
||||
#include <endian.h>
|
||||
@@ -71,4 +72,4 @@ static inline void write32(void *addr, uint32_t val)
|
||||
dmb();
|
||||
}
|
||||
|
||||
#endif /* __ARCH_IO_H */
|
||||
#endif /* __ARCH_MMIO_H__ */
|
Reference in New Issue
Block a user