Home | History | Annotate | Download | only in ee
History log of /src/sys/arch/playstation2/ee/gsfb.c
RevisionDateAuthorComments
 1.24  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.23  24-Apr-2021  thorpej branches: 1.23.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.22  08-Jul-2014  martin branches: 1.22.4; 1.22.44;
Split softc, fix wsfont_find call.
 1.21  31-Mar-2014  martin branches: 1.21.2;
Bring back the playstation2 port - now that a toolchain for it is
available again.
 1.20  05-Dec-2009  pooka branches: 1.20.10; 1.20.16;
Remove support for NetBSD/playstation2.
 1.19  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.18  28-Apr-2008  martin branches: 1.18.8; 1.18.14;
Remove clause 3 and 4 from TNF licenses
 1.17  04-Mar-2007  christos branches: 1.17.40; 1.17.42; 1.17.44;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.16  12-Apr-2006  jmmv branches: 1.16.14;
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
 1.15  04-Feb-2006  christos branches: 1.15.2; 1.15.4; 1.15.6;
PR/32730: Ed Shouten: setting WS_DEFAULT_[FB]G does not change colors entirely
 1.14  04-Feb-2006  martin Fix cursor size. From Ed Schouten in PR port-playstation2/32728.
 1.13  24-Dec-2005  perry branches: 1.13.2; 1.13.4; 1.13.6;
__asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
 1.12  17-Dec-2005  he Actually adapt to ktrace-lwp by converting the last arg to the ioctl()
function from a "struct proc *" to a "struct lwp *". Makes this build
again.
 1.11  11-Dec-2005  christos merge ktrace-lwp.
 1.10  10-Jul-2004  uch branches: 1.10.12;
gs_init(VESA_1A) hang up on SCPH-50000.
use bootloader's setting instead. (enable PCRTC only.)
 1.9  02-Nov-2003  shin fix return value of _gsfb_mmap().
 1.8  22-Oct-2003  he Fix two more instances of paddr_t vs. NULL (use 0 instead).
 1.7  15-Jul-2003  lukem __KERNEL_RCSID()
 1.6  02-Oct-2002  thorpej branches: 1.6.6;
Use CFATTACH_DECL().
 1.5  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4  04-Jul-2002  junyoung alloc_attr -> allocattr

Approved by Matthias Drochner.
 1.3  17-Mar-2002  atatat branches: 1.3.4;
Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command". ERESTART is -1, which can lead to
confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4. No ioctl code should now return -1 anywhere. The
ioctl() system call is now properly restartable.
 1.2  13-Mar-2002  ad Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
 1.1  16-Oct-2001  uch branches: 1.1.4; 1.1.6;
playstation2 port
 1.1.6.6  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.1.6.5  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.1.6.3  16-Mar-2002  jdolecek Catch up with -current.
 1.1.6.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.1.6.1  16-Oct-2001  thorpej file gsfb.c was added on branch kqueue on 2002-01-10 19:47:33 +0000
 1.1.4.4  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.3  01-Aug-2002  nathanw Catch up to -current.
 1.1.4.2  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.1  16-Oct-2001  nathanw file gsfb.c was added on branch nathanw_sa on 2002-04-01 07:41:51 +0000
 1.3.4.1  16-Jul-2002  gehenna catch up with -current.
 1.6.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.6.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.6.6.1  03-Aug-2004  skrll Sync with HEAD
 1.10.12.2  03-Sep-2007  yamt sync with head.
 1.10.12.1  21-Jun-2006  yamt sync with head.
 1.13.6.1  22-Apr-2006  simonb Sync with head.
 1.13.4.1  09-Sep-2006  rpaulo sync with head
 1.13.2.1  18-Feb-2006  yamt sync with head.
 1.15.6.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.15.4.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.15.2.1  24-May-2006  yamt sync with head.
 1.16.14.1  12-Mar-2007  rmind Sync with HEAD.
 1.17.44.3  11-Mar-2010  yamt sync with head
 1.17.44.2  04-May-2009  yamt sync with head.
 1.17.44.1  16-May-2008  yamt sync with head.
 1.17.42.1  18-May-2008  yamt sync with head.
 1.17.40.1  02-Jun-2008  mjf Sync with HEAD.
 1.18.14.2  24-Oct-2010  jym Sync with HEAD
 1.18.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.18.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.20.16.1  18-May-2014  rmind sync with head
 1.20.10.1  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.21.2.1  10-Aug-2014  tls Rebase.
 1.22.44.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.22.4.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.22.4.1  08-Jul-2014  tls file gsfb.c was added on branch tls-maxphys on 2014-08-20 00:03:18 +0000
 1.23.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed