NetBSD/sys/dev/scsipi
thorpej 2685996b0e 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?).
2021-04-24 23:36:23 +00:00
..
atapi_base.c
atapi_tape.h
atapi_wdc.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
atapiconf.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
atapiconf.h
cd.c Limit buffer size for device capabilities requests as a work-around for PR 2021-04-16 12:58:54 +00:00
cdvar.h
ch.c Use sel{record,remove}_knote(). 2020-12-18 01:54:22 +00:00
files.scsipi
if_se.c s/occurence/occurrence/ 2020-09-29 02:58:51 +00:00
Makefile
scsi_all.h
scsi_base.c
scsi_changer.h
scsi_ctron_ether.h
scsi_disk.h
scsi_iu.h
scsi_message.h
scsi_scanner.h
scsi_sdt.h
scsi_spc.h
scsi_tape.h
scsiconf.c Merge thorpej-cfargs branch: 2021-04-24 23:36:23 +00:00
scsiconf.h
scsipi_all.h
scsipi_base.c Some misspelling-in-comments fixes for scsipi 2020-09-17 01:19:41 +00:00
scsipi_base.h
scsipi_cd.h
scsipi_debug.h
scsipi_disk.h
scsipi_ioctl.c
scsipi_verbose.c
scsipiconf.c
scsipiconf.h
sd.c PR/55986: Ryo Onodera: DK_BUSY must have mask as second argument. Make cd.c 2021-02-10 16:30:01 +00:00
sdvar.h
ses.c
ses.h
ss_mustek.c
ss_mustek.h
ss_scanjet.c
ss.c s/occurence/occurrence/ 2020-09-29 02:58:51 +00:00
ssvar.h
st_atapi.c
st_scsi.c
st.c
stvar.h
uk.c