Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/mips/alchemy/dev/aupcmcia.c
RevisionDateAuthorComments
 1.13  25-Sep-2022  andvar s/inerrupt/interrupt/ and s/intrrupt/interrupt/ in comments.
 1.12  07-Aug-2021  thorpej 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  30-Aug-2015  dholland branches: 1.10.32;
Turn interrupts back off after sleeping. From maxv's Brainy list.
 1.9  04-Jan-2012  kiyohara branches: 1.9.6; 1.9.24;
Use device_t instead of 'struct device *'.
Remove unnecessary \n.
 1.8  03-Jan-2012  kiyohara Use device_t instead of 'struct device *'.
Call aprint_* in auto-config time.
 1.7  26-Jul-2011  dyoung branches: 1.7.2; 1.7.6;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.6  08-Jan-2008  dogcow add include for incomplete struct blah blah blah
 1.5  22-Dec-2007  ad Make compile (hi moof).
 1.4  17-Oct-2007  garbled branches: 1.4.2; 1.4.4; 1.4.8;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.3  09-Jul-2007  ad branches: 1.3.10;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.2  25-Mar-2006  gdamore branches: 1.2.2; 1.2.8; 1.2.14; 1.2.24; 1.2.26; 1.2.32;
Remove verbose debug message, and make sure we pass right IPL.
(Pedantic, since IPL isn't used in ICU, but better to be pedantic and right
than wrong.)
 1.1  23-Feb-2006  gdamore branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8;
Initial commit of aupcmcia chip driver. It requires board specific logic
(coming in a the follow up commit for dbau1550 only), and is not yet complete.
It has serious problems, enough that it isn't yet usable, although the
functionality is all basically fleshed out. It is not enabled in any
default kernels at this point, so it should be benign. Hopefully the
bugs will soon be worked out and these caveats can be removed.
 1.1.8.1  28-Mar-2006  tron Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
 1.1.6.1  19-Apr-2006  elad sync with head - hopefully this will work
 1.1.4.1  01-Apr-2006  yamt sync with head.
 1.1.2.2  01-Mar-2006  yamt sync with head.
 1.1.2.1  23-Feb-2006  yamt file aupcmcia.c was added on branch yamt-uio_vmspace on 2006-03-01 09:27:59 +0000
 1.2.32.1  03-Oct-2007  garbled Sync with HEAD
 1.2.26.1  11-Jul-2007  mjf Sync with head.
 1.2.24.1  15-Jul-2007  ad Sync with head.
 1.2.14.2  09-Sep-2006  rpaulo sync with head
 1.2.14.1  25-Mar-2006  rpaulo file aupcmcia.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:41:14 +0000
 1.2.8.4  21-Jan-2008  yamt sync with head
 1.2.8.3  03-Sep-2007  yamt sync with head.
 1.2.8.2  21-Jun-2006  yamt sync with head.
 1.2.8.1  25-Mar-2006  yamt file aupcmcia.c was added on branch yamt-lazymbuf on 2006-06-21 14:53:28 +0000
 1.2.2.2  22-Apr-2006  simonb Sync with head.
 1.2.2.1  25-Mar-2006  simonb file aupcmcia.c was added on branch simonb-timecounters on 2006-04-22 11:37:41 +0000
 1.3.10.2  09-Jan-2008  matt sync with HEAD
 1.3.10.1  06-Nov-2007  matt sync with HEAD
 1.4.8.2  08-Jan-2008  bouyer Sync with HEAD
 1.4.8.1  02-Jan-2008  bouyer Sync with HEAD
 1.4.4.1  26-Dec-2007  ad Sync with head.
 1.4.2.1  18-Feb-2008  mjf Sync with HEAD.
 1.7.6.1  18-Feb-2012  mrg merge to -current.
 1.7.2.1  17-Apr-2012  yamt sync with head
 1.9.24.1  22-Sep-2015  skrll Sync with HEAD
 1.9.6.1  03-Dec-2017  jdolecek update from HEAD
 1.10.32.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().

RSS XML Feed