Commit Graph

44 Commits

Author SHA1 Message Date
dyoung b6584574fc #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:41:51 +00:00
christos 817999e9d9 CFATTACH_DECL_NEW 2011-06-03 03:20:39 +00:00
macallan 7c67af7a5b remove obsolete comment - putchar() does in fact use the blitter now 2011-05-19 04:43:45 +00:00
jdc 8902e570be Alter the sync-on-green and composite-sync settings:
if the monitor doesn't support composite sync, enable sync-on-green

  then, if the monitor supports separate sync, disable composite vsync

(Prompted by macallan@.)
2011-05-09 09:06:28 +00:00
martin 2886b9e634 Remove some leftovers 2011-04-20 09:57:59 +00:00
jdc 342707d5db Add EDID and video mode setting support to FFB.
Add definitions for registers related to video modes, and to DDC.  Rename
other registers to be more descriptive.
Add i2c bus routines to read the EDID data via DDC.
Add routines to calculate, and to set, the video mode.

Note, that interlaced and stereo video modes are not supported.

Thanks to Michael Lorenz and Jared McNeill for advice and encouragement,
and to Martin Husemann for testing.
2011-04-09 19:31:14 +00:00
macallan 9912ffbb92 * implement hw acceleration for putchar()
* use VCONS for copycols()
* don't map the framebuffer now that we don't access it anymore
* make a bunch of drawing engine syncs optional
2010-09-21 03:31:04 +00:00
macallan 45727432a7 call vcons_replay_msgbuf() when appropriate 2009-08-20 02:49:30 +00:00
macallan cfce4b5539 make this work right with WSDISPLAY_SCROLLSUPPORT 2008-11-16 05:10:46 +00:00
martin d38a14761e use device_private() to get the softc 2008-08-28 19:17:55 +00:00
cegger 2dea63fe78 use device_lookup_private to get softc 2008-06-13 13:08:57 +00:00
cegger 09275ba76d use aprint_*_dev and device_xname
OK martin
2008-04-05 13:40:05 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
martin 9384ee0db9 Missing initializer 2006-10-15 19:53:27 +00:00
martin 02fbfe2681 Vcons-ify the ffb driver, from macallan.
Also adds some redrawing when entering DDB.
2006-09-14 16:05:18 +00:00
martin df850dc70e Remove accidently commited debug printf when unblanking, and actually
do the unblank instead.
2006-09-07 08:39:37 +00:00
martin 2dfd1d809c Fix wrong prom_getoption() return value checks 2006-08-18 11:17:25 +00:00
martin 1a8d6cd53d Initialize the "console screen" once - no matter if we are console or
not.
2006-07-04 18:14:44 +00:00
jmmv aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
macallan a6d03d30a7 make this compile again 2006-04-12 20:22:00 +00:00
jmmv 7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
thorpej 2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
cdi 1a509d615a ANSIfy: u_intN_t -> uintN_t, remove __P(), fix function definitions. 2006-02-13 21:47:11 +00:00
christos 948731b924 more proc -> lwp conversions. 2005-12-12 02:44:31 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
jdc 93bdac459d Only set up the console screen on the console ffb.
Fixes bug where ttyE0 ends up on the 2nd ffb.
Based on dev/sun/cgsix.c:r1.27 (from macallan@).
2005-07-04 22:18:37 +00:00
macallan 2ab2c90883 fixed a stupid typo that chained copycols to itself 2005-05-31 17:33:02 +00:00
macallan e149dd92ec added missing ffb_ras_wait() 2005-05-31 14:36:17 +00:00
macallan d2c9943bdd added support for virtual consoles 2005-05-31 02:48:37 +00:00
christos 1a18f24f3c - sprinkle const
- avoid variable shadow
2005-05-31 00:50:28 +00:00
macallan 588c5238ba fixed a bug in ffbfb_mmap to make XFree's sunffb driver work, added another
special case region for afbinit
2005-05-27 22:50:43 +00:00
martin de0502e591 Just ignore (and don't fail) FBIO{S,G}CURSOR. 2005-05-15 16:41:25 +00:00
mhitch 9277bf836b Fill in fb_depth, fb_width, and fb_height in the fb_type info. XFree86 works
better now.
2005-05-13 06:33:32 +00:00
martin 21d2a323b7 Make ffb take part in the /dev/fbN circus. 2005-05-04 14:38:44 +00:00
martin b49b573121 Use ansi function header style consistently. 2005-05-04 06:38:06 +00:00
martin 82a05c7f12 Avoid returning -1 from ffb_ioctl() - we want EPASSTHROUGH or EIO. 2005-04-29 08:38:33 +00:00
heas 420275788e Collect and save the FFB DAC version, which will be needed for the h/w cursor
since the Elite3d's logic is reversed.  From FreeBSD.
Fix comments in wsdisplay_accessops initialisation.
2004-07-19 01:04:35 +00:00
heas a60b59cc89 Map the ffb's DAC register space and add support for video "blanking"
(aka WSDISPLAYIO_{S,G}VIDEO).
2004-05-21 21:45:04 +00:00
heas de28b23591 ffb wsdisplay type should be sunffb/SUNFFB 2004-05-21 19:21:31 +00:00
pk ea53363e84 Rename PROM_getprop*() => prom_getprop*(). 2004-03-17 17:04:58 +00:00
pk 6c325ce299 ffb_attach: Use prom_getoption() and drop home-grown string-to-integer
conversion code.
2004-03-17 13:58:14 +00:00
lukem ed51729135 __KERNEL_RCSID() 2003-07-15 02:54:31 +00:00
petrov 175f7ab29d Comment out debug output. 2003-06-11 22:50:12 +00:00
petrov 49f3f8ccaf Port of OpenBSD ffb driver written by Jason L. Wright. 2003-05-23 06:51:15 +00:00