allready head that idea. here a snippet for a valid rx580 pci id:
open("/sys/bus/pci/devices/0000:01:00.0/config", O_RDONLY) = 3
pread64(3, "\0\3", 2, 10) = 2
close(3) = 0
open("/sys/bus/pci/devices/0000:01:00.0/config", O_RDONLY) = 3
pread64(3, "\2\20", 2, 0) = 2
close(3) = 0
open("/sys/bus/pci/devices/0000:01:00.0/config", O_RDONLY) = 3
pread64(3, "\2\20", 2, 0) = 2
close(3) = 0
open("/sys/bus/pci/devices/0000:01:00.0/config", O_RDONLY) = 3
pread64(3, "\347\0\0\3", 4, 8) = 4
close(3) = 0
open("/sys/bus/pci/devices/0000:01:00.0/config", O_RDONLY) = 3
pread64(3, "\337g", 2, 2) = 2
close(3) = 0
iopl(3) = 0
iopl(3) = 0