Home | History | Annotate | Download | only in ic
History log of /src/sys/dev/ic/ct65550.c
RevisionDateAuthorComments
 1.15  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.14  24-Apr-2021  thorpej branches: 1.14.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.13  03-Feb-2017  macallan branches: 1.13.30;
some bugs in chipsfb_putchar_aa():
- fix 64bit padding for scanlines
- clean out latch for every scanline
now fonts with odd widths look right
 1.12  02-Feb-2017  macallan support anti-aliased fonts, glyphcache etc.
 1.11  26-Aug-2016  macallan branches: 1.11.2;
fix a bunch of bugs & tpyos in chipsfb_mmap() so wsfb can actually work
 1.10  04-Jan-2014  macallan branches: 1.10.6; 1.10.10;
__unuse the right function
( note to self - don't commit half asleep )
 1.9  03-Jan-2014  macallan do as joerg requested and mark an unused function __unused
 1.8  09-Oct-2013  macallan support WSDISPLAYIO_GET_FBINFO
 1.7  30-Jul-2013  macallan avoid uninitialized use of defattr
 1.6  22-Aug-2012  macallan branches: 1.6.2; 1.6.4;
- use R3G3B2 palette
- don't muck around in config registers that don't really concern us
 1.5  23-May-2012  macallan first step to fix PR 46461 - don't jump through a NULL pointer when we're
not the console but the firmware set up the graphics hardware anyway
 1.4  13-Mar-2012  elad Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.

Most of these changes were brought up in the following messages:

http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html

Thanks to christos, manu, njoly, and jmmv for input.

Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
 1.3  11-Jan-2012  macallan use rasops_init(0, 0)
 1.2  23-Mar-2011  macallan branches: 1.2.4; 1.2.6; 1.2.10;
complete the driver/bus frontend split and make sure the driver can deal with
both PCI and VLB variants of the chip
 1.1  09-Feb-2011  macallan branches: 1.1.2; 1.1.4;
split out the bus-independent portions of chipsfb
 1.1.4.3  21-Apr-2011  rmind sync with head
 1.1.4.2  05-Mar-2011  rmind sync with head
 1.1.4.1  09-Feb-2011  rmind file ct65550.c was added on branch rmind-uvmplock on 2011-03-05 20:53:14 +0000
 1.1.2.2  17-Feb-2011  bouyer Sync with HEAD
 1.1.2.1  09-Feb-2011  bouyer file ct65550.c was added on branch bouyer-quota2 on 2011-02-17 12:00:12 +0000
 1.2.10.3  02-Jun-2012  mrg sync to latest -current.
 1.2.10.2  05-Apr-2012  mrg sync to latest -current.
 1.2.10.1  18-Feb-2012  mrg merge to -current.
 1.2.6.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.2.6.2  30-Oct-2012  yamt sync with head
 1.2.6.1  17-Apr-2012  yamt sync with head
 1.2.4.2  06-Jun-2011  jruoho Sync with HEAD.
 1.2.4.1  23-Mar-2011  jruoho file ct65550.c was added on branch jruoho-x86intr on 2011-06-06 09:07:52 +0000
 1.6.4.2  18-May-2014  rmind sync with head
 1.6.4.1  28-Aug-2013  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.10.10.1  20-Mar-2017  pgoyette Sync with HEAD
 1.10.6.2  05-Feb-2017  skrll Sync with HEAD
 1.10.6.1  05-Oct-2016  skrll Sync with HEAD
 1.11.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.13.30.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.14.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed