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.


5d9a8dab790cf9b0033a7643fc2944bf5d09d2df
[palacios.git] / palacios / src / devices / 8237_dma.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) 2008, Jack Lange <jarusl@cs.northwestern.edu> 
11  * Copyright (c) 2008, The V3VEE Project <http://www.v3vee.org> 
12  * All rights reserved.
13  *
14  * Author: Jack Lange <jarusl@cs.northwestern.edu>
15  *
16  * This is free software.  You are permitted to use,
17  * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
18  */
19
20 #include <devices/8237_dma.h>
21
22
23
24
25 struct dma_state {
26     int tmp
27 };
28
29
30 static int dma_init(struct vm_device * dev) {
31     return 0;
32 }
33
34
35
36 static struct v3_device_ops dev_ops = {
37     .free = NULL,
38     .reset = NULL,
39     .start = NULL,
40     .stop = NULL,
41 };
42
43 struct vm_device * v3_create_dma() {
44     struct dma_state * dma = NULL;
45
46     dma = (struct dma_state *)V3_Malloc(sizeof(struct dma_state));
47     V3_ASSERT(dma != NULL);
48
49     struct vm_device * dev = v3_create_device("DMA", &dev_ops, dma);
50
51     return dma;
52 }