smp.h revision 268200
1296465Sdelphij/*
2110010Smarkm * $FreeBSD: stable/10/sys/ia64/include/smp.h 268200 2014-07-02 23:47:43Z marcel $
3110010Smarkm */
4142429Snectar#ifndef _MACHINE_SMP_H_
5110010Smarkm#define _MACHINE_SMP_H_
6110010Smarkm
7110010Smarkm#ifdef _KERNEL
8110010Smarkm
9110010Smarkm#define	IPI_AST			ia64_ipi_ast
10110010Smarkm#define	IPI_HARDCLOCK		ia64_ipi_hardclock
11110010Smarkm#define	IPI_PREEMPT		ia64_ipi_preempt
12110010Smarkm#define	IPI_RENDEZVOUS		ia64_ipi_rndzvs
13110010Smarkm#define	IPI_STOP		ia64_ipi_stop
14110010Smarkm#define	IPI_STOP_HARD		ia64_ipi_nmi
15110010Smarkm
16110010Smarkm#ifndef LOCORE
17110010Smarkm
18110010Smarkm#include <sys/_cpuset.h>
19110010Smarkm
20215698Ssimonstruct pcpu;
21215698Ssimon
22215698Ssimonstruct ia64_ap_state {
23215698Ssimon	uint64_t	as_trace;
24215698Ssimon	uint64_t	as_pgtbl_pte;
25110010Smarkm	uint64_t	as_pgtbl_itir;
26110010Smarkm	uint64_t	as_text_va;
27110010Smarkm	uint64_t	as_text_pte;
28110010Smarkm	uint64_t	as_text_itir;
29110010Smarkm	uint64_t	as_data_va;
30110010Smarkm	uint64_t	as_data_pte;
31110010Smarkm	uint64_t	as_data_itir;
32110010Smarkm	void		*as_kstack;
33110010Smarkm	void		*as_kstack_top;
34110010Smarkm	struct pcpu	*as_pcpu;
35110010Smarkm	void		*as_xtrace_buffer;
36110010Smarkm	volatile int	as_delay;
37110010Smarkm	volatile u_int	as_awake;
38110010Smarkm	volatile u_int	as_spin;
39110010Smarkm};
40110010Smarkm
41279265Sdelphijextern int ia64_ipi_ast;
42279265Sdelphijextern int ia64_ipi_hardclock;
43110010Smarkmextern int ia64_ipi_highfp;
44110010Smarkmextern int ia64_ipi_nmi;
45215698Ssimonextern int ia64_ipi_preempt;
46215698Ssimonextern int ia64_ipi_rndzvs;
47215698Ssimonextern int ia64_ipi_stop;
48215698Ssimonextern int ia64_ipi_wakeup;
49142429Snectar
50215698Ssimonvoid	ipi_all_but_self(int ipi);
51142429Snectarvoid	ipi_cpu(int cpu, u_int ipi);
52142429Snectarvoid	ipi_selected(cpuset_t cpus, int ipi);
53279265Sdelphijvoid	ipi_send(struct pcpu *, int ipi);
54279265Sdelphij
55279265Sdelphij#endif /* !LOCORE */
56110010Smarkm#endif /* _KERNEL */
57279265Sdelphij#endif /* !_MACHINE_SMP_H */
58279265Sdelphij