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.


*** empty log message ***
[palacios.releases.git] / palacios / src / devices / 8237_dma.c
1 #include <devices/8237_dma.h>
2
3
4
5
6 struct dma_state {
7   int tmp;
8
9 };
10
11
12 static int dma_init(struct vm_device * dev) {
13
14   return 0;
15 }
16
17
18
19 static struct vm_device_ops dev_ops = {
20   .init = dma_init,
21   .deinit = NULL,
22   .reset = NULL,
23   .start = NULL,
24   .stop = NULL,
25 };
26
27 struct vm_device * create_dma() {
28   struct dma_state * dma = NULL;
29
30   dma = (struct dma_state *)V3_Malloc(sizeof(struct dma_state));
31   V3_ASSERT(dma != NULL);
32
33   struct vm_device * dev = create_device("DMA", &dev_ops, dma);
34
35   return dma;
36 }