You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
368 B
C
19 lines
368 B
C
4 years ago
|
#include <map>
|
||
|
#include <vector>
|
||
|
|
||
|
struct subsys_device
|
||
|
{
|
||
|
uint32_t vendor_id;
|
||
|
uint32_t device_id;
|
||
|
std::string desc;
|
||
|
};
|
||
|
|
||
|
struct device
|
||
|
{
|
||
|
std::string desc;
|
||
|
std::vector<subsys_device> subsys;
|
||
|
};
|
||
|
|
||
|
extern std::map<uint32_t /*vendor id*/, std::pair<std::string /*vendor desc*/, std::map<uint32_t /*device id*/, device>>> pci_ids;
|
||
|
|
||
|
void parse_pciids(void);
|