wok rev 4586

improve 915resolution patch and receipt
author Rohit Joshi <jozee@slitaz.org>
date Thu Dec 10 13:20:36 2009 +0000 (2009-12-10)
parents ab535bc253e3
children af5f033d754f
files 915resolution/receipt 915resolution/stuff/915resolution-0.5.3-widescreen-resolution.patch 915resolution/stuff/eeepc901.u
line diff
     1.1 --- a/915resolution/receipt	Thu Dec 10 13:18:57 2009 +0000
     1.2 +++ b/915resolution/receipt	Thu Dec 10 13:20:36 2009 +0000
     1.3 @@ -3,24 +3,24 @@
     1.4  PACKAGE="915resolution"
     1.5  VERSION="0.5.3"
     1.6  CATEGORY="system-tools"
     1.7 -SHORT_DESC="Modify the video BIOS of the 800 and 900 series Intel graphics chipsets"
     1.8 +SHORT_DESC="Widescreen support; modify video BIOS of the 800 and 900 series Intel graphics chipsets"
     1.9  MAINTAINER="erjo@slitaz.org"
    1.10  DEPENDS=""
    1.11  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 -WEB_SITE="http://www.geocities.com/stomljen/"
    1.13 -WGET_URL="http://www.geocities.com/stomljen/$TARBALL"
    1.14 +WEB_SITE="http://915resolution.mango-lang.org/"
    1.15 +WGET_URL="$WEB_SITE/$TARBALL"
    1.16 +TAGS="widescreen resolution"
    1.17  
    1.18  # Rules to configure and make the package.
    1.19  compile_rules()
    1.20  {
    1.21  	cd $src
    1.22 -	for i in eeepc901.u ; do
    1.23 +	for i in $PACKAGE-$VERSION-widescreen-resolution.patch ; do
    1.24  		[ -f done.$i ] && continue
    1.25  		patch -p0 < ../stuff/$i
    1.26  		touch done.$i
    1.27  	done
    1.28 -	make clean && make
    1.29 -	#make
    1.30 +	make clean && make	
    1.31  }
    1.32  
    1.33  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/915resolution/stuff/915resolution-0.5.3-widescreen-resolution.patch	Thu Dec 10 13:20:36 2009 +0000
     2.3 @@ -0,0 +1,152 @@
     2.4 +--- 915resolution.c	
     2.5 ++++ 915resolution.c	
     2.6 +@@ -55,13 +55,13 @@
     2.7 + typedef unsigned int cardinal;
     2.8 + 
     2.9 + typedef enum {
    2.10 +-    CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
    2.11 +-    CT_946GZ, CT_G965, CT_Q965
    2.12 ++    CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
    2.13 ++    CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM
    2.14 + } chipset_type;
    2.15 + 
    2.16 + char * chipset_type_names[] = {
    2.17 +-    "UNKNOWN", "830",  "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
    2.18 +-    "946GZ",   "G965", "Q965"
    2.19 ++    "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
    2.20 ++    "945GME", "946GZ", "G965", "Q965", "965GM"
    2.21 + };
    2.22 + 
    2.23 + typedef enum {
    2.24 +@@ -179,8 +179,12 @@
    2.25 + 
    2.26 + chipset_type get_chipset(cardinal id) {
    2.27 +     chipset_type type;
    2.28 +-    
    2.29 ++
    2.30 +     switch (id) {
    2.31 ++    case 0x81008086:
    2.32 ++        type = CT_500GMA;
    2.33 ++        break;
    2.34 ++
    2.35 +     case 0x35758086:
    2.36 +         type = CT_830;
    2.37 +         break;
    2.38 +@@ -192,14 +196,14 @@
    2.39 +     case 0x35808086:
    2.40 +         type = CT_855GM;
    2.41 +         break;
    2.42 +-        
    2.43 ++
    2.44 +     case 0x25708086:
    2.45 +         type = CT_865G;
    2.46 +         break;
    2.47 + 
    2.48 +     case 0x25808086:
    2.49 +-	type = CT_915G;
    2.50 +-	break;
    2.51 ++        type = CT_915G;
    2.52 ++        break;
    2.53 + 
    2.54 +     case 0x25908086:
    2.55 +         type = CT_915GM;
    2.56 +@@ -213,18 +217,26 @@
    2.57 +         type = CT_945GM;
    2.58 +         break;
    2.59 + 
    2.60 ++    case 0x27ac8086:
    2.61 ++        type = CT_945GME;
    2.62 ++        break;
    2.63 ++
    2.64 +     case 0x29708086:
    2.65 +         type = CT_946GZ;
    2.66 +         break;
    2.67 + 
    2.68 +     case 0x29a08086:
    2.69 +-	type = CT_G965;
    2.70 +-	break;
    2.71 ++        type = CT_G965;
    2.72 ++        break;
    2.73 + 
    2.74 +     case 0x29908086:
    2.75 +         type = CT_Q965;
    2.76 +         break;
    2.77 + 
    2.78 ++    case 0x2a008086:
    2.79 ++        type = CT_965GM;
    2.80 ++        break;    
    2.81 ++
    2.82 +     default:
    2.83 +         type = CT_UNKWN;
    2.84 +         break;
    2.85 +@@ -502,15 +514,18 @@
    2.86 +         outl(0x8000005a, 0xcf8);
    2.87 +         outb(0x33, 0xcfe);
    2.88 +         break;
    2.89 ++    case CT_500GMA:
    2.90 +     case CT_845G:
    2.91 +     case CT_865G:
    2.92 +     case CT_915G:
    2.93 +     case CT_915GM:
    2.94 +     case CT_945G:
    2.95 +     case CT_945GM:
    2.96 ++    case CT_945GME:
    2.97 +     case CT_946GZ:
    2.98 +     case CT_G965:
    2.99 +     case CT_Q965:
   2.100 ++    case CT_965GM:
   2.101 +         outl(0x80000090, 0xcf8);
   2.102 +         map->b1 = inb(0xcfd);
   2.103 +         map->b2 = inb(0xcfe);
   2.104 +@@ -542,15 +557,18 @@
   2.105 +         outl(0x8000005a, 0xcf8);
   2.106 +         outb(map->b1, 0xcfe);
   2.107 +         break;
   2.108 ++    case CT_500GMA:
   2.109 +     case CT_845G:
   2.110 +     case CT_865G:
   2.111 +     case CT_915G:
   2.112 +     case CT_915GM:
   2.113 +     case CT_945G:
   2.114 +     case CT_945GM:
   2.115 ++    case CT_945GME:
   2.116 +     case CT_946GZ:
   2.117 +     case CT_G965:
   2.118 +     case CT_Q965:
   2.119 ++    case CT_965GM:
   2.120 +         outl(0x80000090, 0xcf8);
   2.121 +         outb(map->b1, 0xcfd);
   2.122 +         outb(map->b2, 0xcfe);
   2.123 +@@ -781,8 +799,10 @@
   2.124 +         if(argc<=index) {
   2.125 +             return 0;
   2.126 +         }
   2.127 +-        
   2.128 +-        if (!strcmp(argv[index], "845")) {
   2.129 ++        else if (!strcmp(argv[index], "500GMA")) {
   2.130 ++            *forced_chipset = CT_500GMA;
   2.131 ++        }
   2.132 ++        else if (!strcmp(argv[index], "845")) {
   2.133 +             *forced_chipset = CT_845G;
   2.134 +         }
   2.135 +         else if (!strcmp(argv[index], "855")) {
   2.136 +@@ -803,6 +823,9 @@
   2.137 +         else if (!strcmp(argv[index], "945GM")) {
   2.138 +             *forced_chipset = CT_945GM;
   2.139 +         }
   2.140 ++        else if (!strcmp(argv[index], "945GME")) {
   2.141 ++            *forced_chipset = CT_945GME;
   2.142 ++        }
   2.143 +         else if (!strcmp(argv[index], "946GZ")) {
   2.144 +             *forced_chipset = CT_946GZ;
   2.145 +         }
   2.146 +@@ -812,6 +835,9 @@
   2.147 +         else if (!strcmp(argv[index], "Q965")) {
   2.148 +             *forced_chipset = CT_Q965;
   2.149 +         }
   2.150 ++        else if (!strcmp(argv[index], "965GM")) {
   2.151 ++            *forced_chipset = CT_965GM;
   2.152 ++        }
   2.153 +         else {
   2.154 +             *forced_chipset = CT_UNKWN;
   2.155 +         }
     3.1 --- a/915resolution/stuff/eeepc901.u	Thu Dec 10 13:18:57 2009 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,54 +0,0 @@
     3.4 ---- 915resolution.c
     3.5 -+++ 915resolution.c
     3.6 -@@ -56,12 +56,12 @@
     3.7 - 
     3.8 - typedef enum {
     3.9 -     CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
    3.10 --    CT_946GZ, CT_G965, CT_Q965
    3.11 -+    CT_946GZ, CT_G965, CT_Q965, CT_965GM
    3.12 - } chipset_type;
    3.13 - 
    3.14 - char * chipset_type_names[] = {
    3.15 -     "UNKNOWN", "830",  "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
    3.16 --    "946GZ",   "G965", "Q965"
    3.17 -+    "946GZ",   "G965", "Q965", "965GM"
    3.18 - };
    3.19 - 
    3.20 - typedef enum {
    3.21 -@@ -225,6 +225,10 @@
    3.22 -         type = CT_Q965;
    3.23 -         break;
    3.24 - 
    3.25 -+    case 0x2a008086:
    3.26 -+    	type = CT_965GM;
    3.27 -+	break;
    3.28 -+
    3.29 -     default:
    3.30 -         type = CT_UNKWN;
    3.31 -         break;
    3.32 -@@ -511,6 +515,7 @@
    3.33 -     case CT_946GZ:
    3.34 -     case CT_G965:
    3.35 -     case CT_Q965:
    3.36 -+    case CT_965GM:
    3.37 -         outl(0x80000090, 0xcf8);
    3.38 -         map->b1 = inb(0xcfd);
    3.39 -         map->b2 = inb(0xcfe);
    3.40 -@@ -551,6 +556,7 @@
    3.41 -     case CT_946GZ:
    3.42 -     case CT_G965:
    3.43 -     case CT_Q965:
    3.44 -+    case CT_965GM:
    3.45 -         outl(0x80000090, 0xcf8);
    3.46 -         outb(map->b1, 0xcfd);
    3.47 -         outb(map->b2, 0xcfe);
    3.48 -@@ -809,6 +815,9 @@
    3.49 -         else if (!strcmp(argv[index], "G965")) {
    3.50 -             *forced_chipset = CT_G965;
    3.51 -         }
    3.52 -+	else if (!strcmp(argv[index], "965GM")) {
    3.53 -+	    *forced_chipset = CT_965GM;
    3.54 -+	}
    3.55 -         else if (!strcmp(argv[index], "Q965")) {
    3.56 -             *forced_chipset = CT_Q965;
    3.57 -         }