History log of /src/sys/dev/pci/r128fb.c |
Revision | | Date | Author | Comments |
1.45 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
1.44 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.43 |
| 24-Apr-2021 |
thorpej | branches: 1.43.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.42 |
| 21-May-2020 |
macallan | branches: 1.42.4; prune unneeded includes
|
1.41 |
| 21-Jun-2017 |
macallan | allow font loading etc.
|
1.40 |
| 20-Jan-2017 |
maya | Check pmf_device_register return value. NFC Appeases static analyzers.
|
1.39 |
| 16-Sep-2015 |
macallan | branches: 1.39.2; 1.39.4; prop_dictionary_get_bool() doesn't return FALSE if the property doesn't exist, so initialize things first. No more console stealing on sparc64.
|
1.38 |
| 09-Oct-2013 |
macallan | branches: 1.38.6; support WSDISPLAYIO_GET_FBINFO
|
1.37 |
| 30-Jul-2013 |
macallan | avoid uninitialized use of defattr
|
1.36 |
| 04-Oct-2012 |
macallan | branches: 1.36.2; don't call allocattr() for the default attribute
|
1.35 |
| 23-May-2012 |
macallan | branches: 1.35.2; 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
|
1.34 |
| 19-Apr-2012 |
macallan | glyphcache_init() works much better with its parameters in the right order
|
1.33 |
| 19-Apr-2012 |
macallan | use rasops_get_cmap()
|
1.32 |
| 13-Mar-2012 |
elad | 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.
|
1.31 |
| 08-Mar-2012 |
macallan | when doing host blits, let the fifo drain every now and then. Apparently even a relatively slow CPU can overload a relatively fast Rage 128 in some circumstances. This cures weird artifacts seen when scrolling lots and lots of text very fast. Why this only showed up with glyph cacheing which should reduce the frequency of host blits isn't quite clear though.
|
1.30 |
| 16-Feb-2012 |
macallan | remove debug spam
|
1.29 |
| 16-Feb-2012 |
macallan | cache glyphs in video memory when using anti-aliased fonts on r128fb and radeonfb
|
1.28 |
| 30-Jan-2012 |
drochner | 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.
|
1.27 |
| 11-Jan-2012 |
macallan | use rasops_init(0, 0)
|
1.26 |
| 04-Jan-2012 |
macallan | use WSFONT_GLYPH()
|
1.25 |
| 04-Jan-2012 |
macallan | generate a better r3g3b2 colour map which actually produces white for 0xff
|
1.24 |
| 04-Jan-2012 |
macallan | split putchar into separate methods for bitmap and alpha fonts, use FONT_IS_ALPHA()
|
1.23 |
| 28-Dec-2011 |
macallan | support anti-aliased fonts in 8 bit r3g3b2 colour
|
1.22 |
| 29-Jun-2011 |
macallan | branches: 1.22.2; 1.22.6; support WSDISPLAYIO_GET_EDID
|
1.21 |
| 15-Feb-2011 |
macallan | don't muck with the LVDS_BLON bit
|
1.20 |
| 22-Jan-2011 |
cegger | 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@
|
1.19 |
| 06-Jan-2011 |
macallan | branches: 1.19.2; 1.19.4; clear the screen before redrawing on reentering text mode
|
1.18 |
| 25-Dec-2010 |
macallan | there is no R128_LITTLE_ENDIAN_EN flag, just lack of R128_HOST_BIG_ENDIAN_EN Someone(tm) needs to test this on little endian hw
|
1.17 |
| 16-Dec-2010 |
cegger | ioctl: KNF switch-case, remove useless brackets
|
1.16 |
| 15-Nov-2010 |
macallan | explicitly set and clear the backlight on bit, just in case someone messes with it while we're not looking
|
1.15 |
| 13-Nov-2010 |
uebayasi | 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.
|
1.14 |
| 07-Oct-2010 |
macallan | use WSDISPLAYIO_PARAM_BACKLIGHT as a switch and WSDISPLAYIO_PARAM_BRIGHTNESS for backlight level instead of following radeonfb TODO: adapt radeonfb and powerd scripts
|
1.13 |
| 30-Sep-2010 |
macallan | use the drawing engine to draw characters so we don't have to sync after each command and don't need to map the framebuffer anymore
|
1.12 |
| 14-Sep-2010 |
macallan | support backlight control via wsconsctl
|
1.11 |
| 09-Sep-2010 |
macallan | add backlight control via PMF TODO: support wsconsctl
|
1.10 |
| 01-Oct-2009 |
jmmv | branches: 1.10.2; 1.10.4; Recognize PCI_PRODUCT_ATI_RAGEGLPCI. Works on a PowerMac G3 B&W running NetBSD/macppc.
|
1.9 |
| 20-Aug-2009 |
macallan | use vcons_replay_msgbuf() when appropriate
|
1.8 |
| 06-May-2009 |
elad | Replace curlwp->l_cred with kauth_cred_get().
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
|
1.7 |
| 03-Jan-2009 |
yamt | branches: 1.7.2; remove extra semicolons.
|
1.6 |
| 25-Aug-2008 |
jmcneill | branches: 1.6.2; Match on Rage Mobility M3 (AGP)
|
1.5 |
| 30-May-2008 |
macallan | branches: 1.5.4; remove test for VGA subclass, also match PCI_PRODUCT_ATI_RAGE3AGP4XT this makes r128fb work on 2nd generation iMacs From Brett Slager
|
1.4 |
| 08-May-2008 |
macallan | nuke clause 3
|
1.3 |
| 27-Feb-2008 |
macallan | branches: 1.3.2; 1.3.4; 1.3.6; get rid of the last #ifdef macppc and use PCI_MAGIC_IO_RANGE to select at which offset we mmap PCI IO space
|
1.2 |
| 23-Nov-2007 |
macallan | branches: 1.2.10; 1.2.12; 1.2.16; make this compile on sparc64
|
1.1 |
| 07-Nov-2007 |
macallan | branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; add preliminary driver for ATI Rage 128 graphics controllers So far it supports some acceleration ( copies and rectangle fills ) but no video mode programming at all. Known problems: - tested only on macppc - matches only one r128 chip out of ca. 30 - character drawing is unaccelerated - no attempt is made to restore the console when X exits
|
1.1.8.3 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.1.8.2 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.1.8.1 |
| 07-Nov-2007 |
mjf | file r128fb.c was added on branch mjf-devfs on 2007-11-19 00:48:18 +0000
|
1.1.6.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.1.6.3 |
| 07-Dec-2007 |
yamt | sync with head
|
1.1.6.2 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.1.6.1 |
| 07-Nov-2007 |
yamt | file r128fb.c was added on branch yamt-lazymbuf on 2007-11-15 11:44:27 +0000
|
1.1.4.2 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.1.4.1 |
| 07-Nov-2007 |
bouyer | file r128fb.c was added on branch bouyer-xenamd64 on 2007-11-13 16:01:33 +0000
|
1.1.2.3 |
| 27-Nov-2007 |
joerg | Sync with HEAD. amd64 Xen support needs testing.
|
1.1.2.2 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.1.2.1 |
| 07-Nov-2007 |
joerg | file r128fb.c was added on branch jmcneill-pm on 2007-11-11 16:47:43 +0000
|
1.2.16.4 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.2.16.3 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.2.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.2.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.2.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.2.10.3 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.2.10.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.2.10.1 |
| 23-Nov-2007 |
matt | file r128fb.c was added on branch matt-armv6 on 2008-01-09 01:54:01 +0000
|
1.3.6.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.3.6.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.3.4.6 |
| 09-Oct-2010 |
yamt | sync with head
|
1.3.4.5 |
| 11-Mar-2010 |
yamt | sync with head
|
1.3.4.4 |
| 16-Sep-2009 |
yamt | sync with head
|
1.3.4.3 |
| 16-May-2009 |
yamt | sync with head
|
1.3.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.3.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.3.2.2 |
| 04-Jun-2008 |
yamt | sync with head
|
1.3.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.5.4.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.6.2.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.7.2.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.10.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.10.2.1 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.19.4.2 |
| 17-Feb-2011 |
bouyer | Sync with HEAD
|
1.19.4.1 |
| 08-Feb-2011 |
bouyer | Sync with HEAD
|
1.19.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.22.6.5 |
| 02-Jun-2012 |
mrg | sync to latest -current.
|
1.22.6.4 |
| 29-Apr-2012 |
mrg | sync to latest -current.
|
1.22.6.3 |
| 05-Apr-2012 |
mrg | sync to latest -current.
|
1.22.6.2 |
| 11-Mar-2012 |
mrg | sync to latest -current
|
1.22.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.22.2.4 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.22.2.3 |
| 30-Oct-2012 |
yamt | sync with head
|
1.22.2.2 |
| 23-May-2012 |
yamt | sync with head.
|
1.22.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.35.2.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.35.2.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.35.2.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.36.2.2 |
| 18-May-2014 |
rmind | sync with head
|
1.36.2.1 |
| 28-Aug-2013 |
rmind | sync with head
|
1.38.6.3 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.38.6.2 |
| 05-Feb-2017 |
skrll | Sync with HEAD
|
1.38.6.1 |
| 22-Sep-2015 |
skrll | Sync with HEAD
|
1.39.4.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.39.2.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.42.4.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.43.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|