X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2F8237_dma.c;h=40787a7d2b58618e3bcc689e508e794336c1895a;hb=8983cf1320218fdd8cb3e1c38ea444fa3b041e63;hp=d55f7b842747fd2dbc674bf0f996fd697ecf3a91;hpb=e70e95962c26832628d586e07f9cd1a2e1852d72;p=palacios.git diff --git a/palacios/src/devices/8237_dma.c b/palacios/src/devices/8237_dma.c index d55f7b8..40787a7 100644 --- a/palacios/src/devices/8237_dma.c +++ b/palacios/src/devices/8237_dma.c @@ -23,33 +23,31 @@ struct dma_state { - int tmp; - + int tmp }; static int dma_init(struct vm_device * dev) { - - return 0; + return 0; } static struct vm_device_ops dev_ops = { - .init = dma_init, - .deinit = NULL, - .reset = NULL, - .start = NULL, - .stop = NULL, + .init = dma_init, + .deinit = NULL, + .reset = NULL, + .start = NULL, + .stop = NULL, }; -struct vm_device * create_dma() { - struct dma_state * dma = NULL; +struct vm_device * v3_create_dma() { + struct dma_state * dma = NULL; - dma = (struct dma_state *)V3_Malloc(sizeof(struct dma_state)); - V3_ASSERT(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); + struct vm_device * dev = v3_create_device("DMA", &dev_ops, dma); - return dma; + return dma; }