Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/hpcmips/dev/plumpcmcia.c
RevisionDateAuthorComments
 1.32  10-Sep-2023  andvar return %#x specifier for pcihp->ioh and add (unsigned) cast instead,
as it is done everywhere in this code.
 1.31  10-Sep-2023  andvar Various fixes to (re)enable PLUMPCMCIA_DEBUG build:
remove brackets around DPRINTF params (that's leftover from custom definition).
pcihp->ioh expects %lx specifier, not %x.
constify char *width_names.
rename cardtype to type in one of DPRINTF argument's condition.
 1.30  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.29  24-Apr-2021  thorpej branches: 1.29.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.28  30-Jun-2016  skrll branches: 1.28.32;
Fix the unused fix
 1.27  26-Mar-2014  christos branches: 1.27.6;
- kill sprintf
- fix unused
 1.26  27-Oct-2012  chs branches: 1.26.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.25  26-Jul-2011  dyoung branches: 1.25.2; 1.25.12;
Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
 1.24  18-Mar-2009  cegger Ansify function definitions w/o arguments. Generated with sed.
 1.23  15-Dec-2007  perry branches: 1.23.10; 1.23.18; 1.23.24;
__FUNCTION__ -> __func__
 1.22  17-Oct-2007  garbled branches: 1.22.4; 1.22.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.21  13-Jul-2007  he branches: 1.21.10;
Add a missing comma, and a missing return NULL if you fall off the
end of plumpcmcia_event_alloc().
 1.20  09-Jul-2007  ad Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.19  11-Dec-2005  christos branches: 1.19.30; 1.19.32; 1.19.38;
merge ktrace-lwp.
 1.18  28-Jun-2005  drochner branches: 1.18.2;
convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
 1.17  11-Aug-2004  mycroft Add a settype() function. Also clear the window enables when powering up or
down a socket, just to be safe. (I've had problems with WinCE trashing my CF
card if there's state left behind...)
 1.16  15-Jul-2003  lukem __KERNEL_RCSID()
 1.15  01-Jan-2003  thorpej branches: 1.15.2;
Use aprint_normal() for cfprint routines.
 1.14  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.13  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.12  27-Sep-2002  thorpej Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
 1.11  01-Jun-2002  lukem SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field). whilst it's O(n),
this mirrors the functionality of SLIST_REMOVE() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
 1.10  29-Jan-2002  uch branches: 1.10.8;
clean up debug print and configuration.
 1.9  15-Dec-2001  soren To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
 1.8  18-Nov-2001  takemura Rewrite bus stuff with method table in the bus tags.
 1.7  15-Sep-2001  uch branches: 1.7.4;
ANSIfy, KNF, change my copyright.
 1.6  08-May-2001  uch branches: 1.6.2; 1.6.4;
set allocatable PCMCIA I/O space size.
 1.5  04-Oct-2000  uch branches: 1.5.2; 1.5.4;
experimental power management support for TX3912/TX3922 based model.
 1.4  27-Sep-2000  uch hot plug support.
 1.3  05-Mar-2000  takemura Change bus_addr_t and bus_size_t from u_int32_t to u_long.
Add -Werror option to kernel Makefile.
 1.2  07-Dec-1999  uch branches: 1.2.2;
Supply power before attaching socket.
 1.1  21-Nov-1999  uch PLUM2(TC6358TB) TX3922 companion chip
 1.2.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.4.1  21-Jun-2001  nathanw Catch up to -current.
 1.5.2.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.5.2.1  04-Oct-2000  bouyer file plumpcmcia.c was added on branch thorpej_scsipi on 2000-11-20 20:46:11 +0000
 1.6.4.1  01-Oct-2001  fvdl Catch up with -current.
 1.6.2.4  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.6.2.3  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.6.2.2  11-Feb-2002  jdolecek Sync w/ -current.
 1.6.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.4.6  03-Jan-2003  thorpej Sync with HEAD.
 1.7.4.5  18-Oct-2002  nathanw Catch up to -current.
 1.7.4.4  20-Jun-2002  nathanw Catch up to -current.
 1.7.4.3  28-Feb-2002  nathanw Catch up to -current.
 1.7.4.2  08-Jan-2002  nathanw Catch up to -current.
 1.7.4.1  15-Sep-2001  nathanw file plumpcmcia.c was added on branch nathanw_sa on 2002-01-08 00:25:00 +0000
 1.10.8.1  14-Jul-2002  gehenna catch up with -current.
 1.15.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.15.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.15.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.15.2.2  12-Aug-2004  skrll Sync with HEAD.
 1.15.2.1  03-Aug-2004  skrll Sync with HEAD
 1.18.2.2  21-Jan-2008  yamt sync with head
 1.18.2.1  03-Sep-2007  yamt sync with head.
 1.19.38.1  03-Oct-2007  garbled Sync with HEAD
 1.19.32.1  11-Jul-2007  mjf Sync with head.
 1.19.30.1  15-Jul-2007  ad Sync with head.
 1.21.10.2  09-Jan-2008  matt sync with HEAD
 1.21.10.1  06-Nov-2007  matt sync with HEAD
 1.22.8.1  02-Jan-2008  bouyer Sync with HEAD
 1.22.4.1  26-Dec-2007  ad Sync with head.
 1.23.24.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.23.18.1  28-Apr-2009  skrll Sync with HEAD.
 1.23.10.1  04-May-2009  yamt sync with head.
 1.25.12.3  03-Dec-2017  jdolecek update from HEAD
 1.25.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.25.2.2  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.25.2.1  30-Oct-2012  yamt sync with head
 1.26.2.1  18-May-2014  rmind sync with head
 1.27.6.1  09-Jul-2016  skrll Sync with HEAD
 1.28.32.1  23-Mar-2021  thorpej plumpcmcia has only a single interface attribute, so no need to
use config_found_ia().

While here, also fix an apparent bug left over from when device_t and
driver softcs were fully split ... config_found() takes a device_t, not
the associated softc. (Issue was masked by a case to "void *".)
 1.29.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed