martin
4908bc3fd9
PR port-sparc64/52622: mark the parent device as TS_KERN_ONLY,
...
so userland will not touch it (and change serial params w/o our
controll).
2017-10-31 10:46:47 +00:00
maya
18b796d442
Use C99 initializer for filterops
...
Mostly done with spatch with touchups for indentation
@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- { a, b, c, d
+ {
+ .f_isfd = a,
+ .f_attach = b,
+ .f_detach = c,
+ .f_event = d,
};
2017-10-25 08:12:37 +00:00
martin
b9dbf5bad7
Disks without a disk label happen in normal operation (both as USB
...
stick or with GPT), so do not cause an error message when opening
them.
2017-02-26 09:49:40 +00:00
macallan
695edcefa4
- use bus_space_mmap()
...
- pass the right colour depth in ioctl()
should fix PR49639
2016-11-09 19:54:25 +00:00
macallan
139ddb03dc
add FBTYPE_MGX
2016-05-07 15:28:57 +00:00
macallan
6cb3d5c739
RASTERCONSOLE is gone, wsdisplay no longer optional
2016-04-21 18:06:06 +00:00
macallan
34337aa92f
return correct parameters in ioctl(WSDISPLAYIO_GINFO), from lausgans
...
while there, support WSDISPLAYIO_GET_FBINFO
2016-04-13 17:26:08 +00:00
christos
b2e2b58c68
avoid conflicts with our own ioctls
2015-09-26 03:31:52 +00:00
dholland
1fbab01a93
More on PR 41200: headers that declare ioctls should include sys/ioccom.h.
...
This covers (I think) all the MI headers outside of external/ (and dist/).
2015-09-06 06:00:59 +00:00
dholland
f9228f4225
Add d_discard to all struct cdevsw instances I could find.
...
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
dholland
a68f9396b6
Change (mostly mechanically) every cdevsw/bdevsw I can find to use
...
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
joerg
270ca8fe9d
Call memset in a loop, not loop around doing nothing and calling memset
...
once.
2014-02-20 02:09:28 +00:00
macallan
5aec4c7ca3
- don't use defattr before it actually contains something useful
...
- clear the screen only once, when we know what colour to use
- set up the colour map only once, when we know which one to use
-> no more funky colour flashing while cgsix attaches on my U1
2013-12-03 17:01:04 +00:00
jdc
bfacdd22be
Only write to the framebuffer memory 32 bits at a time. If we try to write
...
larger amounts, we will generate SER_WRITE|SER_SZERR with P4 framebuffers.
(Writing 64 bits at a time is the default with memset().)
Also, set the default attributes to zero to avoid vertical stripes from
uninitialised defattr.
XXX; screen is still not cleared of old text.
2013-12-02 15:54:06 +00:00
christos
c812541471
remove unused
2013-11-07 02:38:07 +00:00
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