Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


updated the pci and IDE configuration.
[palacios.git] / palacios / src / devices / piix3.c
1 /* 
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.  
5  *
6  * The V3VEE Project is a joint project between Northwestern University
7  * and the University of New Mexico.  You can find out more at 
8  * http://www.v3vee.org
9  *
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.
15  *
16  * Author:  Lei Xia <lxia@northwestern.edu>
17  *          Chang Seok Bae <jhuell@gmail.com>
18  *          Jack Lange <jarusl@cs.northwestern.edu>
19  *
20  * This is free software.  You are permitted to use,
21  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
22  */ 
23  
24 #include <devices/piix3.h>
25 #include <palacios/vmm.h>
26 #include <devices/pci.h>
27
28
29 struct piix3_state {
30     uint8_t pci_dev_num;
31
32     struct vm_device * pci;
33
34 };
35
36
37 static int init_piix3(struct vm_device * dev) {
38
39     return 0;
40 }
41
42
43 static int deinit_piix3(struct vm_device * dev) {
44     return 0;
45 }
46
47
48 static struct vm_device_ops dev_ops = {
49     .init = init_piix3,
50     .deinit = deinit_piix3,
51     .reset = NULL,
52     .start = NULL,
53     .stop = NULL,
54 };
55
56
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;
60
61     piix3->pci = pci;
62     
63     dev = v3_create_device("PIIX3", &dev_ops, piix3);
64
65     PrintDebug("Created PIIX3\n");
66
67     return dev;
68 }