Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/gffb.c
RevisionDateAuthorComments
 1.29  14-Oct-2025  macallan support hardware rendering for mono fonts
 1.28  06-Oct-2025  macallan add backlight control for FX 5200 Go
 1.27  30-Aug-2025  macallan add backlight control
 1.26  30-Aug-2025  macallan put some RAMDAC initialization back, use 8bit writes this time
 1.25  29-Aug-2025  macallan support acceleration on nv3x, aka GeForce FX 5200U and FX Go 5200
 1.24  22-Jul-2025  macallan enable font loading
 1.23  21-Jul-2025  macallan match GeForce FX 5200 Ultra
 1.22  25-Sep-2022  thorpej branches: 1.22.10;
Remove unnecessary include of <sys/malloc.h>.
 1.21  15-Aug-2022  macallan nuke pasto in gffb_init()
 1.20  10-Mar-2022  andvar s/woud/would/ in comment.
 1.19  10-Mar-2022  riastradh gffb(4): Nix membar_sync and explain what's going on here.
 1.18  10-Mar-2022  riastradh gffb(4): Use bus_space_barrier, not membar_sync.
 1.17  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.16  24-Apr-2021  thorpej branches: 1.16.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.15  25-Feb-2021  macallan branches: 1.15.2;
match Geforce FX5200 Go found in some iMac G5 models
 1.14  21-May-2020  macallan branches: 1.14.2;
prune unneeded includes
 1.13  26-Jul-2018  macallan first step to support chips newer than geforce 2MX
 1.12  20-Jan-2017  maya branches: 1.12.12; 1.12.14;
Check pmf_device_register return value. NFC
Appeases static analyzers.
 1.11  11-Jul-2016  msaitoh branches: 1.11.2; 1.11.4;
KNF. No functional change.
 1.10  16-Sep-2015  macallan 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.9  29-Jun-2014  tsutsui branches: 1.9.4; 1.9.6;
Appease a printf format warning on LP64 machines.
 1.8  14-Mar-2014  mrg branches: 1.8.2; 1.8.4; 1.8.6;
remove various set-but-unused variables.
 1.7  23-Oct-2013  macallan fix copyright year
 1.6  23-Oct-2013  macallan minor cleanup:
- don't map more PCI space than we have video memory
- clarify some comments
 1.5  09-Oct-2013  macallan support WSDISPLAYIO_GET_FBINFO
 1.4  09-Oct-2013  macallan some cleanup:
- use macros to shorten a while lot of bus_space_write_4() lines
- update some comments
- remove debug goop and cargo culted leftovers
 1.3  09-Oct-2013  macallan add hardware acceleration
For now this supports only GeForce2 MX cards but most NV1x chips should work
once their PCI iDs are added to gffb_match()
Tested only on macppc.
 1.2  02-Oct-2013  macallan one step closer to graphics acceleration:
- probe and report actual amount of video memory
- add DMA machinery to feed commands to the graphics processor
- adapt a whole bunch of magic number initialization from xf86-video-nv, now
the chip actually reads commands from a buffer in video memory
 1.1  18-Sep-2013  macallan a preliminary driver for nvidia geforce graphics chips
so far it only supports the GeForce 2MX, tested on macppc only
no acceleration yet, just some DAC setup
the main advantage over genfb is that this driver knows how to setup the
palette registers for the 2nd output
 1.8.6.2  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.8.6.1  14-Mar-2014  yamt file gffb.c was added on branch yamt-pagecache on 2014-05-22 11:40:24 +0000
 1.8.4.2  18-May-2014  rmind sync with head
 1.8.4.1  14-Mar-2014  rmind file gffb.c was added on branch rmind-smpnet on 2014-05-18 17:45:39 +0000
 1.8.2.1  10-Aug-2014  tls Rebase.
 1.9.6.3  05-Feb-2017  skrll Sync with HEAD
 1.9.6.2  05-Oct-2016  skrll Sync with HEAD
 1.9.6.1  22-Sep-2015  skrll Sync with HEAD
 1.9.4.3  03-Dec-2017  jdolecek update from HEAD
 1.9.4.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.4.1  29-Jun-2014  tls file gffb.c was added on branch tls-maxphys on 2014-08-20 00:03:42 +0000
 1.11.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.11.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.12.14.1  10-Jun-2019  christos Sync with HEAD
 1.12.12.1  28-Jul-2018  pgoyette Sync with HEAD
 1.14.2.1  03-Apr-2021  thorpej Sync with HEAD.
 1.15.2.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.16.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.22.10.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed