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