cvs commit: src/sys/dev/pccard card_if.m pccard.c pccard_cis.c pccardvar.h

Warner Losh imp at FreeBSD.org
Fri Jul 1 03:40:28 GMT 2005


imp         2005-07-01 03:40:28 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/pccard       card_if.m pccard.c pccard_cis.c 
                         pccardvar.h 
  Log:
  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)
  
  Revision  Changes    Path
  1.29      +9 -0      src/sys/dev/pccard/card_if.m
  1.105     +1 -0      src/sys/dev/pccard/pccard.c
  1.33      +5 -6      src/sys/dev/pccard/pccard_cis.c
  1.52      +3 -2      src/sys/dev/pccard/pccardvar.h


More information about the cvs-src mailing list