Deleted Added
full compact
vmm_ioport.c (263035) vmm_ioport.c (263744)
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 263035 2014-03-11 16:56:00Z tychon $");
28__FBSDID("$FreeBSD: head/sys/amd64/vmm/vmm_ioport.c 263744 2014-03-25 19:20:34Z 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>
37
38#include "vatpic.h"
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>
37
38#include "vatpic.h"
39#include "vatpit.h"
39#include "vmm_ioport.h"
40
41#define MAX_IOPORTS 1280
42
43ioport_handler_func_t ioport_handler[MAX_IOPORTS] = {
40#include "vmm_ioport.h"
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,
44 [IO_ICU1] = vatpic_master_handler,
45 [IO_ICU1 + ICU_IMR_OFFSET] = vatpic_master_handler,
46 [IO_ICU2] = vatpic_slave_handler,
47 [IO_ICU2 + ICU_IMR_OFFSET] = vatpic_slave_handler,
48 [IO_ELCR1] = vatpic_elc_handler,
49 [IO_ELCR2] = vatpic_elc_handler,
50};
51

--- 14 unchanged lines hidden ---
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 ---