Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/915resolution/files: 915resolution-0.5.3-965GM.patch
Date: Tue, 29 Jul 2008 20:33:53
Message-Id: E1KNvtG-00084e-IQ@stork.gentoo.org
1 chutzpah 08/07/29 20:33:50
2
3 Added: 915resolution-0.5.3-965GM.patch
4 Log:
5 Add patch contributed by David Krapohl <david.krapohl@×××××.com> to add support for Intel 965GM (bug #186661). Clean out older version.
6 (Portage version: 2.2_rc4/cvs/Linux 2.6.24-gentoo-r4 x86_64)
7
8 Revision Changes Path
9 1.1 sys-apps/915resolution/files/915resolution-0.5.3-965GM.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/915resolution/files/915resolution-0.5.3-965GM.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/915resolution/files/915resolution-0.5.3-965GM.patch?rev=1.1&content-type=text/plain
13
14 Index: 915resolution-0.5.3-965GM.patch
15 ===================================================================
16 diff -Nru 915resolution-0.5.3/915resolution.c_orig 915resolution-0.5.3/915resolution.c
17 --- 915resolution-0.5.3/915resolution.c_orig 2007-04-15 12:46:56.000000000 +0200
18 +++ 915-resolution-0.5.3/915resolution.c 2007-07-15 21:21:05.000000000 +0200
19 @@ -56,12 +56,12 @@
20
21 typedef enum {
22 CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM,
23 - CT_946GZ, CT_G965, CT_Q965
24 + CT_946GZ, CT_G965, CT_Q965, CT_965GM
25 } chipset_type;
26
27 char * chipset_type_names[] = {
28 "UNKNOWN", "830", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM",
29 - "946GZ", "G965", "Q965"
30 + "946GZ", "G965", "Q965", "965GM"
31 };
32
33 typedef enum {
34 @@ -225,6 +225,10 @@
35 type = CT_Q965;
36 break;
37
38 + case 0x2a008086:
39 + type = CT_965GM;
40 + break;
41 +
42 default:
43 type = CT_UNKWN;
44 break;
45 @@ -511,6 +515,7 @@
46 case CT_946GZ:
47 case CT_G965:
48 case CT_Q965:
49 + case CT_965GM:
50 outl(0x80000090, 0xcf8);
51 map->b1 = inb(0xcfd);
52 map->b2 = inb(0xcfe);
53 @@ -551,6 +556,7 @@
54 case CT_946GZ:
55 case CT_G965:
56 case CT_Q965:
57 + case CT_965GM:
58 outl(0x80000090, 0xcf8);
59 outb(map->b1, 0xcfd);
60 outb(map->b2, 0xcfe);
61 @@ -809,6 +815,9 @@
62 else if (!strcmp(argv[index], "G965")) {
63 *forced_chipset = CT_G965;
64 }
65 + else if (!strcmp(argv[index], "965GM")) {
66 + *forced_chipset = CT_965GM;
67 + }
68 else if (!strcmp(argv[index], "Q965")) {
69 *forced_chipset = CT_Q965;
70 }