1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/emulators/tme/files/patch-machine__sun__sun-bwtwo.c
Pawel Pekala f50ef73921 - Update to version 0.8
- Install examples
- Add LICENSE

PR:		ports/171997
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
Feature safe:	yes
2012-11-07 23:32:51 +00:00

28 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;
}