wok-6.x view 915resolution/stuff/915resolution-0.5.3-cedarview.patch @ rev 21436

updated miau (0.6.5 -> 0.6.6)
author Hans-G?nter Theisgen
date Sat Apr 27 16:16:19 2019 +0100 (2019-04-27)
parents
children
line source
1 --- 915resolution.c
2 +++ 915resolution.c
3 @@ -56,12 +56,12 @@
5 typedef enum {
6 CT_UNKWN, CT_500GMA, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
7 - CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM
8 + CT_945GME, CT_946GZ, CT_G965, CT_Q965, CT_965GM, CT_Cedarview
9 } chipset_type;
11 char * chipset_type_names[] = {
12 "UNKNOWN", "500GMA", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
13 - "945GME", "946GZ", "G965", "Q965", "965GM"
14 + "945GME", "946GZ", "G965", "Q965", "965GM", "Cedarview"
15 };
17 typedef enum {
18 @@ -237,6 +237,10 @@
19 type = CT_965GM;
20 break;
22 + case 0xbf38086:
23 + type = CT_Cedarview;
24 + break;
25 +
26 default:
27 type = CT_UNKWN;
28 break;
29 @@ -526,6 +530,7 @@
30 case CT_G965:
31 case CT_Q965:
32 case CT_965GM:
33 + case CT_Cedarview:
34 outl(0x80000090, 0xcf8);
35 map->b1 = inb(0xcfd);
36 map->b2 = inb(0xcfe);
37 @@ -569,6 +574,7 @@
38 case CT_G965:
39 case CT_Q965:
40 case CT_965GM:
41 + case CT_Cedarview:
42 outl(0x80000090, 0xcf8);
43 outb(map->b1, 0xcfd);
44 outb(map->b2, 0xcfe);
45 @@ -837,6 +843,9 @@
46 }
47 else if (!strcmp(argv[index], "965GM")) {
48 *forced_chipset = CT_965GM;
49 + }
50 + else if (!strcmp(argv[index], "Cedarview")) {
51 + *forced_chipset = CT_Cedarview;
52 }
53 else {
54 *forced_chipset = CT_UNKWN;