Home | History | Annotate | Download | only in vsa
History log of /src/sys/arch/vax/vsa/spx.c
RevisionDateAuthorComments
 1.13  09-Mar-2025  hans vax/spx(4): fix a few X11-related bugs

- overwriting of saved screen pointer of emulation mode when switching
the framebuffer mode from mapped to dumb or vice-versa
- leaving the cursor on when switching away from emulation mode
- failure to restore the screen when changing back to emulation mode
because the saved screen pointer has been set to NULL
- panic on next VT switch, because now also the current screen pointer
is NULL
 1.12  07-Aug-2021  thorpej branches: 1.12.6; 1.12.12;
Merge thorpej-cfargs2.
 1.11  24-Apr-2021  thorpej branches: 1.11.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.10  21-Nov-2020  thorpej branches: 1.10.2;
malloc(9) -> kmem(9)
 1.9  07-Jul-2016  msaitoh branches: 1.9.30;
KNF. Remove extra spaces. No functional change.
 1.8  28-Mar-2014  ozaki-r branches: 1.8.6;
Use snprintf instead of sprintf
 1.7  24-Oct-2013  martin Mark a potentially unused variable
 1.6  14-May-2012  abs branches: 1.6.2; 1.6.4;
From the "why was this not done before" box:
Implement WSDISPLAYIO_LINEBYTES so xwsfb works
 1.5  11-Jan-2012  macallan branches: 1.5.2;
adjust for wsfont_find() change
 1.4  14-Dec-2010  matt branches: 1.4.8; 1.4.12;
Cleanup includes. Switch from <machine/XXX.h> to <sys/XXX.h> from
bus, cpu, and intr. Remove unneeded includes.
 1.3  09-May-2010  hans Make SPX work as console device on VAXstation 4000/9x.
 1.2  18-Mar-2009  cegger branches: 1.2.2; 1.2.4; 1.2.6;
bzero -> memset
 1.1  12-Aug-2008  hans branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10; 1.1.14;
Add new accelerated driver for SPX graphics found in some VAXstations,
remove old broken lcspx driver. This is a bugfixed and refactored
version of the spx driver originally developed by Blaz Antonic in 2005.
OK'ed by mhitch.
 1.1.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.10.1  21-Nov-2010  riz Pull up following revision(s) (requested by hans in ticket #1459):
sys/arch/vax/vsa/dz_vsbus.c: revision 1.41
sys/dev/dec/dz.c: revision 1.39
sys/arch/vax/vsa/spx.c: revision 1.3
Make SPX work as console device on VAXstation 4000/9x.
Make console keyboard work on VAXstation 4000/9x. Seems not to break
anything on other VAXstations (tested on 4000 VLC).
The interrupt handler uses the softc, so it's probably a good idea to
initialize it before causing interrupts. Prevents a panic on VAXstation
4000/9x with SPX console.
 1.1.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.1.6.2  19-Oct-2008  haad Sync with HEAD.
 1.1.6.1  12-Aug-2008  haad file spx.c was added on branch haad-dm on 2008-10-19 22:16:07 +0000
 1.1.4.2  28-Sep-2008  mjf Sync with HEAD.
 1.1.4.1  12-Aug-2008  mjf file spx.c was added on branch mjf-devfs2 on 2008-09-28 10:40:11 +0000
 1.1.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.1.2.1  12-Aug-2008  wrstuden file spx.c was added on branch wrstuden-revivesa on 2008-09-18 04:33:36 +0000
 1.2.6.2  05-Mar-2011  rmind sync with head
 1.2.6.1  30-May-2010  rmind sync with head
 1.2.4.1  17-Aug-2010  uebayasi Sync with HEAD.
 1.2.2.3  11-Aug-2010  yamt sync with head.
 1.2.2.2  04-May-2009  yamt sync with head.
 1.2.2.1  18-Mar-2009  yamt file spx.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:05 +0000
 1.4.12.2  02-Jun-2012  mrg sync to latest -current.
 1.4.12.1  18-Feb-2012  mrg merge to -current.
 1.4.8.3  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.4.8.2  23-May-2012  yamt sync with head.
 1.4.8.1  17-Apr-2012  yamt sync with head
 1.5.2.1  11-Jun-2012  riz Pull up following revision(s) (requested by abs in ticket #299):
sys/arch/vax/vsa/spx.c: revision 1.6
From the "why was this not done before" box:
Implement WSDISPLAYIO_LINEBYTES so xwsfb works
 1.6.4.1  18-May-2014  rmind sync with head
 1.6.2.2  03-Dec-2017  jdolecek update from HEAD
 1.6.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.8.6.1  09-Jul-2016  skrll Sync with HEAD
 1.9.30.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.10.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.11.8.1  04-Aug-2021  thorpej Adapt to CFARGS().
 1.12.12.1  02-Aug-2025  perseant Sync with HEAD
 1.12.6.1  04-Apr-2025  martin Pull up following revision(s) (requested by hans in ticket #1087):

sys/arch/vax/vsa/spx.c: revision 1.13

vax/spx(4): fix a few X11-related bugs
- overwriting of saved screen pointer of emulation mode when switching
the framebuffer mode from mapped to dumb or vice-versa
- leaving the cursor on when switching away from emulation mode
- failure to restore the screen when changing back to emulation mode
because the saved screen pointer has been set to NULL
- panic on next VT switch, because now also the current screen pointer
is NULL

RSS XML Feed