alpine_cpu_resume.h 692 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Annapurna labs cpu-resume register structure.
  4. *
  5. * Copyright (C) 2015 Annapurna Labs Ltd.
  6. */
  7. #ifndef ALPINE_CPU_RESUME_H_
  8. #define ALPINE_CPU_RESUME_H_
  9. /* Per-cpu regs */
  10. struct al_cpu_resume_regs_per_cpu {
  11. uint32_t flags;
  12. uint32_t resume_addr;
  13. };
  14. /* general regs */
  15. struct al_cpu_resume_regs {
  16. /* Watermark for validating the CPU resume struct */
  17. uint32_t watermark;
  18. uint32_t flags;
  19. struct al_cpu_resume_regs_per_cpu per_cpu[];
  20. };
  21. /* The expected magic number for validating the resume addresses */
  22. #define AL_CPU_RESUME_MAGIC_NUM 0xf0e1d200
  23. #define AL_CPU_RESUME_MAGIC_NUM_MASK 0xffffff00
  24. #endif /* ALPINE_CPU_RESUME_H_ */