Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/unichromefb.c
RevisionDateAuthorComments
 1.22  20-Dec-2023  thorpej Remove unnecessary <sys/malloc.h>.
 1.21  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.20  24-Apr-2021  thorpej branches: 1.20.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.19  25-Oct-2015  khorben branches: 1.19.34;
Remove references to SPLASHSCREEN_PROGRESS

To my knowledge this feature is no longer supported at the moment. The
manual page for wsdisplay(4) should probably also be updated to reflect
this situation.
 1.18  22-Jan-2011  cegger branches: 1.18.14; 1.18.32;
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.17  16-Dec-2010  cegger branches: 1.17.2; 1.17.4;
ioctl: KNF switch-case, remove useless brackets
 1.16  06-May-2009  cegger branches: 1.16.4;
struct device * -> device_t, no functional changes intended.
 1.15  06-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.14  05-May-2008  jmcneill branches: 1.14.14;
Change autoconf message 'direct rendering on dev unsupported' to
the more accurate 'drm at dev not configured'.
 1.13  05-May-2008  jmcneill Use 2-clause license.
 1.12  27-Mar-2008  jmcneill branches: 1.12.2; 1.12.4;
Split device_t and softc, aprintify
 1.11  12-Mar-2008  phx Make console drivers support PCI_IOC_CFGREAD/WRITE ioctls. This is useful for
XFree86, which can alternatively find the graphics card through /dev/ttyE0.
Approved by macallan.
 1.10  01-Dec-2007  ad branches: 1.10.10; 1.10.14;
Back out previous.
 1.9  01-Dec-2007  ad Noisy printfs.
 1.8  19-Oct-2007  ad branches: 1.8.2;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.7  23-Mar-2007  jmcneill branches: 1.7.8; 1.7.10; 1.7.14;
Make unichromefb(4) peacefully co-exist with viadrm(4).

Basically, when we switch from WSDISPLAYIO_MODE_EMUL to anything else, we
release any bus_space resources. When we return to WSDISPLAYIO_MODE_EMUL,
reclaim these resources and reinitialize the display.

Idea from macallan@
 1.6  04-Mar-2007  christos branches: 1.6.2; 1.6.4; 1.6.6;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.5  12-Jan-2007  ober branches: 1.5.2;
Update to compile properly.
OK jmcneill
 1.4  13-Aug-2006  jmcneill branches: 1.4.2; 1.4.4; 1.4.8; 1.4.10; 1.4.12;
Reclaim resources from an initial vga console on attach.
 1.3  13-Aug-2006  jmcneill Add accelerated putchar and cursor ops. Also fix a bug in copyrows that
caused scrolling down to always fail.
 1.2  13-Aug-2006  jmcneill Add acceleration support for the VIA UniChrome driver. While here, fix a
bug that caused the screen to be filled with annoying vertical lines.
 1.1  02-Aug-2006  jmcneill branches: 1.1.2; 1.1.4;
Add work-in-progress framebuffer console driver for the VIA UniChrome
integrated graphics family.
 1.1.4.3  03-Sep-2006  yamt sync with head.
 1.1.4.2  11-Aug-2006  yamt sync with head
 1.1.4.1  02-Aug-2006  yamt file unichromefb.c was added on branch yamt-pdpolicy on 2006-08-11 15:44:26 +0000
 1.1.2.1  15-Aug-2006  ghen Pull up following revision(s) (requested by jmcneill in ticket #19):
sys/dev/pci/unichromefb.c: revision 1.2
Add acceleration support for the VIA UniChrome driver. While here, fix a
bug that caused the screen to be filled with annoying vertical lines.
 1.4.12.1  03-Sep-2007  wrstuden Sync w/ NetBSD-4-RC_1
 1.4.10.6  17-Mar-2008  yamt sync with head.
 1.4.10.5  27-Oct-2007  yamt sync with head.
 1.4.10.4  03-Sep-2007  yamt sync with head.
 1.4.10.3  26-Feb-2007  yamt sync with head.
 1.4.10.2  30-Dec-2006  yamt sync with head.
 1.4.10.1  13-Aug-2006  yamt file unichromefb.c was added on branch yamt-lazymbuf on 2006-12-30 20:48:48 +0000
 1.4.8.1  21-Jun-2007  liamjfoy Pull up following revision(s) (requested by sborrill in ticket #737):
sys/dev/pci/unichromefb.c: revision 1.5
Update to compile properly.
OK jmcneill
 1.4.4.2  09-Sep-2006  rpaulo sync with head
 1.4.4.1  13-Aug-2006  rpaulo file unichromefb.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:52:19 +0000
 1.4.2.1  01-Feb-2007  ad Sync with head.
 1.5.2.2  24-Mar-2007  yamt sync with head.
 1.5.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.6.6.1  29-Mar-2007  reinoud Pullup to -current
 1.6.4.1  11-Jul-2007  mjf Sync with head.
 1.6.2.2  23-Oct-2007  ad Sync with head.
 1.6.2.1  10-Apr-2007  ad Sync with head.
 1.7.14.1  25-Oct-2007  bouyer Sync with HEAD.
 1.7.10.2  23-Mar-2008  matt sync with HEAD
 1.7.10.1  06-Nov-2007  matt sync with HEAD
 1.7.8.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.8.2.1  08-Dec-2007  mjf Sync with HEAD.
 1.10.14.2  02-Jun-2008  mjf Sync with HEAD.
 1.10.14.1  03-Apr-2008  mjf Sync with HEAD.
 1.10.10.1  24-Mar-2008  keiichi sync with head.
 1.12.4.2  16-May-2009  yamt sync with head
 1.12.4.1  16-May-2008  yamt sync with head.
 1.12.2.1  18-May-2008  yamt sync with head.
 1.14.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.16.4.1  05-Mar-2011  rmind sync with head
 1.17.4.1  08-Feb-2011  bouyer Sync with HEAD
 1.17.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.18.32.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.18.14.1  03-Dec-2017  jdolecek update from HEAD
 1.19.34.3  24-Apr-2021  thorpej Make sure to explcitly specify the "wsemuldisplaydev" interface attribute
when attaching the wscons display instance, because these devices can
also attach children using the "drm" interface attribute.
 1.19.34.2  02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.19.34.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.20.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed