intr_machdep.h (122690) | intr_machdep.h (128928) |
---|---|
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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/i386/include/intr_machdep.h 122690 2003-11-14 19:10:13Z jhb $ | 26 * $FreeBSD: head/sys/i386/include/intr_machdep.h 128928 2004-05-04 20:07:46Z jhb $ |
27 */ 28 29#ifndef __MACHINE_INTR_MACHDEP_H__ 30#define __MACHINE_INTR_MACHDEP_H__ 31 32#ifdef _KERNEL 33 34/* With I/O APIC's we can have up to 191 interrupts. */ --- 37 unchanged lines hidden (view full) --- 72 u_long *is_straycount; 73 u_int is_index; 74}; 75 76struct intrframe; 77 78extern struct mtx icu_lock; 79 | 27 */ 28 29#ifndef __MACHINE_INTR_MACHDEP_H__ 30#define __MACHINE_INTR_MACHDEP_H__ 31 32#ifdef _KERNEL 33 34/* With I/O APIC's we can have up to 191 interrupts. */ --- 37 unchanged lines hidden (view full) --- 72 u_long *is_straycount; 73 u_int is_index; 74}; 75 76struct intrframe; 77 78extern struct mtx icu_lock; 79 |
80/* XXX: The elcr_* prototypes probably belong somewhere else. */ 81int elcr_probe(void); 82enum intr_trigger elcr_read_trigger(u_int irq); 83void elcr_resume(void); 84void elcr_write_trigger(u_int irq, enum intr_trigger trigger); |
|
80int intr_add_handler(const char *name, int vector, driver_intr_t handler, 81 void *arg, enum intr_type flags, void **cookiep); 82void intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe); 83struct intsrc *intr_lookup_source(int vector); 84int intr_register_source(struct intsrc *isrc); 85int intr_remove_handler(void *cookie); 86void intr_resume(void); 87void intr_suspend(void); 88 89#endif /* !LOCORE */ 90#endif /* _KERNEL */ 91#endif /* !__MACHINE_INTR_MACHDEP_H__ */ | 85int intr_add_handler(const char *name, int vector, driver_intr_t handler, 86 void *arg, enum intr_type flags, void **cookiep); 87void intr_execute_handlers(struct intsrc *isrc, struct intrframe *iframe); 88struct intsrc *intr_lookup_source(int vector); 89int intr_register_source(struct intsrc *isrc); 90int intr_remove_handler(void *cookie); 91void intr_resume(void); 92void intr_suspend(void); 93 94#endif /* !LOCORE */ 95#endif /* _KERNEL */ 96#endif /* !__MACHINE_INTR_MACHDEP_H__ */ |