summaryrefslogtreecommitdiff
path: root/sys/dev/sun/fb.c
AgeCommit message (Collapse)Author
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2016-04-21RASTERCONSOLE is gone, wsdisplay no longer optionalmacallan
2014-07-25Add d_discard to all struct cdevsw instances I could find.dholland
All have been set to "nodiscard"; some should get a real implementation.
2014-03-16Change (mostly mechanically) every cdevsw/bdevsw I can find to usedholland
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.
2010-03-11various aprint_* fixes.mrg
2009-03-18bzero -> memsetcegger
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
2009-03-14ANSIfy another 1261 function definitions.dsl
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-14Change about 4500 of the K&R function definitions to ANSI ones.dsl
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.)
2008-04-05use aprint_*_dev and device_xnamecegger
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2007-01-29Remove more duplicate headers.hubertf
Patch by Slava Semushin <slava.semushin@gmail.com> Again, this was tested by comparing obj files from a pristine and a patched source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs, src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers were detected in 'objdump -d' output.
2006-10-15Missing initializermartin
2006-03-28Use device_unit().thorpej
2005-12-11merge ktrace-lwp.christos
2005-10-08Fixes the following bug:macallan
Framebuffer drivers use their own minor device number to find their device entry in fbdriver methods ( like cgsix uses cgsix_cd[minor] ) but fb passed the fb device's unit number which works only as long as all registered fb devices use the same underlying driver. With different fb drivers, like a cgsix and an ffb, both will be (native) unit number 0 so with the old code /dev/fb1 would be unusable.
2005-06-24Attach multiple displays as fb0, fb1, ... so that X can use multiple headsjdc
via the /dev/fbn abstraction. Framebuffers are attached in probe order. However, the previous semantics are kept, so that the detected or forced console will always be fb0.
2005-02-04de-__Pperry
2004-03-19fb_is_console/SUN4U: fbnode => prom_stdout_node.pk
2004-03-17Rename PROM_getprop*() => prom_getprop*().pk
2004-03-17Update previous change: set defaults properly.pk
2004-03-16Use prom_getoption() and drop home-grown string-to-integer conversion code.pk
2003-08-25Undo previous as it broke things.uwe
There are some scattered implicit RASTERCONSOLE dependencies, so there should be a better way.
2003-08-24#include "opt_rcons.h"uwe
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-29More changes for providing lwpid for ktrace (sparc GENERIC built)darrenr
2002-10-23merge kqueue branch into -currentjdolecek
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2) based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-03Refactor kbd and mouse drivers so that they can use different middleuwe
layers. Common middle layer shared by kbd_zs and sunkbd is moved into the new file. Move shared config directives to files.sun and adjust ports' files.* accordingly. Need this to support console/Xsun on Mr.Coffee JavaStation. Tested on sparc, sparc64 (by martin) and sun3 (by jdc).
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
2002-03-22Changed some preprocessor tests for SUN4 to test for !SUN4Ufredette
instead. Now this file can be used by the sun2 port.
2001-11-13add RCSIDslukem
2001-11-12In fb_bell call kbd_docmd only #if NKBD > 0.uwe
This allows kernels without kbd at zs to be linked. (JavaStation-1 does not have zs, it uses pckbc instead)
2001-09-26getprop* -> PROM_getprop*eeh
2001-06-24Avoid unused variables if RASTERCONS_FULLSCREEN is defined. (see PR#13231)pk
2000-10-31fb_is_console(): we must match on the `fb' propery in a V0 PROMs root nodepk
only after establishing that the PROM output device is a frame buffer device.
2000-08-23Common framebuffer functions.pk
(currently includes a special cased fb_isconsole() for sun4u).