]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/MAI/bios_emulator/scitech/src/v86bios/io.c
* Code cleanup:
[people/ms/u-boot.git] / board / MAI / bios_emulator / scitech / src / v86bios / io.c
index 129e24f383fc0864c9a693de177ce5afa0e38373..f35b43e9b9e6c25539a14677d5d87790d071af1a 100644 (file)
@@ -38,17 +38,17 @@ port_rep_inb(CARD16 port, CARD8 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD8 *dst = base;
-    
+
     p_printf(" rep_insb(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_inb++;
     while (count--) {
-        *dst = inb(port);
-        dst += inc;
+       *dst = inb(port);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -58,17 +58,17 @@ port_rep_inw(CARD16 port, CARD16 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD16 *dst = base;
-    
+
     p_printf(" rep_insw(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_inw++;
     while (count--) {
-        *dst = inw(port);
-        dst += inc;
+       *dst = inw(port);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -78,17 +78,17 @@ port_rep_inl(CARD16 port, CARD32 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD32 *dst = base;
-    
+
     p_printf(" rep_insl(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_inl++;
     while (count--) {
-        *dst = inl(port);
-        dst += inc;
+       *dst = inl(port);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -98,17 +98,17 @@ port_rep_outb(CARD16 port, CARD8 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD8 *dst = base;
-    
+
     p_printf(" rep_outb(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_outb++;
     while (count--) {
-        outb(port,*dst);
-        dst += inc;
+       outb(port,*dst);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -118,17 +118,17 @@ port_rep_outw(CARD16 port, CARD16 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD16 *dst = base;
-    
+
     p_printf(" rep_outw(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_outw++;
     while (count--) {
-        outw(port,*dst);
-        dst += inc;
+       outw(port,*dst);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -138,17 +138,17 @@ port_rep_outl(CARD16 port, CARD32 *base, int d_f, CARD32 count)
 {
     register int inc = d_f ? -1 : 1;
     CARD32 *dst = base;
-    
+
     p_printf(" rep_outl(%#x) %d bytes at %p %s",
-             port, count, base, d_f?"up":"down");
+            port, count, base, d_f?"up":"down");
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     r_outl++;
     while (count--) {
-        outl(port,*dst);
-        dst += inc;
+       outl(port,*dst);
+       dst += inc;
     }
     return (dst-base);
 }
@@ -161,7 +161,7 @@ p_inb(CARD16 port)
     val = inb(port);
     p_printf(" inb(%#x) = %2.2x",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     return val;
@@ -175,7 +175,7 @@ p_inw(CARD16 port)
     val = inw(port);
     p_printf(" inw(%#x) = %4.4x",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     return val;
@@ -188,13 +188,13 @@ p_inl(CARD16 port)
     in_l++;
 #ifdef NEED_PCI_IO
     if (cfg1in(port,&val))
-        return val;
+       return val;
     else
 #endif
     val = inl(port);
     p_printf(" inl(%#x) = %8.8x",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     return val;
@@ -206,7 +206,7 @@ p_outb(CARD16 port, CARD8 val)
     out_b++;
     p_printf(" outb(%#x, %2.2x)",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     outb(port,val);
@@ -218,7 +218,7 @@ p_outw(CARD16 port, CARD16 val)
     out_w++;
     p_printf(" outw(%#x, %4.4x)",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
     outw(port,val);
@@ -230,12 +230,12 @@ p_outl(CARD16 port, CARD32 val)
     out_l++;
     p_printf(" outl(%#x, %8.8x)",port,val);
     if (Config.PrintIp)
-        p_printf(" %x\n",getIP());
+       p_printf(" %x\n",getIP());
     else p_printf("\n");
 
 #ifdef NEED_PCI_IO
     if (cfg1out(port,val))
-        return;
+       return;
 #endif
     outl(port,val);
 }
@@ -244,9 +244,9 @@ void
 io_statistics(void)
 {
     p_printf("rep: inb: %i, inw: %i, inl: %i, outb: %i, outw: %i, outl: %i\n",
-         r_inb,r_inw,r_inl,r_outb,r_outw,r_outl);
+        r_inb,r_inw,r_inl,r_outb,r_outw,r_outl);
     p_printf("inb: %i, inw: %i, inl: %i, outb: %i, outw: %i, outl: %i\n",
-         in_b,in_w,in_l,out_b,out_w,out_l);
+        in_b,in_w,in_l,out_b,out_w,out_l);
 }
 
 void