Deleted Added
full compact
apicvar.h (208507) apicvar.h (209371)
1/*-
2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2003 John Baldwin <jhb@FreeBSD.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/i386/include/apicvar.h 208507 2010-05-24 15:45:05Z jhb $
29 * $FreeBSD: head/sys/i386/include/apicvar.h 209371 2010-06-20 21:33:29Z mav $
30 */
31
32#ifndef _MACHINE_APICVAR_H_
33#define _MACHINE_APICVAR_H_
34
35/*
36 * Local && I/O APIC variable definitions.
37 */

--- 144 unchanged lines hidden (view full) ---

182#define APIC_IPI_DEST_OTHERS -3
183
184#define APIC_BUS_UNKNOWN -1
185#define APIC_BUS_ISA 0
186#define APIC_BUS_EISA 1
187#define APIC_BUS_PCI 2
188#define APIC_BUS_MAX APIC_BUS_PCI
189
30 */
31
32#ifndef _MACHINE_APICVAR_H_
33#define _MACHINE_APICVAR_H_
34
35/*
36 * Local && I/O APIC variable definitions.
37 */

--- 144 unchanged lines hidden (view full) ---

182#define APIC_IPI_DEST_OTHERS -3
183
184#define APIC_BUS_UNKNOWN -1
185#define APIC_BUS_ISA 0
186#define APIC_BUS_EISA 1
187#define APIC_BUS_PCI 2
188#define APIC_BUS_MAX APIC_BUS_PCI
189
190enum lapic_clock {
191 LAPIC_CLOCK_NONE,
192 LAPIC_CLOCK_HARDCLOCK,
193 LAPIC_CLOCK_ALL
194};
195
196/*
197 * An APIC enumerator is a psuedo bus driver that enumerates APIC's including
198 * CPU's and I/O APIC's.
199 */
200struct apic_enumerator {
201 const char *apic_name;
202 int (*apic_probe)(void);
203 int (*apic_probe_cpus)(void);

--- 54 unchanged lines hidden (view full) ---

258int lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked);
259int lapic_set_lvt_mode(u_int apic_id, u_int lvt, u_int32_t mode);
260int lapic_set_lvt_polarity(u_int apic_id, u_int lvt,
261 enum intr_polarity pol);
262int lapic_set_lvt_triggermode(u_int apic_id, u_int lvt,
263 enum intr_trigger trigger);
264void lapic_set_tpr(u_int vector);
265void lapic_setup(int boot);
190/*
191 * An APIC enumerator is a psuedo bus driver that enumerates APIC's including
192 * CPU's and I/O APIC's.
193 */
194struct apic_enumerator {
195 const char *apic_name;
196 int (*apic_probe)(void);
197 int (*apic_probe_cpus)(void);

--- 54 unchanged lines hidden (view full) ---

252int lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked);
253int lapic_set_lvt_mode(u_int apic_id, u_int lvt, u_int32_t mode);
254int lapic_set_lvt_polarity(u_int apic_id, u_int lvt,
255 enum intr_polarity pol);
256int lapic_set_lvt_triggermode(u_int apic_id, u_int lvt,
257 enum intr_trigger trigger);
258void lapic_set_tpr(u_int vector);
259void lapic_setup(int boot);
266enum lapic_clock lapic_setup_clock(enum lapic_clock srcsdes);
267
268#endif /* !LOCORE */
269#endif /* _MACHINE_APICVAR_H_ */
260
261#endif /* !LOCORE */
262#endif /* _MACHINE_APICVAR_H_ */