| History log of /src/sys/dev/pcmcia/pcmcom.c |
| Revision | | Date | Author | Comments |
| 1.45 |
| 10-May-2023 |
riastradh | pcmcom(4): Use config_detach_children.
|
| 1.44 |
| 25-Sep-2022 |
thorpej | Remove unnecessary include of <sys/malloc.h>.
|
| 1.43 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
| 1.42 |
| 24-Apr-2021 |
thorpej | branches: 1.42.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.41 |
| 08-Dec-2018 |
thorpej | branches: 1.41.14; Clean up initialization of com_regs structure, in preparation for some additional changers.
|
| 1.40 |
| 27-Oct-2012 |
chs | branches: 1.40.36; 1.40.38; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
| 1.39 |
| 06-Dec-2009 |
dyoung | branches: 1.39.12; 1.39.22; device_t/softc split.
|
| 1.38 |
| 12-Nov-2009 |
dyoung | Don't use com_activate(), it's gone away. Delete superfluous activation hook, pcmcom_activate().
Add a child-detachment hook and use it.
Use device_private().
Cosmetic: use __arraycount(). Join a couple of lines. Delete a set of superfluous parentheses.
|
| 1.37 |
| 12-May-2009 |
cegger | struct device * -> device_t, no functional changes intended.
|
| 1.36 |
| 12-May-2009 |
cegger | struct cfdata * -> cfdata_t, no functional changes intended.
|
| 1.35 |
| 14-Mar-2009 |
dsl | Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
|
| 1.34 |
| 28-Apr-2008 |
martin | branches: 1.34.8; 1.34.14; Remove clause 3 and 4 from TNF licenses
|
| 1.33 |
| 05-Apr-2008 |
cegger | branches: 1.33.2; 1.33.4; use aprint_*_dev and device_xname
|
| 1.32 |
| 14-Mar-2008 |
cube | Split device_t and softc for all com(4) devices (well, everything that uses a com_softc backend). Use proper types and ansify where appropriate.
|
| 1.31 |
| 19-Oct-2007 |
ad | branches: 1.31.12; 1.31.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
| 1.30 |
| 16-Nov-2006 |
christos | branches: 1.30.8; 1.30.22; 1.30.24; 1.30.28; __unused removal on arguments; approved by core.
|
| 1.29 |
| 16-Nov-2006 |
christos | non working dual serial port.
|
| 1.28 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
| 1.27 |
| 13-Jul-2006 |
gdamore | branches: 1.27.4; 1.27.6; Add an option COM_REGMAP to allow com(4) to use an array of register indices. This allows us to convert aucom to just another com attachment, and cleanup some code in the com_arbus.c.
Additionally, we use a common com_cleanup routine rather than having a zillion copies of it in the attachment points.
This has been tested on a number architectures, and it has been shown to get close to comparable performance when COM_REGMAP is defined, and comparable when it is not defined.
Approved by core@. Fixes PR port-evbmips/32362.
|
| 1.26 |
| 25-Mar-2006 |
thorpej | branches: 1.26.4; Use device_parent().
|
| 1.25 |
| 11-Dec-2005 |
christos | branches: 1.25.4; 1.25.6; 1.25.8; 1.25.10; 1.25.12; merge ktrace-lwp.
|
| 1.24 |
| 26-Aug-2005 |
drochner | kill some more simple submatch() functions, use config_stdsubmatch()
|
| 1.23 |
| 25-Aug-2005 |
drochner | replace the "locdesc_t" structure carrying the number of locators explicitely by a plain integer array the length in now known to all relevant parties, so this avoids duplication of information, and we can allocate that thing in drivers without hacks
|
| 1.22 |
| 27-Feb-2005 |
perry | branches: 1.22.4; nuke trailing whitespace
|
| 1.21 |
| 04-Feb-2005 |
perry | de-__P
|
| 1.20 |
| 13-Sep-2004 |
drochner | branches: 1.20.4; 1.20.6; a round of autoconf cleanup: -convert submatch() style functions (passed to config_search() or config_found_sm()) to the locator passing variants -pass interface attributes in some cases -make submatch() functions look uniformly as far as possible -avoid macros which just hide cfdata members, and reduce dependencies on "locators.h"
|
| 1.19 |
| 10-Aug-2004 |
mycroft | Update to the new world order. While I'm here, simplify a lot.
|
| 1.18 |
| 10-Aug-2004 |
mycroft | Now that all the silly string printing is gone, move the location where we print a newline so it doesn't have to be done in every driver.
|
| 1.17 |
| 10-Aug-2004 |
mycroft | Enhance pcmcia_product_lookup(): * Remove the "expected function" value. This was just causing problems with multifunction cards. Differentiating the functions is better done by checking the function type (which we now do in ep and sm). * Add support for matching CIS strings. This necessitated changing the calling pattern a little too.
Use this enhanced version rather than driver-specific versions that do the same thing.
Also, remove the last vestiges of PCMCIA_STR_*.
|
| 1.16 |
| 09-Aug-2004 |
mycroft | Correct the intr_establish order here.
|
| 1.15 |
| 08-Aug-2004 |
mycroft | Remove the "offset" and "size" arguments to pcmcia_io_map(). In the singular case (ne@pcmcia) where we were using these to create a subregion, it is better handled by calling bus_space_subregion().
Now there is a 1:1 mapping between I/O spaces in the config table and windows mapped in the function. Rework the multifunction mapping code to take advantage of this by using both I/O base addresses if necessary.
|
| 1.14 |
| 01-Jan-2003 |
thorpej | branches: 1.14.2; Use aprint_normal() in cfprint routines.
|
| 1.13 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
| 1.12 |
| 30-Sep-2002 |
thorpej | Use CFATTACH_DECL().
|
| 1.11 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
| 1.10 |
| 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.9 |
| 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.8 |
| 12-Jan-2002 |
tsutsui | branches: 1.8.8; Call malloc(9) with M_ZERO flag instead of memset() after malloc().
|
| 1.7 |
| 13-Nov-2001 |
lukem | add RCSIDs
|
| 1.6 |
| 24-May-2000 |
itojun | branches: 1.6.6; 1.6.8; correct pcmcom detach (like card removal). PR 9334.
|
| 1.5 |
| 04-Feb-2000 |
cgd | replace the *_lookup table entry match/lookup functions in all of these drivers with a single common function (which supports tables of variable-sized structures). Things are mostly as they were before: tables are terminated by entry with NULL name, etc. There's also the ability to call a driver-specific match function which can be used to augment the table lookup.
|
| 1.4 |
| 20-Nov-1998 |
thorpej | branches: 1.4.10; Detach children in reverse order. We are more likely to be able to recycle cloned unit numbers that way.
|
| 1.3 |
| 19-Nov-1998 |
thorpej | Add support for hot-swapping PCMCIA serial devices.
|
| 1.2 |
| 14-Oct-1998 |
thorpej | Nuke spurious ;
|
| 1.1 |
| 10-Oct-1998 |
thorpej | Device driver for PCMCIA multi-port serial cards. Currently supports the Socket Communications, Inc. dual-rs232 device.
|
| 1.4.10.1 |
| 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.6.8.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.8.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
| 1.6.8.2 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
| 1.6.8.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
| 1.6.6.5 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
| 1.6.6.4 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
| 1.6.6.3 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
| 1.6.6.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
| 1.6.6.1 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
| 1.8.8.1 |
| 20-Jun-2002 |
gehenna | catch up with -current.
|
| 1.14.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
| 1.14.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
| 1.14.2.4 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
| 1.14.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
| 1.14.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
| 1.14.2.1 |
| 12-Aug-2004 |
skrll | Sync with HEAD.
|
| 1.20.6.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
| 1.20.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
| 1.20.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
| 1.22.4.4 |
| 17-Mar-2008 |
yamt | sync with head.
|
| 1.22.4.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
| 1.22.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
| 1.22.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
| 1.25.12.1 |
| 28-Mar-2006 |
tron | Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
|
| 1.25.10.1 |
| 19-Apr-2006 |
elad | sync with head.
|
| 1.25.8.2 |
| 11-Aug-2006 |
yamt | sync with head
|
| 1.25.8.1 |
| 01-Apr-2006 |
yamt | sync with head.
|
| 1.25.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
| 1.25.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
| 1.26.4.3 |
| 17-Jun-2006 |
gdamore | Undo the undo. Restore COM_INIT_REGS.
|
| 1.26.4.2 |
| 17-Jun-2006 |
gdamore | Revert COM_INIT_REGS.
|
| 1.26.4.1 |
| 15-Jun-2006 |
gdamore | Adapt to new com framework.
|
| 1.27.6.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
| 1.27.6.1 |
| 22-Oct-2006 |
yamt | sync with head
|
| 1.27.4.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
| 1.30.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
| 1.30.24.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.30.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
| 1.30.22.1 |
| 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.30.8.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
| 1.31.16.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.31.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
| 1.31.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
| 1.33.4.4 |
| 11-Mar-2010 |
yamt | sync with head
|
| 1.33.4.3 |
| 16-May-2009 |
yamt | sync with head
|
| 1.33.4.2 |
| 04-May-2009 |
yamt | sync with head.
|
| 1.33.4.1 |
| 16-May-2008 |
yamt | sync with head.
|
| 1.33.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.34.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
| 1.34.8.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
| 1.39.22.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
| 1.39.12.1 |
| 30-Oct-2012 |
yamt | sync with head
|
| 1.40.38.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
| 1.40.36.1 |
| 26-Dec-2018 |
pgoyette | Sync with HEAD, resolve a few conflicts
|
| 1.41.14.2 |
| 22-Mar-2021 |
thorpej | Audit CFARG_IATTR in config_found() calls, and remove it in situations where the interface attribute is not ambiguous.
|
| 1.41.14.1 |
| 22-Mar-2021 |
thorpej | Mechanical conversion of config_found_sm_loc() -> config_found(). CFARG_IATTR usage needs to be audited.
|
| 1.42.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|