2 * Copyright (C) 2013, Intel Corporation
3 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
5 * SPDX-License-Identifier: Intel
11 #include <linux/linkage.h>
14 * FSP common configuration structure.
15 * This needs to be included in the platform-specific struct fsp_config_data.
17 struct fsp_cfg_common {
18 struct fsp_header *fsp_hdr;
24 * FspInit continuation function prototype.
25 * Control will be returned to this callback function after FspInit API call.
27 typedef void (*fsp_continuation_f)(u32 status, void *hob_list);
29 struct fsp_init_params {
30 /* Non-volatile storage buffer pointer */
32 /* Runtime buffer pointer */
34 /* Continuation function address */
35 fsp_continuation_f continuation;
40 * Stack top pointer used by the bootloader. The new stack frame will be
41 * set up at this location after FspInit API call.
44 u32 boot_mode; /* Current system boot mode */
45 void *upd_data; /* User platform configuraiton data region */
46 u32 reserved[7]; /* Reserved */
50 /* Notification code for post PCI enuermation */
51 INIT_PHASE_PCI = 0x20,
52 /* Notification code before transfering control to the payload */
53 INIT_PHASE_BOOT = 0x40
56 struct fsp_notify_params {
57 /* Notification phase used for NotifyPhase API */
61 /* FspInit API function prototype */
62 typedef asmlinkage u32 (*fsp_init_f)(struct fsp_init_params *params);
64 /* FspNotify API function prototype */
65 typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params);