Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / mach-alpine / alpine_cpu_resume.h
blob4b550786f1fd6d8603692b8810b5268f250734c9
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Annapurna labs cpu-resume register structure.
5 * Copyright (C) 2015 Annapurna Labs Ltd.
6 */
8 #ifndef ALPINE_CPU_RESUME_H_
9 #define ALPINE_CPU_RESUME_H_
11 /* Per-cpu regs */
12 struct al_cpu_resume_regs_per_cpu {
13 uint32_t flags;
14 uint32_t resume_addr;
17 /* general regs */
18 struct al_cpu_resume_regs {
19 /* Watermark for validating the CPU resume struct */
20 uint32_t watermark;
21 uint32_t flags;
22 struct al_cpu_resume_regs_per_cpu per_cpu[];
25 /* The expected magic number for validating the resume addresses */
26 #define AL_CPU_RESUME_MAGIC_NUM 0xf0e1d200
27 #define AL_CPU_RESUME_MAGIC_NUM_MASK 0xffffff00
29 #endif /* ALPINE_CPU_RESUME_H_ */