]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/fsp/fsp_api.h
x86: acpi: Use u32 in table write routines
[u-boot] / arch / x86 / include / asm / fsp / fsp_api.h
index a9d7156109236eb79f13cf3599c0c1d4d9046263..afafb30c147feb4c63831b4faf1591cb92cf753c 100644 (file)
@@ -8,6 +8,18 @@
 #ifndef __FSP_API_H__
 #define __FSP_API_H__
 
+#include <linux/linkage.h>
+
+/*
+ * FSP common configuration structure.
+ * This needs to be included in the platform-specific struct fsp_config_data.
+ */
+struct fsp_cfg_common {
+       struct fsp_header       *fsp_hdr;
+       u32                     stack_top;
+       u32                     boot_mode;
+};
+
 /*
  * FspInit continuation function prototype.
  * Control will be returned to this callback function after FspInit API call.
@@ -28,7 +40,7 @@ struct common_buf {
         * Stack top pointer used by the bootloader. The new stack frame will be
         * set up at this location after FspInit API call.
         */
-       u32     *stack_top;
+       u32     stack_top;
        u32     boot_mode;      /* Current system boot mode */
        void    *upd_data;      /* User platform configuraiton data region */
        u32     reserved[7];    /* Reserved */
@@ -47,9 +59,9 @@ struct fsp_notify_params {
 };
 
 /* FspInit API function prototype */
-typedef u32 (*fsp_init_f)(struct fsp_init_params *params);
+typedef asmlinkage u32 (*fsp_init_f)(struct fsp_init_params *params);
 
 /* FspNotify API function prototype */
-typedef u32 (*fsp_notify_f)(struct fsp_notify_params *params);
+typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params);
 
 #endif