X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fgeneric.c;h=20ff37fececda9e8ba42c06957ee205ad951239d;hb=091d8b1fcfc3a766f6603d4c1c69d9f8f4bf3031;hp=e397cd2fa8817b9100c7b9dd911b22a28b3201b2;hpb=f9bb3db89469169bb5775dc031d89e570c6fed70;p=palacios.releases.git diff --git a/palacios/src/devices/generic.c b/palacios/src/devices/generic.c index e397cd2..20ff37f 100644 --- a/palacios/src/devices/generic.c +++ b/palacios/src/devices/generic.c @@ -1,10 +1,10 @@ -/* Northwestern University */ -/* (c) 2008, Peter Dinda */ +/* (c) 2008, Peter Dinda */ +/* (c) 2008, The V3VEE Project */ #include #include #include -#include + @@ -96,17 +96,17 @@ 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 #ifdef RAMDISK_BOOT @@ -140,17 +140,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 #ifdef RAMDISK_BOOT