X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8237_dma.c;fp=palacios%2Fsrc%2Fdevices%2F8237_dma.c;h=dc043b4ed8db6ce4f80fe8d42f3b0ee477aa973e;hb=68cac210354f03675feb5370dfa7fae1fb97ceee;hp=0000000000000000000000000000000000000000;hpb=a4b341afa075a6620dd087ee3a8ed850730c05c7;p=palacios.git diff --git a/palacios/src/devices/8237_dma.c b/palacios/src/devices/8237_dma.c new file mode 100644 index 0000000..dc043b4 --- /dev/null +++ b/palacios/src/devices/8237_dma.c @@ -0,0 +1,36 @@ +#include + + + + +struct dma_state { + int tmp; + +}; + + +static int dma_init(struct vm_device * dev) { + + return 0; +} + + + +static struct vm_device_ops dev_ops = { + .init = dma_init, + .deinit = NULL, + .reset = NULL, + .start = NULL, + .stop = NULL, +}; + +struct vm_device * create_dma() { + struct dma_state * dma = NULL; + + dma = (struct dma_state *)V3_Malloc(sizeof(struct dma_state)); + V3_ASSERT(dma != NULL); + + struct vm_device * dev = create_device("DMA", &dev_ops, dma); + + return dma; +}