Changeset View
Changeset View
Standalone View
Standalone View
Modules/pci/kpci.cpp
1 | /* Retrieve information about PCI subsystem through libpci library from | 1 | /* Retrieve information about PCI subsystem through libpci library from | ||
---|---|---|---|---|---|
2 | pciutils package. This should be possible on Linux, BSD and AIX. | 2 | pciutils package. This should be possible on Linux, BSD and AIX. | ||
3 | 3 | | |||
4 | This code is based on example.c, lspci.c and pci.ids from pciutils. | 4 | This code is based on example.c, lspci.c and pci.ids from pciutils. | ||
5 | 5 | | |||
6 | Device classes, subclasses and programming interfaces are hardcoded | 6 | Device classes, subclasses and programming interfaces are hardcoded | ||
7 | here, since there are only few of them, and they are important and | 7 | here, since there are only few of them, and they are important and | ||
8 | should their names be translated. | 8 | should their names be translated. | ||
9 | 9 | | |||
10 | Author: Konrad Rzepecki <hannibal@megapolis.pl> | 10 | Author: Konrad Rzepecki <hannibal@astral.lodz.pl> | ||
11 | */ | 11 | */ | ||
12 | #include "kpci_private.h" | 12 | #include "kpci_private.h" | ||
13 | 13 | | |||
14 | //extern "C" is needed to proper linking with libpci | 14 | //extern "C" is needed to proper linking with libpci | ||
15 | extern "C" { | 15 | extern "C" { | ||
16 | #include <pci/pci.h> | 16 | #include <pci/pci.h> | ||
17 | } | 17 | } | ||
18 | #include <unistd.h> | 18 | #include <unistd.h> | ||
▲ Show 20 Lines • Show All 789 Lines • Show Last 20 Lines |