pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/915resolution Initial import of 915resolution...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/41dd6a2f49e5
branches:  trunk
changeset: 514370:41dd6a2f49e5
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Jun 11 14:03:58 2006 +0000

description:
Initial import of 915resolution version 0.5.2

915resolution is a tool to modify the video BIOS of the 800 and 900 series
Intel graphics chipsets. This includes the 845G, 855G, and 865G chipsets,
as well as 915G, 915GM, and 945G chipsets. This modification is neccessary
to allow the display of certain graphics resolutions for an Xorg or XFree86
graphics server.
915resolution's modifications of the BIOS are transient. There is no risk
of permanent modification of the BIOS. This also means that 915resolution
must be run every time the computer boots in order for it's changes to
take effect.
915resolution is derived from the tool 855resolution. However, the code
differs substantially. 915resolution's code base is much simpler.
915resolution also allows the modification of bits per pixel.

diffstat:

 sysutils/915resolution/DESCR            |  12 ++++
 sysutils/915resolution/Makefile         |  20 +++++++
 sysutils/915resolution/PLIST            |   4 +
 sysutils/915resolution/distinfo         |   7 ++
 sysutils/915resolution/patches/patch-aa |  89 +++++++++++++++++++++++++++++++++
 sysutils/915resolution/patches/patch-ab |  26 +++++++++
 6 files changed, 158 insertions(+), 0 deletions(-)

diffs (182 lines):

diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/DESCR      Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,12 @@
+915resolution is a tool to modify the video BIOS of the 800 and 900 series
+Intel graphics chipsets. This includes the 845G, 855G, and 865G chipsets,
+as well as 915G, 915GM, and 945G chipsets. This modification is neccessary
+to allow the display of certain graphics resolutions for an Xorg or XFree86
+graphics server.
+915resolution's modifications of the BIOS are transient. There is no risk
+of permanent modification of the BIOS. This also means that 915resolution
+must be run every time the computer boots in order for it's changes to
+take effect.
+915resolution is derived from the tool 855resolution. However, the code
+differs substantially. 915resolution's code base is much simpler.
+915resolution also allows the modification of bits per pixel.
diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/Makefile   Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+#
+
+DISTNAME=      915resolution-0.5.2
+CATEGORIES=    sysutils
+MASTER_SITES=  ${HOMEPAGE}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.geocities.com/stomljen/
+COMMENT=       BIOS VESA resolution utility for 8XX/9XX Intel chips
+
+ONLY_FOR_PLATFORM=     NetBSD-*-i386
+
+USE_TOOLS+=    gmake
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/915resolution
+       ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/915resolution
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/PLIST      Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+sbin/915resolution
+share/doc/915resolution/README.txt
+@dirrm share/doc/915resolution
diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/distinfo   Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+
+SHA1 (915resolution-0.5.2.tar.gz) = 9f26eb1b728ca0b2d28c948207b034a49b477089
+RMD160 (915resolution-0.5.2.tar.gz) = 722b352a83f41f0e9822ed4e096e8064f239dcc1
+Size (915resolution-0.5.2.tar.gz) = 21183 bytes
+SHA1 (patch-aa) = 00223a909139f74713aeb66d20ec5079f5afbfc0
+SHA1 (patch-ab) = 9bd666c93dcaa54ae01e140ed00c3f08874d694b
diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/patches/patch-aa   Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,89 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+
+--- 915resolution.c.orig       2006-06-06 22:55:58.000000000 +1200
++++ 915resolution.c
+@@ -22,7 +22,18 @@
+ #include <string.h>
+ #include <sys/mman.h>
+ #include <fcntl.h>
++#ifdef __linux__
+ #include <sys/io.h>
++#define OUTL(a, b)     outl(a, b)
++#define OUTB(a, b)     outb(a, b)
++#endif
++#ifdef __NetBSD__
++#include <machine/pio.h>
++#include <machine/sysarch.h>
++#define iopl(a) i386_iopl(a)
++#define OUTL(a, b)     outl(b, a)
++#define OUTB(a, b)     outb(b, a)
++#endif
+ #include <unistd.h>
+ #include <assert.h>
+ 
+@@ -169,7 +180,7 @@ void initialize_system(char * filename) 
+ }
+ 
+ cardinal get_chipset_id(void) {
+-    outl(0x80000000, 0xcf8);
++    OUTL(0x80000000, 0xcf8);
+     return inl(0xcfc);
+ }
+ 
+@@ -476,11 +487,11 @@ void unlock_vbios(vbios_map * map) {
+         case CT_UNKWN:
+             break;
+         case CT_855GM:
+-            outl(0x8000005a, 0xcf8);
++            OUTL(0x8000005a, 0xcf8);
+             map->b1 = inb(0xcfe);
+             
+-            outl(0x8000005a, 0xcf8);
+-            outb(0x33, 0xcfe);
++            OUTL(0x8000005a, 0xcf8);
++            OUTB(0x33, 0xcfe);
+             break;
+         case CT_845G:
+         case CT_865G:
+@@ -488,13 +499,13 @@ void unlock_vbios(vbios_map * map) {
+         case CT_915GM:
+         case CT_945G:
+         case CT_945GM:
+-            outl(0x80000090, 0xcf8);
++            OUTL(0x80000090, 0xcf8);
+             map->b1 = inb(0xcfd);
+             map->b2 = inb(0xcfe);
+             
+-            outl(0x80000090, 0xcf8);
+-            outb(0x33, 0xcfd);
+-            outb(0x33, 0xcfe);
++            OUTL(0x80000090, 0xcf8);
++            OUTB(0x33, 0xcfd);
++            OUTB(0x33, 0xcfe);
+             break;
+         }
+     }
+@@ -526,8 +537,8 @@ void relock_vbios(vbios_map * map) {
+         case CT_UNKWN:
+             break;
+         case CT_855GM:
+-            outl(0x8000005a, 0xcf8);
+-            outb(map->b1, 0xcfe);
++            OUTL(0x8000005a, 0xcf8);
++            OUTB(map->b1, 0xcfe);
+             break;
+         case CT_845G:
+         case CT_865G:
+@@ -535,9 +546,9 @@ void relock_vbios(vbios_map * map) {
+         case CT_915GM:
+         case CT_945G:
+         case CT_945GM:
+-            outl(0x80000090, 0xcf8);
+-            outb(map->b1, 0xcfd);
+-            outb(map->b2, 0xcfe);
++            OUTL(0x80000090, 0xcf8);
++            OUTB(map->b1, 0xcfd);
++            OUTB(map->b2, 0xcfe);
+             break;
+         }
+     }
diff -r 2feb724313bc -r 41dd6a2f49e5 sysutils/915resolution/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/915resolution/patches/patch-ab   Sun Jun 11 14:03:58 2006 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/06/11 14:03:58 markd Exp $
+
+--- Makefile.orig      2006-02-03 03:01:38.000000000 +1300
++++ Makefile
+@@ -1,9 +1,13 @@
+ PRG=915resolution
+ 
++PREFIX?=/usr
+ SRCS=915resolution.c 
+ OBJS=${SRCS:.c=.o}
+ 
+-CFLAGS:=-s -Wall -ggdb 
++#CFLAGS:=-s -Wall -ggdb 
++LDLIBS=-li386
++
++all: ${PRG}
+ 
+ ${PRG}: ${OBJS}
+ 
+@@ -11,5 +15,5 @@ clean:
+       rm -f ${OBJS} ${PRG} *~ 
+ 
+ install: ${PRG}
+-      cp ${PRG} /usr/sbin
++      install -m 555 ${PRG} ${PREFIX}/sbin
+ 



Home | Main Index | Thread Index | Old Index