Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Definitions for the wakeup data structure at the head of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * wakeup code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #ifndef ARCH_X86_KERNEL_ACPI_RM_WAKEUP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #define ARCH_X86_KERNEL_ACPI_RM_WAKEUP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __ASSEMBLY__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /* This must match data at wakeup.S */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) struct wakeup_header {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	u16 video_mode;		/* Video mode number */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	u32 pmode_entry;	/* Protected mode resume point, 32-bit only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	u16 pmode_cs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u32 pmode_cr0;		/* Protected mode cr0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	u32 pmode_cr3;		/* Protected mode cr3 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	u32 pmode_cr4;		/* Protected mode cr4 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	u32 pmode_efer_low;	/* Protected mode EFER */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	u32 pmode_efer_high;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	u64 pmode_gdt;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	u32 pmode_misc_en_low;	/* Protected mode MISC_ENABLE */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	u32 pmode_misc_en_high;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	u32 pmode_behavior;	/* Wakeup routine behavior flags */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	u32 realmode_flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	u32 real_magic;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	u32 signature;		/* To check we have correct structure */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) } __attribute__((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern struct wakeup_header wakeup_header;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define WAKEUP_HEADER_OFFSET	8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define WAKEUP_HEADER_SIGNATURE 0x51ee1111
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) /* Wakeup behavior bits */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define WAKEUP_BEHAVIOR_RESTORE_MISC_ENABLE     0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define WAKEUP_BEHAVIOR_RESTORE_CR4		1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define WAKEUP_BEHAVIOR_RESTORE_EFER		2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #endif /* ARCH_X86_KERNEL_ACPI_RM_WAKEUP_H */