Commit Graph

29 Commits

Author SHA1 Message Date
macallan
b02971f219 use hardware rendering for anti-aliased fonts 2016-12-16 23:34:46 +00:00
macallan
b3e755bed0 prop_dictionary_get_bool() doesn't return FALSE if the property doesn't
exist, so initialize things first.
No more console stealing on sparc64.
2015-09-16 16:52:54 +00:00
macallan
082427dbb4 - add support for Permedia 2
- make this work on alpha
from Naruaki Etomi
2014-12-17 16:50:08 +00:00
macallan
be8edd4536 begin to address PR 49229:
- program aperture endianness to match host, now xf86-video-wsfb works as
  expected
- properly restore the colour map when er-entering terminal emulation
2014-12-09 07:42:50 +00:00
macallan
da28d6ec38 support WSDISPLAYIO_GET_FBINFO 2013-10-09 17:18:23 +00:00
martin
bf70aaf45d Remove/comment out unused variables, initialize a few others. 2013-09-15 09:34:07 +00:00
macallan
4453737ff6 avoid uninitialized use of defattr 2013-07-30 19:16:50 +00:00
christos
dfa91fc437 this could have never worked. Cleanup bogus code.
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html
2013-06-28 15:26:57 +00:00
macallan
80e004118d don't crash when we're not the console 2012-10-06 14:41:40 +00:00
macallan
b52a0c0509 support underlined characters
while there, make sure the glyph cache doesn't exceed 2048 lines since that's
the drawing engine's limit
2012-10-04 10:35:54 +00:00
macallan
442b3b690c make video modes work that need a screen width which isn't directly supported
by the rendering engine - just use the next higher supported stride
2012-09-13 21:12:40 +00:00
macallan
c79b785a15 add mode setting support
While there, don't pretend to support the Permedia2 non-V - I don't have the
hardware and it has never been tested in the first place. The only hardware
this has been tested on is a TechSource Raptor GFX 8P / Sun PGX32 which
happens to be a Permedia2V with Sun firmware.
2012-09-13 02:09:00 +00:00
macallan
12a603e5e8 support anti-aliased fonts in 8 bit
while there, fix pm2fb_bitblt() packed mode, for real this time
TODO:
- use packed mode when uploading glyphs
- let the hardware do the alpha blending if possible
- mode setting
2012-09-12 12:07:04 +00:00
macallan
30984d3da5 fix horizontal scrolling in 8bit, while there use an R3G3B2 palette 2012-09-05 23:19:13 +00:00
macallan
797d01de8d some preparations for mode setting support and such:
- DDC2 support, so far only used for WSDISPLAYIO_GET_EDID
- fix 8 bit support, use packed mode for some extra speed
- pm2 and pm2v have different DACs, deal with it where appropriate
2012-09-05 01:48:39 +00:00
macallan
f74f6c0c83 first step to fix PR 46461 - don't jump through a NULL pointer when we're
not the console but the firmware set up the graphics hardware anyway
2012-05-23 18:39:30 +00:00
elad
0c9d8d15c9 Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

    http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
    http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
    http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
2012-03-13 18:40:26 +00:00
drochner
d8e1a7b61a Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
2012-01-30 19:41:18 +00:00
macallan
1fa79ac882 use rasops_init(0, 0) 2012-01-11 15:53:32 +00:00
macallan
f7ccc3802e fix debug build 2011-11-24 05:57:17 +00:00
macallan
90333380d8 #include "opt_pm2fb.h" 2011-11-24 05:53:05 +00:00
macallan
8d84bf3645 support DDC2, so far only for WSDISPLAYIO_GET_EDID 2011-11-24 05:51:17 +00:00
cegger
e28cc170ed Implement new WSDISPLAYIO_GET_BUSID ioctl.
It returns the bus id and allows userland (like Xorg) to create mapping
of ttyE? and bus id. For now only PCI is implemented.

First discussed with macallan@ then public on tech-kern@ and tech-x11@
2011-01-22 15:14:27 +00:00
cegger
ca7fa2468a ioctl: KNF switch-case, remove useless brackets 2010-12-16 06:45:50 +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
9fae8e4448 use alternate font if available ( for autogenerated box drawing characters ) 2010-05-04 05:00:33 +00:00
macallan
28b428e5dc Implement character drawing by hardware so we don't need to map the framebuffer
anymore. Also do some cleanup, remove no longer relevant debugging code etc.
2010-03-16 21:27:02 +00:00
macallan
b37fcdb29c fix occasionally wrong colours in rectangle fills 2009-10-28 04:25:13 +00:00
macallan
91a682eb8a A driver for the Permedia 2 graphics processor, so far it's been tested only
on sparc64 with a Sun PGX32 / TechSource Raptor GFX 8P
So far it accelerates block copies, rectangle fills and the cursor, it
supports the usual wsdisplay / vcons stuff.
TODO:
- character drawing by hardware so we don't need to map the framebuffer
- DDC2 support
- mode setting
This driver still relies on the firmware to set up graphics modes etc. so it
won't work on x86 ( or non-OpenFirmware for that matter ) unless you use the
VESA BIOS to set up graphics and pass the right properties ( width, height
etc. ) to the driver. For the same reason it will work only if it's the
OpenFirmware console.
2009-10-28 02:10:27 +00:00