History log of /pciutils/lib/fbsd-device.c (Results 1 – 24 of 24)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v3.14.0, v3.13.0, v3.12.0
# 1660c737 29-Mar-2024 Martin Mares <[email protected]>

Use C99 named initializers for struct pci_methods


Revision tags: v3.11.1, v3.11.0
# 61829219 18-Jun-2023 Martin Mares <[email protected]>

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL alone.

Let us update all copyright comments to explicitly say "GPL v2+"
and also include the machine readable SPDX license identifier.

show more ...


Revision tags: v3.10.0, v3.9.0, v3.8.0
# 777ec061 15-Apr-2022 Martin Mares <[email protected]>

fbsd-device: One more fix

Finishes the incomplete fix from 5c649bdcedfd823670dcbd74e9c38849d068db80.


# 5c649bdc 14-Apr-2022 Martin Mares <[email protected]>

Tried to fix the fbsd-device back-end

It was left broken by the fill_info reform.


# 8e9299e4 21-Jan-2022 Martin Mares <[email protected]>

Simplified pci_fill_info() and friends

Previously, we kept track of which fields were already filled, which
was quite brittle.

Now we keep only the set of already known fields in struct pci_dev.
We

Simplified pci_fill_info() and friends

Previously, we kept track of which fields were already filled, which
was quite brittle.

Now we keep only the set of already known fields in struct pci_dev.
We check if the current field is needed against this information.

Not only this simplifies the whole thing, but it also enables future
back-ends to call pci_fill_info() recursively as needed.

show more ...


Revision tags: v3.7.0
# 1ae94881 25-May-2020 Martin Mares <[email protected]>

Library: Handle domains in all back-ends

Even if the back-end does not implement multiple domains, it can
be called on a device in a non-zero domain if the use obtained the
device by calling pci_get

Library: Handle domains in all back-ends

Even if the back-end does not implement multiple domains, it can
be called on a device in a non-zero domain if the use obtained the
device by calling pci_get_dev() instead of scanning the bus.

In all such cases, report that 0 bytes were read/written.

show more ...


Revision tags: v3.6.4, v3.6.3
# 0f3898a4 19-Aug-2018 Oleksandr Tymoshenko <[email protected]>

Fix device_class calculatoin for non-root FreeBSD users

libpci uses PCIOCGETCONF for non-privileged access to /dev/pci
and calculates device_class value based on pc_class/pc_subclass
fields expectin

Fix device_class calculatoin for non-root FreeBSD users

libpci uses PCIOCGETCONF for non-privileged access to /dev/pci
and calculates device_class value based on pc_class/pc_subclass
fields expecting the former to be higher 8 bits of the target value.
0f3d0ca73ecedaba180bf4607bb57fb8abe6d405 errorneously swapped
order of class/subclass during calculations.

Signed-off-by: Oleksandr Tymoshenko <[email protected]>

show more ...


Revision tags: v3.6.2, v3.6.1, v3.6.0
# 6d2d713d 11-Jan-2018 Martin Mares <[email protected]>

fbsd-device should compile again


# 58d9f25f 31-Dec-2017 Martin Mares <[email protected]>

fbsd-device: Hopefully fixed a bug in fbsd_scan()

The previous version was obviously wrong: as Andriy Gapon pointed
out, we assign twice to t->dev, but never to t->func.

Not tested, though, as I ha

fbsd-device: Hopefully fixed a bug in fbsd_scan()

The previous version was obviously wrong: as Andriy Gapon pointed
out, we assign twice to t->dev, but never to t->func.

Not tested, though, as I have no FreeBSD system at hand.

show more ...


Revision tags: v3.5.6
# 0f3d0ca7 14-Jul-2017 Imre Vadász <[email protected]>

fbsd-device: Use PCIOCGETCONF and PCIOCGETBAR when /dev/pci fd is readonly.

This way we can at least fulfill some of the common requests without root
privileges. This allows various applications (fo

fbsd-device: Use PCIOCGETCONF and PCIOCGETBAR when /dev/pci fd is readonly.

This way we can at least fulfill some of the common requests without root
privileges. This allows various applications (for example the google chrome
webbrowser) to successfully probe the list of PCI devices without needing
read-write access to the /dev/pci device file.

Signed-off-by: Imre Vadász <[email protected]>

show more ...


# 7663958f 14-Jul-2017 Imre Vadász <[email protected]>

fbsd-device: Make extended configuration space available.

Signed-off-by: Imre Vadász <[email protected]>


# f4dbe106 14-Jul-2017 Imre Vadász <[email protected]>

fbsd-device: Fix fbsd-device backend on DragonFly BSD.

DragonFly also supports PCI domains same as FreeBSD.

Signed-off-by: Imre Vadász <[email protected]>


Revision tags: v3.5.5, v3.5.4, v3.5.3, v3.5.2, v3.5.1, v3.5.0, v3.4.1, v3.4.0, v3.3.1, v3.3.0, v3.2.1, v3.2.0, v3.1.10, v3.1.9, v3.1.8, v3.1.7, v3.1.6, v3.1.5, v3.1.4, v3.1.3, v3.1.2, v3.1.1, v3.1.0, v3.1-alpha3, v3.1-alpha2
# 52c81519 18-Nov-2008 Ben Hutchings <[email protected]>

Add pci_read_vpd() function and internal read_vpd() method

Signed-off-by: Ben Hutchings <[email protected]>


Revision tags: v3.1-alpha1, v3.0.3, v3.0.2, v3.0.1, v3.0.0
# 9ff67879 12-Feb-2008 Martin Mares <[email protected]>

Introduced API for selection of access methods.

Access method names were normalized (they so far served only informational
purposes). Each access method gained a help text.


# cb6ee324 12-Feb-2008 Martin Mares <[email protected]>

Replaced the method_params array by library parameters.

This change is backward incompatible, but hopefully nobody used this
ill-thought interface.


# 9c79fcc4 14-Oct-2007 Martin Mares <[email protected]>

Removed extraneous braces.


# ac9956a8 05-Oct-2007 Martin Mares <[email protected]>

Support domains on FreeBSD. Contributed by Marius Strobl.


# 99091df9 12-Sep-2007 Martin Mares <[email protected]>

Extended the fbsd-device backend to run on Dragonfly BSD.


# 94db5c82 09-Sep-2006 Martin Mares <[email protected]>

Whitespace cleanup of all source files.


# d1058e9d 10-May-2006 Martin Mares <[email protected]>

Added support for GNU/kFreeBSD.


# 489233b4 13-Aug-2004 Martin Mares <[email protected]>

Include file splits and namespace cleanups.

git-archimport-id: [email protected]/pciutils--main--2.2--patch-60


# 09817437 27-Jun-2004 Martin Mares <[email protected]>

Added support for 4096-byte extended configuration space.

git-archimport-id: [email protected]/pciutils--main--2.2--patch-50


# ab12277e 27-Dec-2003 Martin Mares <[email protected]>

New release system

Integrated a new system for making release.
Really applied the fbsd-device patch this time.
Released as 2.1.99-test2.
git-archimport-id: [email protected]/pciutils--main--2.2--pat

New release system

Integrated a new system for making release.
Really applied the fbsd-device patch this time.
Released as 2.1.99-test2.
git-archimport-id: [email protected]/pciutils--main--2.2--patch-29

show more ...


# 168b4f46 20-Jul-1999 Martin Mares <[email protected]>

Added support for FreeBSD and its /dev/pci access method.
Contributed by Jari Kirma <[email protected]> and tweaked by me.