martin
10b6e2f5f6
Remove unused variables
2013-09-15 14:13:19 +00:00
martin
10c5b4d905
Remove unused variable
2013-09-15 14:08:25 +00:00
martin
bee22eb353
Simplify CG6_DRAW() and CG6_BLIT() macros so gcc 4.8.1 does not warn about
...
them - assembler looks good, but Michael, can you please test nevertheless?
2013-09-12 12:42:18 +00:00
macallan
4453737ff6
avoid uninitialized use of defattr
2013-07-30 19:16:50 +00:00
macallan
9373d84081
add a bunch of register definitions and clarify some comments
2013-05-28 15:25:37 +00:00
macallan
880c7720a7
don't claim alpha font support unless we have enough off-screen memory to
...
cache a useful number of glyphs
this should probably be CPU speed dependent, most UltraSPARCs can likely
render anti-aliased fonts fast enough on the fly
2012-11-13 20:47:58 +00:00
macallan
700afa7d40
wipe the glyph cache when re-entring terminal emulation mode
2012-07-18 02:31:46 +00:00
macallan
b94d298539
wait for the blitter to go idle before trying to send another command
...
Apparently on some CG6 the GX_FULL bit is not a reliable indication wether the
engine is ready to accept another command ( LX onboard for example ) - might
be a hardware bug.
2012-07-13 19:48:45 +00:00
macallan
7daaf29c68
support anti-aliased fonts
2012-07-12 01:20:22 +00:00
macallan
b7d83378aa
don't wait for the blitter unless we want to send another command and the
...
pipeline is full
2012-07-11 16:59:55 +00:00
macallan
7bb04ad0c4
don't set clipping parameters and such every time we send a blitter command
2012-07-11 15:03:14 +00:00
macallan
4ce7eb58c5
perry some whitespace nits & remove some obsolete comments
...
no functional change
2012-07-10 22:50:41 +00:00
macallan
67b89d49b5
magic number reduction, no functional change
2012-07-10 22:35:11 +00:00
macallan
fe2d7ebdd3
add some register definitions from xf86-video-suncg6
2012-07-10 22:34:32 +00:00
macallan
fb12d7f4d3
- re-initialize only when we're really going back to terminal emulation
...
- don't try to redraw a non-existing screen
- don't try to mmap sbus ranges through /dev/ttyE*
2012-07-10 22:33:15 +00:00
christos
7d659a9119
make this compile again.
2012-05-02 14:54:26 +00:00
martin
7d5d727b0f
Make it compilable without envsys
2012-04-27 09:30:13 +00:00
macallan
342b9fca4a
report power button events to sysmon
...
also send pwm events for volume control keys directly with
options KBD_HIJACK_VOLUME_BUTTONS
so they work in X as well
2012-04-26 00:50:10 +00:00
macallan
741daaf46f
use rasops_init(0,0)
2012-01-11 16:10:13 +00:00
mrg
84b278ca3f
add support for WSDISPLAYIO_LINEBYTES. mostly from macallan.
2010-11-23 22:14:27 +00:00
uebayasi
8184d5dc03
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
...
some other constants. These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
macallan
dcfeeda4d3
clear the screen when attaching, not when adding screens since that may
...
happen much later
while there, call vcons_replay_msgbuf()
2010-09-14 19:36:13 +00:00
macallan
852bc5b438
leave the screen description alone when we're not the console in order to
...
avoid a NULL deref later on ( which only happens on sparc64 for some reason )
While there, use VCONS_DONT_READ
2010-09-14 18:43:41 +00:00
macallan
4abeddc6aa
don't muck with the screen description if we're not the console, for some
...
reason this leads to a NULL jump later on, at least on sparc64
should fix PR43873
2010-09-14 18:42:12 +00:00
jym
9600194c60
Flush tty only when K_TXBUSY is not set.
...
'!' takes precedence over bitwise operation '&', so use parenthesis.
2010-08-14 20:52:05 +00:00
tsutsui
8f5dd48f26
Make this compile on sparc64.
2010-05-10 14:33:21 +00:00
macallan
1c134541af
use box drawing font if needed
2010-05-04 05:10:25 +00:00
martin
d6bdba5871
Properly convert values according to block size differences between the
...
underlying device (might be a CD drive) and the sun label when carrying
over defaults from a ISO9660 partition.
2010-03-23 20:01:09 +00:00
martin
238cb98a56
Do not overwrite a ISO9660 partition (which the sunlabel can not properly
...
represent, but the cd driver carefully crafted including session data).
This makes it possible to just mount cd0a as cd9660fs on a sparc* install
CD. Solution suggested by <mlelstv>.
2010-03-16 14:53:08 +00:00
mrg
ebc9e23316
various aprint_* fixes.
2010-03-11 03:54:56 +00:00
macallan
8eb1405f38
actually assign audio control command codes to the audio control keys
2010-01-14 02:18:59 +00:00
macallan
f3d037fec4
make this compile on sparc64
2009-11-25 21:10:56 +00:00
snj
febb7cce65
Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder).
2009-10-21 23:12:09 +00:00
tsutsui
fd194ac3e5
Include "ioconf.h" instead of extern struct cfdriver foo_cd decls.
2009-09-19 07:07:42 +00:00
tsutsui
a616b75df3
Split device_t/softc.
...
Tested on TME emulating SS2.
XXX: bwtwo at obmem on TME emulating sun2 didn't match and cannot test
2009-09-19 04:52:44 +00:00
tsutsui
853e246fe1
Split device_t/softc. Tested on SS1+.
...
XXX: sparc/dev/cgthree.c in Attic had an attachment for cgthree* at obio?
XXX: and sparc/conf/files.sparc still has an entry of nonexistent (or not yet)
XXX: sparc/dev/cgthree_obio.c. Is there any sun4m machine which requires it?
2009-09-18 16:43:19 +00:00
tsutsui
cf95004b5c
Remove an extra parenthesis in #ifdef'ed out part. PR kern/41858
2009-09-12 19:39:12 +00:00
macallan
aa3bbd8994
apparently the official name for the S24 is FBTYPE_TCXCOLOR
2009-08-26 22:34:50 +00:00
macallan
45727432a7
call vcons_replay_msgbuf() when appropriate
2009-08-20 02:49:30 +00:00
macallan
89669ce394
add FBTYPE_SUNTCX - forgot to commit that along with the tcx(8) update
...
found by he@
2009-08-15 11:33:49 +00:00
cegger
7cf2991222
struct device * -> device_t, no functional changes intended.
2009-05-12 14:38:26 +00:00
cegger
d16a259fe3
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 13:15:24 +00:00
tsutsui
d779b85d3e
Remove extra whitespace added by a stupid tool.
...
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger
e2cb85904d
bcopy -> memcpy
2009-03-18 17:06:41 +00:00
cegger
c363a9cb62
bzero -> memset
2009-03-18 16:00:08 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
dsl
7cc9af7d64
ANSIfy functions with function-pointer arguments
2009-03-16 23:11:09 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8
Change about 4500 of the K&R function definitions to ANSI ones.
...
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
jdc
7262e977ee
Mimic cgsix memory corruption fix (bwtwo and cgthree wscons code is
...
based on cgsix). Original commit message:
Include wsdisplay.h directly in the header to avoid different sizes
of cgsix_softc depending on proper previous includes by the includer
due to #ifdef NWSDISPLAY. Thanks to kmem poison check and DEBUG kernels.
2009-02-23 22:44:27 +00:00