- Install examples - Add LICENSE PR: ports/171997 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Feature safe: yes
27 lines
835 B
C
27 lines
835 B
C
--- 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;
|
|
}
|
|
|