freebsd-nq/sys/dev/pccard
Warner Losh 26db48b9b2 Add a much-requested feature: The ability for pccard attachments to
scan the CIS for interesting tuples.  95% of what can be obtained from
the CIS is harvested by the pccard layer and presented to the user in
standard function calls.  However, there are special needs at times
where the standard stuff doesn't suffice.  This is for those special
cases.

CARD_SCAN_CIS(device_get_parent(dev), function, argp)
	scans the CIS of the card, passing each tuple to function with
	the tuple and argp as its arguments.  Returning 0 continues the scan,
	while returning 1 terminates the scan.  The value of the last
	invocation of function is returned from this function.

int (*pccard_scan_t)(struct pccard_tuple *tuple, void *argp)
	function called for each tuple.  Elements of the CIS tuple can be
	read with pccard_tuple_read_{1,2,3,4,n}().  You are reading
	the actual tuple memory each time, in case your card has
	registers in the CIS.

# I suppose these things should be documented in pccard(4) or something like
# that.

# I plan on unifying cardbus CIS support in a similar way.

Approved by: re (scottl)
2005-07-01 03:40:28 +00:00
..
card_if.m Add a much-requested feature: The ability for pccard attachments to 2005-07-01 03:40:28 +00:00
pccard_cis_quirks.c deal with failed malloc calls 2005-03-26 21:30:49 +00:00
pccard_cis.c Add a much-requested feature: The ability for pccard attachments to 2005-07-01 03:40:28 +00:00
pccard_cis.h Some older PC Cards have a weird format for FUNCE tuples. They appear 2005-01-21 02:11:48 +00:00
pccard.c Add a much-requested feature: The ability for pccard attachments to 2005-07-01 03:40:28 +00:00
pccarddevs Add wireless + flash CF card I have 2005-06-24 14:32:24 +00:00
pccardreg.h Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00
pccardvar.h Add a much-requested feature: The ability for pccard attachments to 2005-07-01 03:40:28 +00:00
power_if.m Start each of the license/copyright comments with /*-, minor shuffle of lines 2005-01-06 01:43:34 +00:00