Home | History | Annotate | only in /src/sys/rump/dev/lib/libpci
History log of /src/sys/rump/dev/lib/libpci
RevisionDateAuthorComments
 1.11 10-May-2016  pooka Avoid '.' in variable names which are expected to be passed to
this Makefile via the env.

That character is strictly speaking not allowed by POSIX in an exported
variable name, and at least dash >= 0.58 refuses to export such variables.

Furthermore, since the individual CFLAGS/CPPFLAGS/etc. variables
are not comprehensive enough for all cases (e.g. HURD), just
support the .includable version from now on, i.e.
RUMPCOMP_MAKEFILEINC_rumpdev_pci.

curious failure mode debugged by Martin Lucina
 1.10 26-Jan-2016  pooka Put the kernelside rump kernel headers into <rump-sys> instead of
sprinkling them around the faction directories. Avoids having
to add a CPPFLAGS (or several) to pretty much every component
Makefile.

Leave compat headers around in the old locations.

The commit changes some autogenerated files, but I'll fix the
generators shortly and regen.
 1.9 01-Nov-2015  pooka Allow PCI implementers to specify arbitrary makefile constructs.
(interface subject to change)

from Robert Millan
 1.8 19-Oct-2015  pooka Add a COMMENT describing what each component roughly does.

"make describe" prints the comment.

Requested/inspired by Vincent Schwarzer on rumpkernel-users
 1.7 24-Aug-2015  pooka opt files were nop't
 1.6 15-Jun-2015  pooka Add a "userfeature" definition for iospace. I/O space is supported if
that flag is given and calling the init routine succeeds (and we're on
x86, which we probably need to be on anyway for this PCI component to
currently be supported).

Also, some adjustments to make things between flags consistent, namely
deprecate the Makefile variable RUMP_PCI_IOSPACE and don't require
userfeature.h to map 1:1 to the interfaces.

Includes contributions from Robert Millan.
 1.5 03-Jun-2015  pooka Rework how the external hypercalls are specified, more in the direction of
something general. I'm not sure if it's entirely general yet (since PCI
is the only place to use it), but at least a step in the right direction.
 1.4 22-Aug-2014  pooka branches: 1.4.2;
Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
 1.3 14-Apr-2014  pooka branches: 1.3.2; 1.3.4; 1.3.8;
build hypercalls if RUMP_PCI_USER is defined
 1.2 14-Apr-2014  pooka add necessary -I for /dev/pci* creation
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3.8.3 03-Dec-2017  jdolecek update from HEAD
 1.3.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.8.1 14-Apr-2014  tls file Makefile was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.3.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.4.1 14-Apr-2014  yamt file Makefile was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.3.2.2 18-May-2014  rmind sync with head
 1.3.2.1 14-Apr-2014  rmind file Makefile was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.4.2.5 29-May-2016  skrll Sync with HEAD
 1.4.2.4 19-Mar-2016  skrll Sync with HEAD
 1.4.2.3 27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.4.2.2 22-Sep-2015  skrll Sync with HEAD
 1.4.2.1 06-Jun-2015  skrll Sync with HEAD
 1.1 04-Apr-2014  pooka branches: 1.1.4; 1.1.6; 1.1.10;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.10.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.10.1 04-Apr-2014  tls file PCI.ioconf was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 04-Apr-2014  yamt file PCI.ioconf was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 04-Apr-2014  rmind file PCI.ioconf was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.11 31-Mar-2022  pgoyette For device modules that provide both auto-config and /dev/xxx
interfaces, make sure that initialization and destruction
follow the proper sequence. This is triggered by the recent
changes to the devsw stuff; per riastradh@ the required call
sequence is:

devsw_attach()
config_init_component() or config_cf*_attach()
...
config_fini_component() or config_cf*_detach()
devsw_detach()

While here, add a few missing calls to some of the detach
routines.

Testing of these changes has been limited to:
1. compile without build break
2. no related test failures from atf
3. modload/modunload work as well as
before.

No functional device testing done, since I don't have any
of these devices. Let me know of any damage I might cause
here!

XXX Some of the modules affected by this commit are already
XXX broken; see kern/56772. This commit does not break
any additional modules (as far as I know).
 1.10 07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.9 24-Apr-2021  thorpej branches: 1.9.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.8 06-Jun-2018  maya branches: 1.8.16;
Remove duplicate ;
 1.7 26-Jan-2016  pooka branches: 1.7.16;
Put the kernelside rump kernel headers into <rump-sys> instead of
sprinkling them around the faction directories. Avoids having
to add a CPPFLAGS (or several) to pretty much every component
Makefile.

Leave compat headers around in the old locations.

The commit changes some autogenerated files, but I'll fix the
generators shortly and regen.
 1.6 15-Jun-2015  pooka Add a "userfeature" definition for iospace. I/O space is supported if
that flag is given and calling the init routine succeeds (and we're on
x86, which we probably need to be on anyway for this PCI component to
currently be supported).

Also, some adjustments to make things between flags consistent, namely
deprecate the Makefile variable RUMP_PCI_IOSPACE and don't require
userfeature.h to map 1:1 to the interfaces.

Includes contributions from Robert Millan.
 1.5 22-Aug-2014  pooka branches: 1.5.2;
Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
 1.4 31-Jul-2014  pooka branches: 1.4.4;
add missing \n

from Robert Millan <rmh@freebsd.org> via rumpkernel-users
 1.3 14-Apr-2014  pooka branches: 1.3.2; 1.3.4;
be even more explicit about handling only bus 0
 1.2 13-Apr-2014  pooka create /dev/pci device nodes
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.4.1 14-Apr-2014  yamt file pci_at_mainbus.c was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.3.2.2 18-May-2014  rmind sync with head
 1.3.2.1 14-Apr-2014  rmind file pci_at_mainbus.c was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.4.4.3 03-Dec-2017  jdolecek update from HEAD
 1.4.4.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.4.1 31-Jul-2014  tls file pci_at_mainbus.c was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.5.2.2 19-Mar-2016  skrll Sync with HEAD
 1.5.2.1 22-Sep-2015  skrll Sync with HEAD
 1.7.16.1 25-Jun-2018  pgoyette Sync with HEAD
 1.8.16.1 02-Apr-2021  thorpej config_found_ia() -> config_found() w/ CFARG_IATTR.
 1.9.8.1 05-Aug-2021  thorpej Adapt to CFARGS().
 1.6 07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.5 15-Jun-2015  pooka Add a "userfeature" definition for iospace. I/O space is supported if
that flag is given and calling the init routine succeeds (and we're on
x86, which we probably need to be on anyway for this PCI component to
currently be supported).

Also, some adjustments to make things between flags consistent, namely
deprecate the Makefile variable RUMP_PCI_IOSPACE and don't require
userfeature.h to map 1:1 to the interfaces.

Includes contributions from Robert Millan.
 1.4 03-Jun-2015  pooka implement bus_dmamem_free()

from Robert Millan <rmh@freebsd.org> via rumpkernel-users
 1.3 03-Jun-2015  pooka Demand that rumpcomp_userfeatures_pci.h is available for providing
information about the hypercall interface implementation.
 1.2 14-Apr-2014  pooka branches: 1.2.2; 1.2.4; 1.2.8; 1.2.10;
* make it possible for rumpcomp_pci_intr_establish() to know which
device it's establishing the interrupt for
* make it possible to implement bus_dmamem_map() properly
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2.10.3 09-Jul-2016  skrll Sync with HEAD
 1.2.10.2 22-Sep-2015  skrll Sync with HEAD
 1.2.10.1 06-Jun-2015  skrll Sync with HEAD
 1.2.8.3 03-Dec-2017  jdolecek update from HEAD
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 14-Apr-2014  tls file pci_user.h was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 14-Apr-2014  yamt file pci_user.h was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.2.2.2 18-May-2014  rmind sync with head
 1.2.2.1 14-Apr-2014  rmind file pci_user.h was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.11 13-Feb-2022  riastradh rump: Omit unused EIEIO #define, vestige of powerpc bus_dma.c.
 1.10 02-Nov-2020  christos PR/55777: Ruslan Nikolaev: use MIN() from <sys/param.h> instead of min()
 1.9 05-Sep-2020  riastradh branches: 1.9.2;
Round of uvm.h cleanup.

The poorly named uvm.h is generally supposed to be for uvm-internal
users only.

- Narrow it to files that actually need it -- mostly files that need
to query whether curlwp is the pagedaemon, which should maybe be
exposed by an external header.

- Use uvm_extern.h where feasible and uvm_*.h for things not exposed
by it. We should split up uvm_extern.h but this will serve for now
to reduce the uvm.h dependencies.

- Use uvm_stat.h and #ifdef UVMHIST uvm.h for files that use
UVMHIST(ubchist), since ubchist is declared in uvm.h but the
reference evaporates if UVMHIST is not defined, so we reduce header
file dependencies.

- Make uvm_device.h and uvm_swap.h independently includable while
here.

ok chs@
 1.8 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.7 12-Dec-2018  alnsn Add missing RCSIDs.
 1.6 27-Apr-2018  maxv branches: 1.6.2;
M_CLUSTER -> M_EXT_CLUSTER, and remove M_CLUSTER completely.
 1.5 15-Jun-2015  pooka branches: 1.5.16;
Add a "userfeature" definition for iospace. I/O space is supported if
that flag is given and calling the init routine succeeds (and we're on
x86, which we probably need to be on anyway for this PCI component to
currently be supported).

Also, some adjustments to make things between flags consistent, namely
deprecate the Makefile variable RUMP_PCI_IOSPACE and don't require
userfeature.h to map 1:1 to the interfaces.

Includes contributions from Robert Millan.
 1.4 03-Jun-2015  pooka implement bus_dmamem_free()

from Robert Millan <rmh@freebsd.org> via rumpkernel-users
 1.3 14-Apr-2014  pooka branches: 1.3.2; 1.3.4; 1.3.8; 1.3.10;
* make it possible for rumpcomp_pci_intr_establish() to know which
device it's establishing the interrupt for
* make it possible to implement bus_dmamem_map() properly
 1.2 11-Apr-2014  pooka remove obfuscation macros
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3.10.2 22-Sep-2015  skrll Sync with HEAD
 1.3.10.1 06-Jun-2015  skrll Sync with HEAD
 1.3.8.3 03-Dec-2017  jdolecek update from HEAD
 1.3.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.8.1 14-Apr-2014  tls file rumpdev_bus_dma.c was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.3.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.4.1 14-Apr-2014  yamt file rumpdev_bus_dma.c was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.3.2.2 18-May-2014  rmind sync with head
 1.3.2.1 14-Apr-2014  rmind file rumpdev_bus_dma.c was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.5.16.2 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5.16.1 02-May-2018  pgoyette Synch with HEAD
 1.6.2.1 10-Jun-2019  christos Sync with HEAD
 1.9.2.1 14-Dec-2020  thorpej Sync w/ HEAD.
 1.10 27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.9 12-Dec-2018  alnsn Add missing RCSIDs.
 1.8 07-Jul-2016  msaitoh branches: 1.8.16; 1.8.18;
KNF. Remove extra spaces. No functional change.
 1.7 18-Jan-2016  pooka Implement the inverse of a nop.
 1.6 11-Aug-2015  pooka Fix handle typos/pastos in bus_space_barrier() calls
 1.5 15-Jun-2015  pooka Add a "userfeature" definition for iospace. I/O space is supported if
that flag is given and calling the init routine succeeds (and we're on
x86, which we probably need to be on anyway for this PCI component to
currently be supported).

Also, some adjustments to make things between flags consistent, namely
deprecate the Makefile variable RUMP_PCI_IOSPACE and don't require
userfeature.h to map 1:1 to the interfaces.

Includes contributions from Robert Millan.
 1.4 17-May-2015  pooka Implement bus_space_read/write_multi() and bus_space_subregion().

Used by (at least) wdc.
 1.3 22-Aug-2014  pooka branches: 1.3.2;
Add a compile-time selector for I/O space operations. Needs more work
some day, but allows virtio drivers to work today.
 1.2 13-Apr-2014  pooka branches: 1.2.2; 1.2.4; 1.2.8;
add some sort of bus_space_barrier()
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.2.8.3 03-Dec-2017  jdolecek update from HEAD
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 13-Apr-2014  tls file rumpdev_bus_space.c was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.2.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.4.1 13-Apr-2014  yamt file rumpdev_bus_space.c was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.2.2.2 18-May-2014  rmind sync with head
 1.2.2.1 13-Apr-2014  rmind file rumpdev_bus_space.c was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.3.2.3 19-Mar-2016  skrll Sync with HEAD
 1.3.2.2 22-Sep-2015  skrll Sync with HEAD
 1.3.2.1 06-Jun-2015  skrll Sync with HEAD
 1.8.18.1 10-Jun-2019  christos Sync with HEAD
 1.8.16.1 26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.5 17-May-2015  pooka Add pciide_machdep_compat_intr_establish().

Used by ... would you believe pciide?
 1.4 26-Aug-2014  pooka branches: 1.4.2;
Implement pci_intr_setattr()

(well, kinda. it just ignores the MPSAFE param for now, but that's
easy to fix later)
 1.3 15-Apr-2014  pooka branches: 1.3.2; 1.3.4; 1.3.8;
update to new pci_intr_string()
 1.2 14-Apr-2014  pooka * make it possible for rumpcomp_pci_intr_establish() to know which
device it's establishing the interrupt for
* make it possible to implement bus_dmamem_map() properly
 1.1 04-Apr-2014  pooka branches: 1.1.2;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.2.1 10-Aug-2014  tls Rebase.
 1.3.8.3 03-Dec-2017  jdolecek update from HEAD
 1.3.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.8.1 15-Apr-2014  tls file rumpdev_pci.c was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.3.4.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.4.1 15-Apr-2014  yamt file rumpdev_pci.c was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.3.2.2 18-May-2014  rmind sync with head
 1.3.2.1 15-Apr-2014  rmind file rumpdev_pci.c was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000
 1.4.2.1 06-Jun-2015  skrll Sync with HEAD
 1.2 02-Dec-2014  pooka Remove shlib_version files and just use Makefile SHLIB_MAJOR/MINOR,
with the default provided by Makefile.rump (they're all 0.0 anyway)
 1.1 04-Apr-2014  pooka branches: 1.1.4; 1.1.6; 1.1.10; 1.1.12;
Add a rump kernel component for the PCI bus. It works both in Xen DomU
(via Xen's PCI passthrough) and Linux userspace (via uio_pci_generic).
 1.1.12.1 06-Apr-2015  skrll Sync with HEAD
 1.1.10.3 03-Dec-2017  jdolecek update from HEAD
 1.1.10.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.1.10.1 04-Apr-2014  tls file shlib_version was added on branch tls-maxphys on 2014-08-20 00:04:38 +0000
 1.1.6.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.1.6.1 04-Apr-2014  yamt file shlib_version was added on branch yamt-pagecache on 2014-05-22 11:41:12 +0000
 1.1.4.2 18-May-2014  rmind sync with head
 1.1.4.1 04-Apr-2014  rmind file shlib_version was added on branch rmind-smpnet on 2014-05-18 17:46:15 +0000

RSS XML Feed