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) #include <linux/interrupt.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) /* Prototypes of functions used across modules here in this directory.  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) #define vucp	volatile unsigned char  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #define vusp	volatile unsigned short *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #define vip	volatile int *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #define vuip	volatile unsigned int   *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) #define vulp	volatile unsigned long  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) struct pt_regs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) struct task_struct;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) struct pci_dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) struct pci_controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) /* core_apecs.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) extern struct pci_ops apecs_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) extern void apecs_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) extern void apecs_pci_clr_err(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) extern void apecs_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) extern void apecs_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) /* core_cia.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) extern struct pci_ops cia_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) extern void cia_init_pci(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) extern void cia_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) extern void pyxis_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) extern void cia_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) extern void cia_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) extern void cia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) /* core_irongate.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) extern struct pci_ops irongate_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) extern int irongate_pci_clr_err(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) extern void irongate_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) #define irongate_pci_tbi ((void *)0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) /* core_lca.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) extern struct pci_ops lca_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) extern void lca_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) extern void lca_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) extern void lca_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) /* core_marvel.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) extern struct pci_ops marvel_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) extern void marvel_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) extern void marvel_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) extern void marvel_machine_check(unsigned long, unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) extern void marvel_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) extern int marvel_pa_to_nid(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) extern int marvel_cpuid_to_nid(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) extern unsigned long marvel_node_mem_start(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) extern unsigned long marvel_node_mem_size(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) extern struct _alpha_agp_info *marvel_agp_info(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) struct io7 *marvel_find_io7(int pe);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) struct io7 *marvel_next_io7(struct io7 *prev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) void io7_clear_errors(struct io7 *io7);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) /* core_mcpcia.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) extern struct pci_ops mcpcia_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) extern void mcpcia_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) extern void mcpcia_init_hoses(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) extern void mcpcia_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) extern void mcpcia_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) /* core_polaris.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) extern struct pci_ops polaris_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) extern int polaris_read_config_dword(struct pci_dev *, int, u32 *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) extern int polaris_write_config_dword(struct pci_dev *, int, u32);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) extern void polaris_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) extern void polaris_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) #define polaris_pci_tbi ((void *)0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) /* core_t2.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) extern struct pci_ops t2_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) extern void t2_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) extern void t2_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) extern void t2_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) extern void t2_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) /* core_titan.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) extern struct pci_ops titan_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) extern void titan_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) extern void titan_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) extern void titan_machine_check(unsigned long, unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) extern void titan_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) extern struct _alpha_agp_info *titan_agp_info(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) /* core_tsunami.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) extern struct pci_ops tsunami_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) extern void tsunami_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) extern void tsunami_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) extern void tsunami_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) extern void tsunami_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) /* core_wildfire.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) extern struct pci_ops wildfire_pci_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) extern void wildfire_init_arch(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) extern void wildfire_kill_arch(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) extern void wildfire_machine_check(unsigned long vector, unsigned long la_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) extern void wildfire_pci_tbi(struct pci_controller *, dma_addr_t, dma_addr_t);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) extern int wildfire_pa_to_nid(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) extern int wildfire_cpuid_to_nid(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) extern unsigned long wildfire_node_mem_start(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) extern unsigned long wildfire_node_mem_size(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) /* console.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #ifdef CONFIG_VGA_HOSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) extern void find_console_vga_hose(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) extern void locate_and_init_vga(void *(*)(void *, void *));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) static inline void find_console_vga_hose(void) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) static inline void locate_and_init_vga(void *(*sel_func)(void *, void *)) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) /* setup.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) extern unsigned long srm_hae;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) extern int boot_cpuid;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #ifdef CONFIG_VERBOSE_MCHECK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) extern unsigned long alpha_verbose_mcheck;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) /* srmcons.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #if defined(CONFIG_ALPHA_GENERIC) || defined(CONFIG_ALPHA_SRM)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) extern void register_srm_console(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) extern void unregister_srm_console(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define register_srm_console()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define unregister_srm_console()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) /* smp.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) extern void setup_smp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) extern void handle_ipi(struct pt_regs *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) /* bios32.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) /* extern void reset_for_srm(void); */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) /* time.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) extern irqreturn_t rtc_timer_interrupt(int irq, void *dev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) extern void init_clockevent(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) extern void common_init_rtc(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) extern unsigned long est_cycle_freq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) /* smc37c93x.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) extern void SMC93x_Init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) /* smc37c669.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) extern void SMC669_Init(int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) /* es1888.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) extern void es1888_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) /* ../lib/fpreg.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) extern void alpha_write_fp_reg (unsigned long reg, unsigned long val);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) extern unsigned long alpha_read_fp_reg (unsigned long reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) /* head.S */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) extern void wrmces(unsigned long mces);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) extern void cserve_ena(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) extern void cserve_dis(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) extern void __smp_callin(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) /* entry.S */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) extern void entArith(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) extern void entIF(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) extern void entInt(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) extern void entMM(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) extern void entSys(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) extern void entUna(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) extern void entDbg(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) /* ptrace.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) extern int ptrace_set_bpt (struct task_struct *child);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) extern int ptrace_cancel_bpt (struct task_struct *child);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) /* traps.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) extern void dik_show_regs(struct pt_regs *regs, unsigned long *r9_15);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) extern void die_if_kernel(char *, struct pt_regs *, long, unsigned long *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) /* sys_titan.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) extern void titan_dispatch_irqs(u64);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) /* ../mm/init.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) extern void switch_to_system_map(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) extern void srm_paging_stop(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) static inline int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) __alpha_remap_area_pages(unsigned long address, unsigned long phys_addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 			 unsigned long size, unsigned long flags)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	pgprot_t prot;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	prot = __pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 			| _PAGE_KWE | flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	return ioremap_page_range(address, address + size, phys_addr, prot);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) /* irq.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) #ifdef CONFIG_SMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #define mcheck_expected(cpu)	(cpu_data[cpu].mcheck_expected)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define mcheck_taken(cpu)	(cpu_data[cpu].mcheck_taken)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) #define mcheck_extra(cpu)	(cpu_data[cpu].mcheck_extra)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) extern struct mcheck_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	unsigned char expected __attribute__((aligned(8)));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	unsigned char taken;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	unsigned char extra;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) } __mcheck_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) #define mcheck_expected(cpu)	(*((void)(cpu), &__mcheck_info.expected))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) #define mcheck_taken(cpu)	(*((void)(cpu), &__mcheck_info.taken))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #define mcheck_extra(cpu)	(*((void)(cpu), &__mcheck_info.extra))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) extern void process_mcheck_info(unsigned long vector, unsigned long la_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 				const char *machine, int expected);