wok-next diff 915resolution/stuff/patches/915resolution-0.5.3-widescreen-resolution.patch @ rev 20214
xchat: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 05 08:49:55 2017 +0100 (2017-11-05) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/915resolution/stuff/patches/915resolution-0.5.3-widescreen-resolution.patch Sun Nov 05 08:49:55 2017 +0100 1.3 @@ -0,0 +1,152 @@ 1.4 +--- a/915resolution.c 1.5 ++++ b/915resolution.c 1.6 +@@ -55,13 +55,13 @@ 1.7 + typedef unsigned int cardinal; 1.8 + 1.9 + typedef enum { 1.10 +- CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, 1.11 +- CT_946GZ, CT_G965, CT_Q965 1.12 ++ CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM, 1.13 ++ CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM 1.14 + } chipset_type; 1.15 + 1.16 + char * chipset_type_names[] = { 1.17 +- "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", 1.18 +- "946GZ", "G965", "Q965" 1.19 ++ "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM", 1.20 ++ "945GME", "946GZ", "G965", "Q965", "965GM" 1.21 + }; 1.22 + 1.23 + typedef enum { 1.24 +@@ -179,8 +179,12 @@ 1.25 + 1.26 + chipset_type get_chipset(cardinal id) { 1.27 + chipset_type type; 1.28 +- 1.29 ++ 1.30 + switch (id) { 1.31 ++ case 0x81008086: 1.32 ++ type = CT_500GMA; 1.33 ++ break; 1.34 ++ 1.35 + case 0x35758086: 1.36 + type = CT_830; 1.37 + break; 1.38 +@@ -192,14 +196,14 @@ 1.39 + case 0x35808086: 1.40 + type = CT_855GM; 1.41 + break; 1.42 +- 1.43 ++ 1.44 + case 0x25708086: 1.45 + type = CT_865G; 1.46 + break; 1.47 + 1.48 + case 0x25808086: 1.49 +- type = CT_915G; 1.50 +- break; 1.51 ++ type = CT_915G; 1.52 ++ break; 1.53 + 1.54 + case 0x25908086: 1.55 + type = CT_915GM; 1.56 +@@ -213,18 +217,26 @@ 1.57 + type = CT_945GM; 1.58 + break; 1.59 + 1.60 ++ case 0x27ac8086: 1.61 ++ type = CT_945GME; 1.62 ++ break; 1.63 ++ 1.64 + case 0x29708086: 1.65 + type = CT_946GZ; 1.66 + break; 1.67 + 1.68 + case 0x29a08086: 1.69 +- type = CT_G965; 1.70 +- break; 1.71 ++ type = CT_G965; 1.72 ++ break; 1.73 + 1.74 + case 0x29908086: 1.75 + type = CT_Q965; 1.76 + break; 1.77 + 1.78 ++ case 0x2a008086: 1.79 ++ type = CT_965GM; 1.80 ++ break; 1.81 ++ 1.82 + default: 1.83 + type = CT_UNKWN; 1.84 + break; 1.85 +@@ -502,15 +514,18 @@ 1.86 + outl(0x8000005a, 0xcf8); 1.87 + outb(0x33, 0xcfe); 1.88 + break; 1.89 ++ case CT_500GMA: 1.90 + case CT_845G: 1.91 + case CT_865G: 1.92 + case CT_915G: 1.93 + case CT_915GM: 1.94 + case CT_945G: 1.95 + case CT_945GM: 1.96 ++ case CT_945GME: 1.97 + case CT_946GZ: 1.98 + case CT_G965: 1.99 + case CT_Q965: 1.100 ++ case CT_965GM: 1.101 + outl(0x80000090, 0xcf8); 1.102 + map->b1 = inb(0xcfd); 1.103 + map->b2 = inb(0xcfe); 1.104 +@@ -542,15 +557,18 @@ 1.105 + outl(0x8000005a, 0xcf8); 1.106 + outb(map->b1, 0xcfe); 1.107 + break; 1.108 ++ case CT_500GMA: 1.109 + case CT_845G: 1.110 + case CT_865G: 1.111 + case CT_915G: 1.112 + case CT_915GM: 1.113 + case CT_945G: 1.114 + case CT_945GM: 1.115 ++ case CT_945GME: 1.116 + case CT_946GZ: 1.117 + case CT_G965: 1.118 + case CT_Q965: 1.119 ++ case CT_965GM: 1.120 + outl(0x80000090, 0xcf8); 1.121 + outb(map->b1, 0xcfd); 1.122 + outb(map->b2, 0xcfe); 1.123 +@@ -781,8 +799,10 @@ 1.124 + if(argc<=index) { 1.125 + return 0; 1.126 + } 1.127 +- 1.128 +- if (!strcmp(argv[index], "845")) { 1.129 ++ else if (!strcmp(argv[index], "500GMA")) { 1.130 ++ *forced_chipset = CT_500GMA; 1.131 ++ } 1.132 ++ else if (!strcmp(argv[index], "845")) { 1.133 + *forced_chipset = CT_845G; 1.134 + } 1.135 + else if (!strcmp(argv[index], "855")) { 1.136 +@@ -803,6 +823,9 @@ 1.137 + else if (!strcmp(argv[index], "945GM")) { 1.138 + *forced_chipset = CT_945GM; 1.139 + } 1.140 ++ else if (!strcmp(argv[index], "945GME")) { 1.141 ++ *forced_chipset = CT_945GME; 1.142 ++ } 1.143 + else if (!strcmp(argv[index], "946GZ")) { 1.144 + *forced_chipset = CT_946GZ; 1.145 + } 1.146 +@@ -812,6 +835,9 @@ 1.147 + else if (!strcmp(argv[index], "Q965")) { 1.148 + *forced_chipset = CT_Q965; 1.149 + } 1.150 ++ else if (!strcmp(argv[index], "965GM")) { 1.151 ++ *forced_chipset = CT_965GM; 1.152 ++ } 1.153 + else { 1.154 + *forced_chipset = CT_UNKWN; 1.155 + }