Linux Audio

Check our new training course

Loading...
v3.15
 
 1/*
 2 * Copyright (C) 2013 Imagination Technologies
 3 * Author: Paul Burton <paul.burton@imgtec.com>
 4 *
 5 * This program is free software; you can redistribute it and/or modify it
 6 * under the terms of the GNU General Public License as published by the
 7 * Free Software Foundation;  either version 2 of the  License, or (at your
 8 * option) any later version.
 9 */
10
11#ifndef __MIPS_ASM_SMP_CPS_H__
12#define __MIPS_ASM_SMP_CPS_H__
13
 
 
14#ifndef __ASSEMBLY__
15
16struct boot_config {
17	unsigned int core;
18	unsigned int vpe;
19	unsigned long pc;
20	unsigned long sp;
21	unsigned long gp;
22};
23
24extern struct boot_config mips_cps_bootcfg;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
26extern void mips_cps_core_entry(void);
27
28#else /* __ASSEMBLY__ */
29
30.extern mips_cps_bootcfg;
31
32#endif /* __ASSEMBLY__ */
33#endif /* __MIPS_ASM_SMP_CPS_H__ */
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright (C) 2013 Imagination Technologies
 4 * Author: Paul Burton <paul.burton@mips.com>
 
 
 
 
 
 5 */
 6
 7#ifndef __MIPS_ASM_SMP_CPS_H__
 8#define __MIPS_ASM_SMP_CPS_H__
 9
10#define CPS_ENTRY_PATCH_INSNS	6
11
12#ifndef __ASSEMBLY__
13
14struct vpe_boot_config {
 
 
15	unsigned long pc;
16	unsigned long sp;
17	unsigned long gp;
18};
19
20struct core_boot_config {
21	atomic_t vpe_mask;
22	struct vpe_boot_config *vpe_config;
23};
24
25extern struct core_boot_config *mips_cps_core_bootcfg;
26
27extern void mips_cps_core_boot(int cca, void __iomem *gcr_base);
28extern void mips_cps_core_init(void);
29
30extern void mips_cps_boot_vpes(struct core_boot_config *cfg, unsigned vpe);
31
32extern void mips_cps_pm_save(void);
33extern void mips_cps_pm_restore(void);
34
35extern void excep_tlbfill(void);
36extern void excep_xtlbfill(void);
37extern void excep_cache(void);
38extern void excep_genex(void);
39extern void excep_intex(void);
40extern void excep_ejtag(void);
41
42#ifdef CONFIG_MIPS_CPS
43
44extern bool mips_cps_smp_in_use(void);
45
46#else /* !CONFIG_MIPS_CPS */
47
48static inline bool mips_cps_smp_in_use(void) { return false; }
49
50#endif /* !CONFIG_MIPS_CPS */
51
52#else /* __ASSEMBLY__ */
53
54.extern mips_cps_bootcfg;
55
56#endif /* __ASSEMBLY__ */
57#endif /* __MIPS_ASM_SMP_CPS_H__ */