aboutsummaryrefslogtreecommitdiff
path: root/emulators/tme/files/patch-machine__sun__sun-bwtwo.c
blob: 0fc7aeef66f03002f8369a2ee624c698bfad1f49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- machine/sun/sun-bwtwo.c.orig	2009-11-08 12:03:58.000000000 -0500
+++ machine/sun/sun-bwtwo.c	2011-10-06 20:52:30.000000000 -0400
@@ -339,6 +339,7 @@
 {
   struct tme_sunbw2 *sunbw2;
   int rc;
+  tme_uint16_t v;
 
   /* start the sunbw2 structure: */
   sunbw2 = tme_new0(struct tme_sunbw2, 1);
@@ -365,12 +366,10 @@
   case TME_SUNBW2_TYPE_OLD_ONBOARD:
 
     /* set our initial CSR: */
-    sunbw2->tme_sunbw2_csr
-      = tme_htobe_u16(TME_SUNBW2_CSR_ENABLE_VIDEO
-		      | (sunbw2->tme_sunbw2_sunfb.tme_sunfb_size == TME_SUNFB_SIZE_1024_1024
-			 ? TME_SUNBW2_CSR_JUMPER_HIRES
-			 : 0));
-
+    v = TME_SUNBW2_CSR_ENABLE_VIDEO | (sunbw2->tme_sunbw2_sunfb.tme_sunfb_size
+				       == TME_SUNFB_SIZE_1024_1024
+				       ? TME_SUNBW2_CSR_JUMPER_HIRES : 0);
+    sunbw2->tme_sunbw2_csr = tme_htobe_u16(v);
     break;
   }