summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/915resolution/files/915resolution-0.5.2-830.patch')
-rw-r--r--sys-apps/915resolution/files/915resolution-0.5.2-830.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/915resolution/files/915resolution-0.5.2-830.patch b/sys-apps/915resolution/files/915resolution-0.5.2-830.patch
new file mode 100644
index 000000000000..fb1f84d5d34b
--- /dev/null
+++ b/sys-apps/915resolution/files/915resolution-0.5.2-830.patch
@@ -0,0 +1,63 @@
+diff -u 915resolution-0.5.2/915resolution.c 915resolution-0.5.2-830/915resolution.c
+--- 915resolution-0.5.2/915resolution.c 2006-02-02 15:28:34.000000000 +0100
++++ 915resolution-0.5.2-830/915resolution.c 2006-12-07 07:30:44.000000000 +0100
+@@ -55,10 +55,10 @@
+ typedef unsigned int cardinal;
+
+ typedef enum {
+- CT_UNKWN, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM
++ CT_UNKWN, CT_830, CT_845G, CT_855GM, CT_865G, CT_915G, CT_915GM, CT_945G, CT_945GM
+ } chipset_type;
+
+-char * chipset_type_names[] = {"UNKNOWN", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM"};
++char * chipset_type_names[] = {"UNKNOWN", "830M/MG", "845G", "855GM", "865G", "915G", "915GM", "945G", "945GM"};
+
+ typedef enum {
+ BT_UNKWN, BT_1, BT_2, BT_3
+@@ -177,6 +177,10 @@
+ chipset_type type;
+
+ switch (id) {
++ case 0x35758086:
++ type = CT_830;
++ break;
++
+ case 0x25608086:
+ type = CT_845G;
+ break;
+@@ -475,6 +479,7 @@
+ switch (map->chipset) {
+ case CT_UNKWN:
+ break;
++ case CT_830:
+ case CT_855GM:
+ outl(0x8000005a, 0xcf8);
+ map->b1 = inb(0xcfe);
+@@ -525,6 +530,7 @@
+ switch (map->chipset) {
+ case CT_UNKWN:
+ break;
++ case CT_830:
+ case CT_855GM:
+ outl(0x8000005a, 0xcf8);
+ outb(map->b1, 0xcfe);
+@@ -773,6 +779,9 @@
+ else if (!strcmp(argv[index], "945GM")) {
+ *forced_chipset = CT_945GM;
+ }
++ else if (!strncmp(argv[index], "830", 3)) {
++ *forced_chipset = CT_830;
++ }
+ else {
+ *forced_chipset = CT_UNKWN;
+ }
+diff -u 915resolution-0.5.2/chipset_info.txt 915resolution-0.5.2-830/chipset_info.txt
+--- 915resolution-0.5.2/chipset_info.txt 2006-02-02 15:01:38.000000000 +0100
++++ 915resolution-0.5.2-830/chipset_info.txt 2006-12-07 07:30:57.000000000 +0100
+@@ -1,5 +1,6 @@
+ CHIPSET ID PAM
+ ======================================================
++830M, 830MG $3575_8086 $5A - $5B
+ 845G, 845GL, 845GV $2560_8086 $91 - $92
+ 865G, 865GV $2570_8086 $91 - $92
+ 855GM, 855GME, 852GM, 852GMV $3580_8086 $5A - $5b