jmcneill
1338e788ee
Move softc definition to genfb_pcivar.h
2009-08-24 11:32:49 +00:00
jmcneill
8aa0a1bfb1
Expose genfb_restore_palette and allow MD code to specify PMF callbacks.
2009-08-24 11:03:44 +00:00
jmcneill
5198b6e109
Register NULL pmf handlers, and note that firmware & MD code is responsible
...
for restoring the display device.
2009-08-24 02:10:41 +00:00
cegger
b8169823d2
use device_private().
...
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
2009-05-12 08:22:59 +00:00
elad
105d9a093d
Replace curlwp->l_cred with kauth_cred_get().
...
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
2009-05-06 18:41:54 +00:00
cegger
a591bc88dd
struct device * -> device_t, no functional changes intended.
2009-05-06 10:34:32 +00:00
cegger
59717d7121
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-06 09:25:14 +00:00
jmcneill
72141a1696
Turn "bogus parameters" aprint_error into aprint_debug, and change the
...
message to say that the framebuffer was not configured by the firmware.
2009-02-23 23:45:56 +00:00
jmcneill
60c3292c48
Use aprint_*
2009-02-17 20:35:35 +00:00
jmcneill
e04f5ff1b4
Provide callbacks so MD code can explicitly prevent genfb from matching;
...
works around vga/genfb deathmatches.
2009-02-16 22:24:40 +00:00
jmcneill
ec798a6e6c
Introduce genfb_ops genfb_borrow callback to allow the bus frontend to
...
lend mappings to drm.
2009-02-15 18:41:49 +00:00
jmcneill
a71612a2f8
Provide a stub genfb_cnattach for md code to call to give a hint to the
...
bus driver's match function to return a higher confidence (so it can
beat out vga(4), for example). genfb needs-flag so md code can determine
if the genfb driver is present.
2009-02-14 20:33:58 +00:00
jmcneill
1a53395e7e
Change autoconf message 'direct rendering on dev unsupported' to
...
the more accurate 'drm at dev not configured'.
2008-05-05 11:42:45 +00:00
martin
3028e483e4
Convert to new 2 clause license
2008-04-29 06:53:00 +00:00
cegger
9d57c80079
use aprint_*_dev and device_xname
2008-04-10 19:13:36 +00:00
mrg
1ed6b6fc06
if genfb_pci can't map regs, don't panic() just return.
2008-04-01 01:11:55 +00:00
phx
7bca1efe39
Do not attach genfb when the frame buffer is not flagged as being console
...
(e.g. when a serial console is used).
Approved by macallan.
2008-03-09 20:32:30 +00:00
macallan
ee03e6b4fb
get rid of the last #ifdef macppc and use PCI_MAGIC_IO_RANGE to select
...
at which offset we mmap PCI IO space
2008-02-27 23:59:37 +00:00
macallan
48d017a9d1
only enable the fb mapping at offset 0 after attempting to mmap page 0
...
This way we avoid a conflict with PCI resources on some Sun graphics cards
which have firmware that likes to put memory resources at low addresses.
For instance, if we have 1MB framebuffer and registers at 0x30000 we'll
get the registers when mmap()ing 0x30000 until someone tries to mmap(0),
then we'll get framebuffer memory for the entire 1st MB.
This needs an ioctl() to switch between fb-at-0 and PCI ranges.
2007-12-21 05:32:09 +00:00
ad
976457d5d6
Back out previous.
2007-12-01 17:00:41 +00:00
ad
0136093bcb
Noisy printfs.
2007-12-01 16:54:28 +00:00
macallan
23cfff0893
various fixes and additions:
...
- deal with bogus parameters - just return instead of panic()ing
- try to attach a drm
- save and restore BARs in case X messes them up
2007-11-19 04:03:44 +00:00
macallan
13daabb045
move genfb's PCI frontend to dev/pci
2007-04-10 02:16:47 +00:00