pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/vbetool outb args are swapped between NetBSD ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92bde535ec43
branches:  trunk
changeset: 531907:92bde535ec43
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed Aug 08 17:12:44 2007 +0000

description:
outb args are swapped between NetBSD and linux... found by jmcneill@.

Bump PKGREVISION.

diffstat:

 sysutils/vbetool/Makefile         |   3 ++-
 sysutils/vbetool/distinfo         |   4 ++--
 sysutils/vbetool/patches/patch-ab |  39 +++++++++++++++++++++++++++++++++------
 3 files changed, 37 insertions(+), 9 deletions(-)

diffs (104 lines):

diff -r 150a90cb6345 -r 92bde535ec43 sysutils/vbetool/Makefile
--- a/sysutils/vbetool/Makefile Wed Aug 08 17:12:43 2007 +0000
+++ b/sysutils/vbetool/Makefile Wed Aug 08 17:12:44 2007 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2007/08/08 15:55:28 xtraeme Exp $
+# $NetBSD: Makefile,v 1.4 2007/08/08 17:12:44 xtraeme Exp $
 #
 
 DISTNAME=      vbetool_0.7-1
 PKGNAME=       ${DISTNAME:S/_/-/}
+PKGREVISION=   1
 CATEGORIES=    sysutils
 MASTER_SITES=  http://www.srcf.ucam.org/~mjg59/vbetool/
 
diff -r 150a90cb6345 -r 92bde535ec43 sysutils/vbetool/distinfo
--- a/sysutils/vbetool/distinfo Wed Aug 08 17:12:43 2007 +0000
+++ b/sysutils/vbetool/distinfo Wed Aug 08 17:12:44 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.2 2007/08/08 12:36:38 xtraeme Exp $
+$NetBSD: distinfo,v 1.3 2007/08/08 17:12:44 xtraeme Exp $
 
 SHA1 (vbetool_0.7-1.tar.gz) = 49c86aa6fb877f35a0b336d6aa1d6b204c2cc66f
 RMD160 (vbetool_0.7-1.tar.gz) = b5a5d3a0794f8dbb06c78373e15c26d9536d8303
 Size (vbetool_0.7-1.tar.gz) = 176277 bytes
 SHA1 (patch-aa) = d27a3dd8eb1943c3f30351996483a01638521e90
-SHA1 (patch-ab) = 23b1bf49f395793b53dccd71be6f03aa27685a64
+SHA1 (patch-ab) = 1b5b041ec8dac282a0e8305b82af2c0fe325e1e8
 SHA1 (patch-ac) = 89b24bd2fadbf40ab614186b53dc339653029919
diff -r 150a90cb6345 -r 92bde535ec43 sysutils/vbetool/patches/patch-ab
--- a/sysutils/vbetool/patches/patch-ab Wed Aug 08 17:12:43 2007 +0000
+++ b/sysutils/vbetool/patches/patch-ab Wed Aug 08 17:12:44 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.2 2007/08/08 12:36:38 xtraeme Exp $
+$NetBSD: patch-ab,v 1.3 2007/08/08 17:12:44 xtraeme Exp $
 
 --- vbetool.c.orig     2006-07-26 03:27:21.000000000 +0200
-+++ vbetool.c  2007-08-08 14:27:44.000000000 +0200
-@@ -8,19 +8,26 @@
++++ vbetool.c  2007-08-08 19:07:18.000000000 +0200
+@@ -8,19 +8,29 @@
  version 2
  */
  
@@ -27,10 +27,13 @@
 +#include <machine/pio.h>
 +#endif
 +
++/* out* arguments are swapped between NetBSD and linux */
++#define __outb(v, p)  outb((p), (v))
++
  #include "include/lrmi.h"
  #include "vbetool.h"
  
-@@ -42,8 +49,16 @@
+@@ -42,8 +52,16 @@
                exit(1);
        }
        
@@ -47,7 +50,7 @@
        
        pacc = pci_alloc();
        pacc->numeric_ids = 1;
-@@ -256,7 +271,9 @@
+@@ -256,7 +274,9 @@
  
        LRMI_free_real(data);
  
@@ -57,7 +60,7 @@
  
  }
  
-@@ -476,7 +493,9 @@
+@@ -476,23 +496,25 @@
                return 11;
        }
  
@@ -67,3 +70,27 @@
        return 0;
  }
  
+ int enable_vga() {
+-      outb(0x03 | inb(0x3CC),  0x3C2);
+-      outb(0x01 | inb(0x3C3),  0x3C3);
+-      outb(0x08 | inb(0x46e8), 0x46e8);
+-      outb(0x01 | inb(0x102),  0x102);
++      __outb(0x03 | inb(0x3CC),  0x3C2);
++      __outb(0x01 | inb(0x3C3),  0x3C3);
++      __outb(0x08 | inb(0x46e8), 0x46e8);
++      __outb(0x01 | inb(0x102),  0x102);
+       return 0;
+ }
+ 
+ int disable_vga() {
+-      outb(~0x03 & inb(0x3CC),  0x3C2);
+-      outb(~0x01 & inb(0x3C3),  0x3C3);
+-      outb(~0x08 & inb(0x46e8), 0x46e8);
+-      outb(~0x01 & inb(0x102),  0x102);
++      __outb(~0x03 & inb(0x3CC),  0x3C2);
++      __outb(~0x01 & inb(0x3C3),  0x3C3);
++      __outb(~0x08 & inb(0x46e8), 0x46e8);
++      __outb(~0x01 & inb(0x102),  0x102);
+       return 0;
+ }
+ 



Home | Main Index | Thread Index | Old Index