Home | History | Annotate | Download | only in pcmcia
History log of /src/sys/dev/pcmcia/fdc_pcmcia.c
RevisionDateAuthorComments
 1.23  08-Dec-2021  andvar fix various typos in comments and log messages.
 1.22  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.21  24-Apr-2021  thorpej branches: 1.21.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.20  28-Apr-2008  martin branches: 1.20.104;
Remove clause 3 and 4 from TNF licenses
 1.19  16-Mar-2008  cube branches: 1.19.2; 1.19.4;
Split device_t and softc for the ... wait for it ... [air quotes] MI
variant of fdc(4)/fd(4). Other cosmetic changes as appropriate.
 1.18  19-Oct-2007  ad branches: 1.18.12; 1.18.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.17  11-Dec-2005  christos branches: 1.17.30; 1.17.44; 1.17.46; 1.17.50;
merge ktrace-lwp.
 1.16  27-Feb-2005  perry branches: 1.16.4;
nuke trailing whitespace
 1.15  04-Feb-2005  perry de-__P
 1.14  10-Aug-2004  mycroft branches: 1.14.4; 1.14.6;
This code was pretty far from even compiling before. It also doesn't implement
detach support. However, update other parts of it.
 1.13  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.12  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.11  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.10  02-Oct-2002  thorpej branches: 1.10.6;
Add trailing ; to CFATTACH_DECL.
 1.9  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.8  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.7  06-Sep-2002  gehenna Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.

- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.

- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
 1.6  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.5  13-Nov-2001  lukem branches: 1.5.8;
add RCSIDs
 1.4  19-Mar-1999  christos branches: 1.4.20; 1.4.22;
Add FDC_HEADSETTLE to wait for the heads to settle timeout
 1.3  05-Sep-1998  christos Assign copyright to TNF.
 1.2  19-Jul-1998  christos Add a devlist2h.awk so that we don't sprinkle the same constants over
each device driver file and use it.
 1.1  21-Jun-1998  christos Add pcmcia floppy front end.
XXX: We need to make an isa machine independent floppy driver...
 1.4.22.3  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.4.22.2  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.4.22.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.4.20.4  18-Oct-2002  nathanw Catch up to -current.
 1.4.20.3  17-Sep-2002  nathanw Catch up to -current.
 1.4.20.2  20-Jun-2002  nathanw Catch up to -current.
 1.4.20.1  14-Nov-2001  nathanw Catch up to -current.
 1.5.8.2  20-Jun-2002  gehenna catch up with -current.
 1.5.8.1  16-May-2002  gehenna Remove unnecessary header.
 1.10.6.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.10.6.4  04-Feb-2005  skrll Sync with HEAD.
 1.10.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.10.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.10.6.1  12-Aug-2004  skrll Sync with HEAD.
 1.14.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.14.6.1  12-Feb-2005  yamt sync with head.
 1.14.4.1  29-Apr-2005  kent sync with -current
 1.16.4.2  17-Mar-2008  yamt sync with head.
 1.16.4.1  27-Oct-2007  yamt sync with head.
 1.17.50.1  25-Oct-2007  bouyer Sync with HEAD.
 1.17.46.2  23-Mar-2008  matt sync with HEAD
 1.17.46.1  06-Nov-2007  matt sync with HEAD
 1.17.44.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.17.30.1  23-Oct-2007  ad Sync with head.
 1.18.16.2  02-Jun-2008  mjf Sync with HEAD.
 1.18.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.18.12.1  24-Mar-2008  keiichi sync with head.
 1.19.4.1  16-May-2008  yamt sync with head.
 1.19.2.1  18-May-2008  yamt sync with head.
 1.20.104.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.21.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed