X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_dev_mgr.h;h=1d4357850302c852a94d312549de582ec8c61737;hb=f9bb3db89469169bb5775dc031d89e570c6fed70;hp=ed49769b2f3b3b77b3aab655e6d6d5d04f4d7fcd;hpb=d8fc6aa4bc2a5d9cec50923e9d2bd30f867dd50a;p=palacios.git diff --git a/palacios/include/palacios/vmm_dev_mgr.h b/palacios/include/palacios/vmm_dev_mgr.h index ed49769..1d43578 100644 --- a/palacios/include/palacios/vmm_dev_mgr.h +++ b/palacios/include/palacios/vmm_dev_mgr.h @@ -1,6 +1,11 @@ +/* Northwestern University */ +/* (c) 2008, Jack Lange */ + #ifndef _VMM_DEV_MGR #define _VMM_DEV_MGR +#ifdef __V3VEE__ + #include #include #include @@ -23,6 +28,21 @@ struct vmm_dev_mgr { +// Registration of devices + +// +// The following device manager functions should only be called +// when the guest is stopped +// + +int v3_attach_device(struct guest_info *vm, struct vm_device * dev); +int v3_unattach_device(struct vm_device *dev); + + + + + + struct dev_io_hook { ushort_t port; @@ -49,31 +69,14 @@ struct dev_mem_hook { }; -// Registration of devices +int dev_mgr_init(struct guest_info * info); +int dev_mgr_deinit(struct guest_info * info); -// -// The following device manager functions should only be called -// when the guest is stopped -// - -int dev_mgr_init(struct vmm_dev_mgr *mgr); -int dev_mgr_deinit(struct vmm_dev_mgr * mgr); - - - -int attach_device(struct guest_info *vm, struct vm_device * dev); -int unattach_device(struct vm_device *dev); - - -int dev_mgr_add_device(struct vmm_dev_mgr * mgr, struct vm_device * dev); -int dev_mgr_remove_device(struct vmm_dev_mgr * mgr, struct vm_device * dev); - - - - -void PrintDebugDevMgr(struct vmm_dev_mgr * mgr); +void PrintDebugDevMgr(struct guest_info * info); void PrintDebugDev(struct vm_device * dev); void PrintDebugDevIO(struct vm_device * dev); void PrintDebugDevMgrIO(struct vmm_dev_mgr * mgr); +#endif // ! __V3VEE__ + #endif