X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_io.h;h=9bfc197415c769e60e40fde4d7d0c119db59d44b;hb=master;hp=73fddc0b19ce73fe3cba2c9cb85416575ff6e579;hpb=70c69ef3be9d607190ad2810504c85ee57d16e25;p=palacios.git diff --git a/palacios/include/palacios/vmm_io.h b/palacios/include/palacios/vmm_io.h index 73fddc0..9bfc197 100644 --- a/palacios/include/palacios/vmm_io.h +++ b/palacios/include/palacios/vmm_io.h @@ -21,6 +21,7 @@ #define __VMM_IO_H +#ifdef __V3VEE__ #include #include @@ -40,7 +41,6 @@ int v3_hook_io_port(struct guest_info * info, uint_t port, -#ifdef __V3VEE__ struct vmm_io_hook; @@ -52,7 +52,7 @@ struct vmm_io_map { }; -void init_vmm_io_map(struct guest_info * info); +void v3_init_vmm_io_map(struct guest_info * info); // FOREACH_IO_HOOK(vmm_io_map_t * io_map, vmm_io_hook_t * io_hook) #define FOREACH_IO_HOOK(io_map, io_hook) for (io_hook = (io_map).head; io_hook != NULL; io_hook = (io_hook)->next) @@ -78,7 +78,20 @@ struct vmm_io_hook { struct vmm_io_hook * v3_get_io_hook(struct vmm_io_map * io_map, uint_t port); -void PrintDebugIOMap(struct vmm_io_map * io_map); +void v3_print_io_map(struct vmm_io_map * io_map); + + + + +void v3_outb(ushort_t port, uchar_t value); +uchar_t v3_inb(ushort_t port); + +void v3_outw(ushort_t port, ushort_t value); +ushort_t v3_inw(ushort_t port); + +void v3_outdw(ushort_t port, uint_t value); +uint_t v3_indw(ushort_t port); + #endif // !__V3VEE__