wok-next view 915resolution/stuff/915resolution-0.5.3-widescreen-resolution.patch @ rev 19670

sudo-pam: add the same patch
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Mar 18 15:28:43 2017 +0200 (2017-03-18)
parents
children
line source
1 --- 915resolution.c
2 +++ 915resolution.c
3 @@ -55,13 +55,13 @@
4 typedef unsigned int cardinal;
6 typedef enum {
7 - CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
8 - CT_946GZ, CT_G965, CT_Q965
9 + CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
10 + CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM
11 } chipset_type;
13 char * chipset_type_names[] = {
14 - "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
15 - "946GZ", "G965", "Q965"
16 + "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
17 + "945GME", "946GZ", "G965", "Q965", "965GM"
18 };
20 typedef enum {
21 @@ -179,8 +179,12 @@
23 chipset_type get_chipset(cardinal id) {
24 chipset_type type;
25 -
26 +
27 switch (id) {
28 + case 0x81008086:
29 + type = CT_500GMA;
30 + break;
31 +
32 case 0x35758086:
33 type = CT_830;
34 break;
35 @@ -192,14 +196,14 @@
36 case 0x35808086:
37 type = CT_855GM;
38 break;
39 -
40 +
41 case 0x25708086:
42 type = CT_865G;
43 break;
45 case 0x25808086:
46 - type = CT_915G;
47 - break;
48 + type = CT_915G;
49 + break;
51 case 0x25908086:
52 type = CT_915GM;
53 @@ -213,18 +217,26 @@
54 type = CT_945GM;
55 break;
57 + case 0x27ac8086:
58 + type = CT_945GME;
59 + break;
60 +
61 case 0x29708086:
62 type = CT_946GZ;
63 break;
65 case 0x29a08086:
66 - type = CT_G965;
67 - break;
68 + type = CT_G965;
69 + break;
71 case 0x29908086:
72 type = CT_Q965;
73 break;
75 + case 0x2a008086:
76 + type = CT_965GM;
77 + break;
78 +
79 default:
80 type = CT_UNKWN;
81 break;
82 @@ -502,15 +514,18 @@
83 outl(0x8000005a, 0xcf8);
84 outb(0x33, 0xcfe);
85 break;
86 + case CT_500GMA:
87 case CT_845G:
88 case CT_865G:
89 case CT_915G:
90 case CT_915GM:
91 case CT_945G:
92 case CT_945GM:
93 + case CT_945GME:
94 case CT_946GZ:
95 case CT_G965:
96 case CT_Q965:
97 + case CT_965GM:
98 outl(0x80000090, 0xcf8);
99 map->b1 = inb(0xcfd);
100 map->b2 = inb(0xcfe);
101 @@ -542,15 +557,18 @@
102 outl(0x8000005a, 0xcf8);
103 outb(map->b1, 0xcfe);
104 break;
105 + case CT_500GMA:
106 case CT_845G:
107 case CT_865G:
108 case CT_915G:
109 case CT_915GM:
110 case CT_945G:
111 case CT_945GM:
112 + case CT_945GME:
113 case CT_946GZ:
114 case CT_G965:
115 case CT_Q965:
116 + case CT_965GM:
117 outl(0x80000090, 0xcf8);
118 outb(map->b1, 0xcfd);
119 outb(map->b2, 0xcfe);
120 @@ -781,8 +799,10 @@
121 if(argc<=index) {
122 return 0;
123 }
124 -
125 - if (!strcmp(argv[index], "845")) {
126 + else if (!strcmp(argv[index], "500GMA")) {
127 + *forced_chipset = CT_500GMA;
128 + }
129 + else if (!strcmp(argv[index], "845")) {
130 *forced_chipset = CT_845G;
131 }
132 else if (!strcmp(argv[index], "855")) {
133 @@ -803,6 +823,9 @@
134 else if (!strcmp(argv[index], "945GM")) {
135 *forced_chipset = CT_945GM;
136 }
137 + else if (!strcmp(argv[index], "945GME")) {
138 + *forced_chipset = CT_945GME;
139 + }
140 else if (!strcmp(argv[index], "946GZ")) {
141 *forced_chipset = CT_946GZ;
142 }
143 @@ -812,6 +835,9 @@
144 else if (!strcmp(argv[index], "Q965")) {
145 *forced_chipset = CT_Q965;
146 }
147 + else if (!strcmp(argv[index], "965GM")) {
148 + *forced_chipset = CT_965GM;
149 + }
150 else {
151 *forced_chipset = CT_UNKWN;
152 }