X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fgeneric.c;fp=palacios%2Fsrc%2Fdevices%2Fgeneric.c;h=549ba07c24391cddf3c42b39194d2945a69e8c91;hb=4381d301f8bdb373db95231264bd5d0e34b04ec8;hp=d9bf3ea7c721e2b749ef230d596d39c508740cf9;hpb=44ca16e8c4976d51b5d740ec17caf07c779a5e7b;p=palacios.git diff --git a/palacios/src/devices/generic.c b/palacios/src/devices/generic.c index d9bf3ea..549ba07 100644 --- a/palacios/src/devices/generic.c +++ b/palacios/src/devices/generic.c @@ -5,7 +5,7 @@ #include #include #include -#include + @@ -76,17 +76,19 @@ int generic_write_port_passthrough(ushort_t port, switch (length) { case 1: - Out_Byte(port, ((uchar_t*)src)[0]); + + v3_outb(port,((uchar_t*)src)[0]); break; case 2: - Out_Word(port, ((ushort_t*)src)[0]); + v3_outw(port,((ushort_t*)src)[0]); break; case 4: - Out_DWord(port, ((uint_t*)src)[0]); + v3_outdw(port,((uint_t*)src)[0]); + break; default: for (i = 0; i < length; i++) { - Out_Byte(port, ((uchar_t*)src)[i]); + v3_outb(port, ((uchar_t*)src)[i]); } } //switch length @@ -108,17 +110,17 @@ int generic_read_port_passthrough(ushort_t port, switch (length) { case 1: - ((uchar_t*)src)[0] = In_Byte(port); + ((uchar_t*)src)[0] = v3_inb(port); break; case 2: - ((ushort_t*)src)[0] = In_Word(port); + ((ushort_t*)src)[0] = v3_inw(port); break; case 4: - ((uint_t*)src)[0] = In_DWord(port); + ((uint_t*)src)[0] = v3_indw(port); break; default: for (i = 0; i < length; i++) { - ((uchar_t*)src)[i] = In_Byte(port); + ((uchar_t*)src)[i] = v3_inb(port); } }//switch length