summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-07-23 21:09:41 -0600
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-08-01 23:05:39 +0000
commit54cb493f9702314058da0fea51b570e76ddc8617 (patch)
tree2e0b91791a5094bc1ca45f65772baf38232f1368 /src/device
parent1cd303a6fc914e797e8f4924f30dd964cb57ba94 (diff)
downloadcoreboot-54cb493f9702314058da0fea51b570e76ddc8617.tar.xz
src/device: Add guards on all header files
Change-Id: I8641f32ed2221f1d6e6dac884912251f64424f4d Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20737 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/device')
-rw-r--r--src/device/oprom/include/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device/oprom/include/io.h b/src/device/oprom/include/io.h
index fc11640f72..3a723bd056 100644
--- a/src/device/oprom/include/io.h
+++ b/src/device/oprom/include/io.h
@@ -11,6 +11,9 @@
* GNU General Public License for more details.
*/
+#ifndef __OPROM_IO_H__
+#define __OPROM_IO_H__
+
#if IS_ENABLED(CONFIG_ARCH_X86)
#include <arch/io.h>
#else
@@ -22,3 +25,4 @@ u8 inb(u16 port);
u16 inw(u16 port);
u32 inl(u16 port);
#endif
+#endif /* __OPROM_IO_H__ */