ec_commands: Fix portability issues
Recent changes broke the portability of this header file.
Fix the ACPI guards so it can be used in coreboot.
BRANCH=none
TEST=make -j buildall (as usual many haven boards fail)
#ifndef __CROS_EC_EC_COMMANDS_H
#define __CROS_EC_EC_COMMANDS_H
+#ifndef __ACPI__
#include <stdint.h>
+#endif
/*
* Include common.h for CONFIG_HOSTCMD_ALIGNED, if it's defined. This
@@ -4178,8 +4180,6 @@ struct __ec_align4 ec_params_rwsig_action {
uint32_t action;
};
-#endif /* !__ACPI__ */
-
/*****************************************************************************/
/* The command range 0x200-0x2FF is reserved for Rotor. */
@@ -4369,4 +4369,6 @@ struct __ec_align4 ec_params_tp_frame_get {
#define EC_LPC_ADDR_OLD_PARAM EC_HOST_CMD_REGION1
#define EC_OLD_PARAM_SIZE EC_HOST_CMD_REGION_SIZE
+#endif /* !__ACPI__ */
+
#endif /* __CROS_EC_EC_COMMANDS_H */
