Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Annapurna labs cpu-resume register structure.
0004  *
0005  * Copyright (C) 2015 Annapurna Labs Ltd.
0006  */
0007 
0008 #ifndef ALPINE_CPU_RESUME_H_
0009 #define ALPINE_CPU_RESUME_H_
0010 
0011 /* Per-cpu regs */
0012 struct al_cpu_resume_regs_per_cpu {
0013     uint32_t    flags;
0014     uint32_t    resume_addr;
0015 };
0016 
0017 /* general regs */
0018 struct al_cpu_resume_regs {
0019     /* Watermark for validating the CPU resume struct */
0020     uint32_t watermark;
0021     uint32_t flags;
0022     struct al_cpu_resume_regs_per_cpu per_cpu[];
0023 };
0024 
0025 /* The expected magic number for validating the resume addresses */
0026 #define AL_CPU_RESUME_MAGIC_NUM     0xf0e1d200
0027 #define AL_CPU_RESUME_MAGIC_NUM_MASK    0xffffff00
0028 
0029 #endif /* ALPINE_CPU_RESUME_H_ */