fsp_api.h 567 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2019 Google LLC
  4. */
  5. #ifndef __ASM_FSP_API_H
  6. #define __ASM_FSP_API_H
  7. #include <linux/linkage.h>
  8. enum fsp_phase {
  9. /* Notification code for post PCI enuermation */
  10. INIT_PHASE_PCI = 0x20,
  11. /* Notification code before transferring control to the payload */
  12. INIT_PHASE_BOOT = 0x40
  13. };
  14. struct fsp_notify_params {
  15. /* Notification phase used for NotifyPhase API */
  16. enum fsp_phase phase;
  17. };
  18. /* FspNotify API function prototype */
  19. typedef asmlinkage u32 (*fsp_notify_f)(struct fsp_notify_params *params);
  20. #endif