vatpic.h (268891) | vatpic.h (268972) |
---|---|
1/*- 2 * Copyright (c) 2014 Tycho Nightingale <tycho.nightingale@pluribusnetworks.com> 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) 2014 Tycho Nightingale <tycho.nightingale@pluribusnetworks.com> 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: stable/10/sys/amd64/vmm/io/vatpic.h 268891 2014-07-19 22:06:46Z jhb $ | 26 * $FreeBSD: stable/10/sys/amd64/vmm/io/vatpic.h 268972 2014-07-22 03:14:37Z jhb $ |
27 */ 28 29#ifndef _VATPIC_H_ 30#define _VATPIC_H_ 31 32#include <isa/isareg.h> 33 34#define ICU_IMR_OFFSET 1 --- 9 unchanged lines hidden (view full) --- 44int vatpic_slave_handler(void *vm, int vcpuid, bool in, int port, int bytes, 45 uint32_t *eax); 46int vatpic_elc_handler(void *vm, int vcpuid, bool in, int port, int bytes, 47 uint32_t *eax); 48 49int vatpic_assert_irq(struct vm *vm, int irq); 50int vatpic_deassert_irq(struct vm *vm, int irq); 51int vatpic_pulse_irq(struct vm *vm, int irq); | 27 */ 28 29#ifndef _VATPIC_H_ 30#define _VATPIC_H_ 31 32#include <isa/isareg.h> 33 34#define ICU_IMR_OFFSET 1 --- 9 unchanged lines hidden (view full) --- 44int vatpic_slave_handler(void *vm, int vcpuid, bool in, int port, int bytes, 45 uint32_t *eax); 46int vatpic_elc_handler(void *vm, int vcpuid, bool in, int port, int bytes, 47 uint32_t *eax); 48 49int vatpic_assert_irq(struct vm *vm, int irq); 50int vatpic_deassert_irq(struct vm *vm, int irq); 51int vatpic_pulse_irq(struct vm *vm, int irq); |
52int vatpic_set_irq_trigger(struct vm *vm, int irq, enum vm_intr_trigger trigger); |
|
52 53void vatpic_pending_intr(struct vm *vm, int *vecptr); 54void vatpic_intr_accepted(struct vm *vm, int vector); 55 56#endif /* _VATPIC_H_ */ | 53 54void vatpic_pending_intr(struct vm *vm, int *vecptr); 55void vatpic_intr_accepted(struct vm *vm, int vector); 56 57#endif /* _VATPIC_H_ */ |