apicvar.h (153241) | apicvar.h (153666) |
---|---|
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/amd64/include/apicvar.h 153241 2005-12-08 18:33:30Z jhb $ | 29 * $FreeBSD: head/sys/amd64/include/apicvar.h 153666 2005-12-22 22:16:09Z jhb $ |
30 */ 31 32#ifndef _MACHINE_APICVAR_H_ 33#define _MACHINE_APICVAR_H_ 34 35#include <machine/segments.h> 36 37/* --- 159 unchanged lines hidden (view full) --- 197void lapic_eoi(void); 198int lapic_id(void); 199void lapic_init(uintptr_t addr); 200int lapic_intr_pending(u_int vector); 201void lapic_ipi_raw(register_t icrlo, u_int dest); 202void lapic_ipi_vectored(u_int vector, int dest); 203int lapic_ipi_wait(int delay); 204void lapic_handle_intr(int vector, struct trapframe frame); | 30 */ 31 32#ifndef _MACHINE_APICVAR_H_ 33#define _MACHINE_APICVAR_H_ 34 35#include <machine/segments.h> 36 37/* --- 159 unchanged lines hidden (view full) --- 197void lapic_eoi(void); 198int lapic_id(void); 199void lapic_init(uintptr_t addr); 200int lapic_intr_pending(u_int vector); 201void lapic_ipi_raw(register_t icrlo, u_int dest); 202void lapic_ipi_vectored(u_int vector, int dest); 203int lapic_ipi_wait(int delay); 204void lapic_handle_intr(int vector, struct trapframe frame); |
205void lapic_handle_timer(struct clockframe frame); | 205void lapic_handle_timer(struct trapframe frame); |
206void lapic_set_logical_id(u_int apic_id, u_int cluster, u_int cluster_id); 207int lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked); 208int lapic_set_lvt_mode(u_int apic_id, u_int lvt, u_int32_t mode); 209int lapic_set_lvt_polarity(u_int apic_id, u_int lvt, 210 enum intr_polarity pol); 211int lapic_set_lvt_triggermode(u_int apic_id, u_int lvt, 212 enum intr_trigger trigger); 213void lapic_set_tpr(u_int vector); 214void lapic_setup(void); 215int lapic_setup_clock(void); 216 217#endif /* !LOCORE */ 218#endif /* _MACHINE_APICVAR_H_ */ | 206void lapic_set_logical_id(u_int apic_id, u_int cluster, u_int cluster_id); 207int lapic_set_lvt_mask(u_int apic_id, u_int lvt, u_char masked); 208int lapic_set_lvt_mode(u_int apic_id, u_int lvt, u_int32_t mode); 209int lapic_set_lvt_polarity(u_int apic_id, u_int lvt, 210 enum intr_polarity pol); 211int lapic_set_lvt_triggermode(u_int apic_id, u_int lvt, 212 enum intr_trigger trigger); 213void lapic_set_tpr(u_int vector); 214void lapic_setup(void); 215int lapic_setup_clock(void); 216 217#endif /* !LOCORE */ 218#endif /* _MACHINE_APICVAR_H_ */ |