Replace libpci with new parser.

libpci was only used to find a marketing string for a device.
This patch looks for a pci.ids on disk and parses it to extract the
same string, using 'Device xxxx' as the fallback on file i/o error
or missing data from the text file. Tested by checking every vendor/
device pair against the values returned from libpci.

Change-Id: I21af3157472c1824d57fcee31393c6ee8ce07330
Signed-off-by: Jon Chesterfield <Jonathan.Chesterfield@amd.com>


[ROCm/ROCR-Runtime commit: 0a1718b753]
このコミットが含まれているのは:
Jon Chesterfield
2020-03-19 01:04:28 +00:00
コミット ffadc0c8c6
7個のファイルの変更373行の追加26行の削除
+4 -4
ファイルの表示
@@ -77,11 +77,11 @@ struct perf_shared_table {
struct perf_counts_values {
union {
struct {
u64 val;
u64 ena;
u64 run;
uint64_t val;
uint64_t ena;
uint64_t run;
};
u64 values[3];
uint64_t values[3];
};
};