HAOUAS Elyes (ehaouas@noos.fr) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6489
-gerrit
commit b97d16dce37b9090f84117ad4be122bcd00b99c5 Author: Elyes HAOUAS ehaouas@noos.fr Date: Mon Aug 4 09:19:27 2014 +0200
mainboards: Add missing header guards
Change-Id: If93f5663fce9cc9b1675badcbf9f88525d875e76 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- src/mainboard/google/link/i915io.h | 5 +++++ src/mainboard/intel/eagleheights/ioapic.h | 5 +++++ src/mainboard/intel/xe7501devkit/ioapic.h | 5 +++++ src/mainboard/lenovo/x60/i915io.h | 5 +++++ src/mainboard/technexion/tim5690/speaker.h | 5 +++++ src/mainboard/technexion/tim5690/tn_post_code.h | 6 +++++- src/mainboard/technexion/tim5690/vgabios.h | 5 +++++ 7 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/src/mainboard/google/link/i915io.h b/src/mainboard/google/link/i915io.h index 6533c81..533bf14 100644 --- a/src/mainboard/google/link/i915io.h +++ b/src/mainboard/google/link/i915io.h @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef MAINBOARD_GOOGLE_LINK_I915IO_H +#define MAINBOARD_GOOGLE_LINK_I915IO_H + #include "i915_reg.h" #include "drm_dp_helper.h"
@@ -84,3 +87,5 @@ u32 pack_aux(u32 *src, int src_bytes); void unpack_aux(u32 src, u32 *dst, int dst_bytes); int intel_dp_aux_ch(u32 ch_ctl, u32 ch_data, u32 *send, int send_bytes, u32 *recv, int recv_size); + +#endif /* MAINBOARD_GOOGLE_LINK_I915IO_H */ diff --git a/src/mainboard/intel/eagleheights/ioapic.h b/src/mainboard/intel/eagleheights/ioapic.h index 4ac7d62..c0d173d 100644 --- a/src/mainboard/intel/eagleheights/ioapic.h +++ b/src/mainboard/intel/eagleheights/ioapic.h @@ -1,2 +1,7 @@ +#ifndef MAINBOARD_INTEL_EAGLEHEIGHTS_IOAPIC_H +#define MAINBOARD_INTEL_EAGLEHEIGHTS_IOAPIC_H + #define IOAPIC_I3100 2 #define INTEL_IOAPIC_NUM_INTERRUPTS 24 + +#endif /* MAINBOARD_INTEL_EAGLEHEIGHTS_IOAPIC_H */ diff --git a/src/mainboard/intel/xe7501devkit/ioapic.h b/src/mainboard/intel/xe7501devkit/ioapic.h index 9ac2aee..9cdd4a7 100644 --- a/src/mainboard/intel/xe7501devkit/ioapic.h +++ b/src/mainboard/intel/xe7501devkit/ioapic.h @@ -1,3 +1,6 @@ +#ifndef MAINBOARD_INTEL_XE7501DEVKIT_IOAPIC_H +#define MAINBOARD_INTEL_XE7501DEVKIT_IOAPIC_H + // IOAPIC addresses determined by coreboot enumeration. // Someday add functions to get APIC IDs and versions from the chips themselves.
@@ -9,3 +12,5 @@
#define P64H2_IOAPIC_VERSION 0x20 #define INTEL_IOAPIC_NUM_INTERRUPTS 24 // Both ICH-3 and P64-H2 + +#endif /* MAINBOARD_INTEL_XE7501DEVKIT_IOAPIC_H */ diff --git a/src/mainboard/lenovo/x60/i915io.h b/src/mainboard/lenovo/x60/i915io.h index 8f37d9b..9ad4fb1 100644 --- a/src/mainboard/lenovo/x60/i915io.h +++ b/src/mainboard/lenovo/x60/i915io.h @@ -17,6 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef MAINBOARD_LENOVO_X60_I915IO_H +#define MAINBOARD_LENOVO_X60_I915IO_H + #include "i915_reg.h" #include "drm_dp_helper.h"
@@ -84,3 +87,5 @@ u32 pack_aux(u32 *src, int src_bytes); void unpack_aux(u32 src, u32 *dst, int dst_bytes); int intel_dp_aux_ch(u32 ch_ctl, u32 ch_data, u32 *send, int send_bytes, u32 *recv, int recv_size); + +#endif /* MAINBOARD_LENOVO_X60_I915IO_H */ diff --git a/src/mainboard/technexion/tim5690/speaker.h b/src/mainboard/technexion/tim5690/speaker.h index e4a5fd0..6bee5f5 100644 --- a/src/mainboard/technexion/tim5690/speaker.h +++ b/src/mainboard/technexion/tim5690/speaker.h @@ -18,8 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef MAINBOARD_TECHNEXION_TIM5690_SPEAKER_H +#define MAINBOARD_TECHNEXION_TIM5690_SPEAKER_H + void speaker_init(uint8_t time); void speaker_on_nodelay(void); void speaker_off_nodelay(void); void speaker_on_delay(void); void speaker_off_delay(void); + +#endif /* MAINBOARD_TECHNEXION_TIM5690_SPEAKER_H */ diff --git a/src/mainboard/technexion/tim5690/tn_post_code.h b/src/mainboard/technexion/tim5690/tn_post_code.h index 46d7382..a6ae304 100644 --- a/src/mainboard/technexion/tim5690/tn_post_code.h +++ b/src/mainboard/technexion/tim5690/tn_post_code.h @@ -18,11 +18,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef MAINBOARD_TECHNEXION_TIM5690_TN_POST_CODE_H +#define MAINBOARD_TECHNEXION_TIM5690_TN_POST_CODE_H + #define LED_MESSAGE_START 0xFF #define LED_MESSAGE_FINISH 0x99 #define LED_MESSAGE_RAM 0x01
- #ifdef __PRE_RAM__
// TechNexion's Post Code Initially. @@ -31,3 +33,5 @@ void technexion_post_code_init(void); #endif
void technexion_post_code(uint8_t udata8); + +#endif /* MAINBOARD_TECHNEXION_TIM5690_TN_POST_CODE_H */ diff --git a/src/mainboard/technexion/tim5690/vgabios.h b/src/mainboard/technexion/tim5690/vgabios.h index a353011..55b5b46 100644 --- a/src/mainboard/technexion/tim5690/vgabios.h +++ b/src/mainboard/technexion/tim5690/vgabios.h @@ -19,6 +19,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
+#ifndef MAINBOARD_TECHNEXION_TIM5690_VGABIOS_H +#define MAINBOARD_TECHNEXION_TIM5690_VGABIOS_H + /* AMD Chipset */ #define AMD_RS690_INT15 0x4E08
@@ -35,3 +38,5 @@ typedef struct __rs690_vbios_regs__
/* Initialization VBIOS function */ extern void vgabios_init(rs690_vbios_regs *vbios_regs); + +#endif /* MAINBOARD_TECHNEXION_TIM5690_VGABIOS_H */