Home | History | Annotate | Download | only in sbus
History log of /src/sys/dev/sbus/agten.c
RevisionDateAuthorComments
 1.34  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.33  24-Apr-2021  thorpej branches: 1.33.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.32  19-Oct-2013  mrg branches: 1.32.46;
- remove set but unused variable.
- put variables only inside #ifdef inside that same #ifdef.
use __USE() where appropriate.
 1.31  30-Jul-2013  macallan avoid uninitialized use of defattr
 1.30  23-Oct-2012  macallan branches: 1.30.2;
support anti-aliased fonts
 1.29  20-Oct-2012  macallan - only sync the drawing engine when we're about to access video memory
- use the blitter to draw the cursor
- use the glyphcache to minimize vram access
-> about 15% to 20% speedup
 1.28  11-Jan-2012  macallan branches: 1.28.6;
use rasops_init(0, 0)
 1.27  15-Nov-2010  uebayasi branches: 1.27.8; 1.27.12;
This doesn't use uvm(9) API.
 1.26  14-Nov-2010  uebayasi Include uvm/uvm_extern.h to access uvmexp. gtmpsc.c doesn't need
uvm(9) API at all.
 1.25  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.24  29-Jan-2010  macallan branches: 1.24.4;
avoid using PAGE_SIZE directly so sparc/GENERIC builds again
 1.23  27-Jan-2010  macallan round the space we bus_space_map() up to PAGE_SIZE alignment
 1.22  17-Sep-2009  tsutsui Include "ioconf.h" instead of extern struct cfdriver foo_cd decls.
 1.21  17-Sep-2009  tsutsui Remove struct sbusdev and related functions sbus_establish() and sbusreset().
They are derived from 4.4BSD/sparc and have been there since initial import
of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years,
nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.

Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
 1.20  20-Aug-2009  macallan call vcons_replay_msgbuf() if we're the console
 1.19  26-May-2009  macallan use BUS_SPACE_MAP_LARGE
 1.18  12-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.17  16-Apr-2009  macallan use sparc_bus_map_large() to map the I128 framebuffer
 1.16  12-Dec-2008  macallan branches: 1.16.2;
fix stride value returned by /dev/fb
 1.15  12-Jun-2008  cegger branches: 1.15.4;
use device_lookup_private to get softc
 1.14  17-May-2008  macallan branches: 1.14.2;
unbork previous by actually using CFATTACH_DECL_NEW(). Doh.
 1.13  17-May-2008  macallan magic number reduction - no functional change
 1.12  17-May-2008  macallan don't map more video memory than we really need
 1.11  16-May-2008  macallan struct device * -> device_t
 1.10  29-Apr-2008  martin branches: 1.10.2;
Convert to new 2 clause license
 1.9  05-Apr-2008  cegger branches: 1.9.2; 1.9.4;
use aprint_*_dev and device_xname
 1.8  19-Oct-2007  ad branches: 1.8.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.7  11-Sep-2007  macallan branches: 1.7.4; 1.7.6;
clean up a little bit, while there let userland mmap the whole glint video
memory.
Note: this needs changes in the XF86 driver committed a few minutes ago.
 1.6  01-Sep-2007  macallan branches: 1.6.2; 1.6.4; 1.6.6;
add screen blanking support
 1.5  30-Aug-2007  macallan attach a /dev/fb* so X can talk to the board
 1.4  28-Aug-2007  macallan add hardware cursor support
 1.3  27-Aug-2007  macallan branches: 1.3.2;
let userland mmap() the GLint framebuffer and make it visible when switching
to WSDISPLAYIO_MODE_MAPPED - so X with wsfb can run in 24bit colour
 1.2  26-Aug-2007  macallan cleanup, fix some typos
 1.1  26-Aug-2007  macallan add a driver for Fujitsu AG-10e graphics boards
Features so far:
- use the blitter for scrolling and solid fills
- the usual wscons stuff, virtual consoles etc.
Things missing:
- /dev/fb* support
- XFree86 support although wsfb in 8bit should work
- hardware cursor support for X
- character drawing in hardware so we can run the blitter completely
asynchronous
 1.3.2.1  06-Nov-2007  matt sync with HEAD
 1.6.6.4  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.6.6.3  02-Oct-2007  joerg Sync with HEAD.
 1.6.6.2  03-Sep-2007  jmcneill Sync with HEAD.
 1.6.6.1  01-Sep-2007  jmcneill file agten.c was added on branch jmcneill-pm on 2007-09-03 16:48:37 +0000
 1.6.4.3  27-Oct-2007  yamt sync with head.
 1.6.4.2  03-Sep-2007  yamt sync with head.
 1.6.4.1  01-Sep-2007  yamt file agten.c was added on branch yamt-lazymbuf on 2007-09-03 14:38:26 +0000
 1.6.2.2  03-Sep-2007  skrll Sync with HEAD.
 1.6.2.1  01-Sep-2007  skrll file agten.c was added on branch nick-csl-alignment on 2007-09-03 10:21:58 +0000
 1.7.6.1  25-Oct-2007  bouyer Sync with HEAD.
 1.7.4.3  23-Oct-2007  ad Sync with head.
 1.7.4.2  09-Oct-2007  ad Sync with head.
 1.7.4.1  11-Sep-2007  ad file agten.c was added on branch vmlocking on 2007-10-09 13:42:03 +0000
 1.8.16.3  17-Jan-2009  mjf Sync with HEAD.
 1.8.16.2  29-Jun-2008  mjf Sync with HEAD.
 1.8.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.9.4.6  11-Mar-2010  yamt sync with head
 1.9.4.5  16-Sep-2009  yamt sync with head
 1.9.4.4  20-Jun-2009  yamt sync with head
 1.9.4.3  16-May-2009  yamt sync with head
 1.9.4.2  04-May-2009  yamt sync with head.
 1.9.4.1  16-May-2008  yamt sync with head.
 1.9.2.2  17-Jun-2008  yamt sync with head.
 1.9.2.1  18-May-2008  yamt sync with head.
 1.10.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.14.2.1  18-Jun-2008  simonb Sync with head.
 1.15.4.2  28-Apr-2009  skrll Sync with HEAD.
 1.15.4.1  19-Jan-2009  skrll Sync with HEAD.
 1.16.2.2  23-Jul-2009  jym Sync with HEAD.
 1.16.2.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.24.4.1  05-Mar-2011  rmind sync with head
 1.27.12.1  18-Feb-2012  mrg merge to -current.
 1.27.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.27.8.2  30-Oct-2012  yamt sync with head
 1.27.8.1  17-Apr-2012  yamt sync with head
 1.28.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.28.6.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.30.2.2  18-May-2014  rmind sync with head
 1.30.2.1  28-Aug-2013  rmind sync with head
 1.32.46.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.33.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed