2 * This file is part of the Palacios Virtual Machine Monitor developed
3 * by the V3VEE Project with funding from the United States National
4 * Science Foundation and the Department of Energy.
6 * The V3VEE Project is a joint project between Northwestern University
7 * and the University of New Mexico. You can find out more at
10 * Copyright (c) 2009, Lei Xia <lxia@northwestern.edu>
11 * Copyright (c) 2009, Chang Seok Bae <jhuell@gmail.com>
12 * Copyright (c) 2009, Jack Lange <jarusl@cs.northwestern.edu>
13 * Copyright (c) 2009, The V3VEE Project <http://www.v3vee.org>
14 * All rights reserved.
16 * Author: Lei Xia <lxia@northwestern.edu>
17 * Chang Seok Bae <jhuell@gmail.com>
18 * Jack Lange <jarusl@cs.northwestern.edu>
20 * This is free software. You are permitted to use,
21 * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
24 #include <devices/piix3.h>
25 #include <palacios/vmm.h>
26 #include <devices/pci.h>
32 struct vm_device * pci;
37 static int init_piix3(struct vm_device * dev) {
43 static int deinit_piix3(struct vm_device * dev) {
48 static struct vm_device_ops dev_ops = {
50 .deinit = deinit_piix3,
57 struct vm_device * v3_create_piix3(struct vm_device * pci) {
58 struct piix3_state * piix3 = (struct piix3_state *)V3_Malloc(sizeof(struct piix3_state));
59 struct vm_device * dev = NULL;
63 dev = v3_create_device("PIIX3", &dev_ops, piix3);
65 PrintDebug("Created PIIX3\n");