X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvm_dev.h;fp=palacios%2Finclude%2Fpalacios%2Fvm_dev.h;h=8bd93a9a840ad1eb0985609367b9440091ea4510;hb=66a1a4c7a9edcd7d8bc207aca093d694a6e6b5b2;hp=7cbebd487a20f4747a20d6cec06009716b77b856;hpb=f7cf9c19ecb0a589dd45ae0d2c91814bd3c2acc2;p=palacios.git diff --git a/palacios/include/palacios/vm_dev.h b/palacios/include/palacios/vm_dev.h index 7cbebd4..8bd93a9 100644 --- a/palacios/include/palacios/vm_dev.h +++ b/palacios/include/palacios/vm_dev.h @@ -72,33 +72,33 @@ struct vm_device { -struct vm_device * allocate_device(); -struct vm_device * create_device(char * name, struct vm_device_ops * ops, void * private_data); -void free_device(struct vm_device * dev); +struct vm_device * v3_create_device(char * name, struct vm_device_ops * ops, void * private_data); +void v3_free_device(struct vm_device * dev); -int dev_hook_io(struct vm_device *dev, + +int v3_dev_hook_io(struct vm_device *dev, ushort_t port, int (*read)(ushort_t port, void * dst, uint_t length, struct vm_device * dev), int (*write)(ushort_t port, void * src, uint_t length, struct vm_device * dev)); -int dev_unhook_io(struct vm_device *dev, +int v3_dev_unhook_io(struct vm_device *dev, ushort_t port); -int dev_hook_mem(struct vm_device *dev, +int v3_dev_hook_mem(struct vm_device *dev, void *start, void *end); -int dev_unhook_mem(struct vm_device * dev, +int v3_dev_unhook_mem(struct vm_device * dev, void * start, void * end); -int dev_hook_irq(struct vm_device * dev, +int v3_dev_hook_irq(struct vm_device * dev, uint_t irq, int (*handler)(uint_t irq, struct vm_device * dev)); -int dev_unhook_irq(struct vm_device * dev, uint_t irq); +int v3_dev_unhook_irq(struct vm_device * dev, uint_t irq);