Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/sparc64/dev/vpci.c
RevisionDateAuthorComments
 1.13  21-Jan-2022  thorpej Don't bother with prom_node_to_devhandle() if we're just forwarding along
our own node; use device_handle(self) instead.
 1.12  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.11  10-May-2021  thorpej branches: 1.11.4;
Associate the OpenBoot / OpenFirmware node with attached devices
at config_found() time.
 1.10  24-Apr-2021  thorpej branches: 1.10.2; 1.10.4;
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.9  04-Jan-2021  thorpej branches: 1.9.2;
malloc(9) -> kmem(9) -- just the simple, straightforward conversions for now.
 1.8  10-Nov-2019  chs branches: 1.8.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.7  10-May-2016  palle branches: 1.7.16; 1.7.20;
sun4v: make device interrupts work. Introduce a new intrhand_alloc() function for allocation of interrupt handlers and adapt to this. Parts from OpenBSD. ok martin@
 1.6  27-Nov-2015  joerg Shuffle a bit to avoid empty loop body.
 1.5  09-Sep-2015  palle Fixed console logging when booting with -q
 1.4  08-Sep-2015  palle Improve printout duing autoconfiguration
 1.3  06-Sep-2015  nakayama Use <machine/*.h> instead of <sparc64/*.h> for consistency.
 1.2  03-Sep-2015  palle sun4v: iommu setup seems to work now - device detection is now possible - parts from OpenBSD - ok mrg@, martin@
 1.1  12-Feb-2015  palle branches: 1.1.2;
sun4v: vpci driver - initial (and incomplete) version of virtual PCIe host bridge driver for sun4v systems. Based on the NetBSD pyro driver and OpenBSD vpci driver. Future work will include integrating code from the OpenBSD vpci driver.
 1.1.2.5  29-May-2016  skrll Sync with HEAD
 1.1.2.4  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.1.2.3  22-Sep-2015  skrll Sync with HEAD
 1.1.2.2  06-Apr-2015  skrll Sync with HEAD
 1.1.2.1  12-Feb-2015  skrll file vpci.c was added on branch nick-nhusb on 2015-04-06 15:18:03 +0000
 1.7.20.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.7.16.2  03-Dec-2017  jdolecek update from HEAD
 1.7.16.1  10-May-2016  jdolecek file vpci.c was added on branch tls-maxphys on 2017-12-03 11:36:44 +0000
 1.8.8.1  03-Apr-2021  thorpej Sync with HEAD.
 1.9.2.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.10.4.1  31-May-2021  cjep sync with head
 1.10.2.1  13-May-2021  thorpej Sync with HEAD.
 1.11.4.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed