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.


modified copyright tags
[palacios.git] / palacios / src / devices / 8237_dma.c
1 /* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
2 /* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
3
4 #include <devices/8237_dma.h>
5
6
7
8
9 struct dma_state {
10   int tmp;
11
12 };
13
14
15 static int dma_init(struct vm_device * dev) {
16
17   return 0;
18 }
19
20
21
22 static struct vm_device_ops dev_ops = {
23   .init = dma_init,
24   .deinit = NULL,
25   .reset = NULL,
26   .start = NULL,
27   .stop = NULL,
28 };
29
30 struct vm_device * create_dma() {
31   struct dma_state * dma = NULL;
32
33   dma = (struct dma_state *)V3_Malloc(sizeof(struct dma_state));
34   V3_ASSERT(dma != NULL);
35
36   struct vm_device * dev = create_device("DMA", &dev_ops, dma);
37
38   return dma;
39 }