Deleted Added
full compact
vmm_ioport.c (263744) vmm_ioport.c (264631)
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

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

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
27#include <sys/cdefs.h>
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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/amd64/vmm/vmm_ioport.c 263744 2014-03-25 19:20:34Z tychon $");
28__FBSDID("$FreeBSD: head/sys/amd64/vmm/vmm_ioport.c 264631 2014-04-18 00:02:06Z tychon $");
29
30#include <sys/param.h>
31#include <sys/types.h>
32#include <sys/queue.h>
33#include <sys/cpuset.h>
34#include <sys/systm.h>
35
36#include <machine/vmm.h>

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

41
42#define MAX_IOPORTS 1280
43
44ioport_handler_func_t ioport_handler[MAX_IOPORTS] = {
45 [TIMER_MODE] = vatpit_handler,
46 [TIMER_CNTR0] = vatpit_handler,
47 [TIMER_CNTR1] = vatpit_handler,
48 [TIMER_CNTR2] = vatpit_handler,
29
30#include <sys/param.h>
31#include <sys/types.h>
32#include <sys/queue.h>
33#include <sys/cpuset.h>
34#include <sys/systm.h>
35
36#include <machine/vmm.h>

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

41
42#define MAX_IOPORTS 1280
43
44ioport_handler_func_t ioport_handler[MAX_IOPORTS] = {
45 [TIMER_MODE] = vatpit_handler,
46 [TIMER_CNTR0] = vatpit_handler,
47 [TIMER_CNTR1] = vatpit_handler,
48 [TIMER_CNTR2] = vatpit_handler,
49 [NMISC_PORT] = vatpit_nmisc_handler,
49 [IO_ICU1] = vatpic_master_handler,
50 [IO_ICU1 + ICU_IMR_OFFSET] = vatpic_master_handler,
51 [IO_ICU2] = vatpic_slave_handler,
52 [IO_ICU2 + ICU_IMR_OFFSET] = vatpic_slave_handler,
53 [IO_ELCR1] = vatpic_elc_handler,
54 [IO_ELCR2] = vatpic_elc_handler,
55};
56

--- 14 unchanged lines hidden ---
50 [IO_ICU1] = vatpic_master_handler,
51 [IO_ICU1 + ICU_IMR_OFFSET] = vatpic_master_handler,
52 [IO_ICU2] = vatpic_slave_handler,
53 [IO_ICU2 + ICU_IMR_OFFSET] = vatpic_slave_handler,
54 [IO_ELCR1] = vatpic_elc_handler,
55 [IO_ELCR2] = vatpic_elc_handler,
56};
57

--- 14 unchanged lines hidden ---