device-drivers: pci: fixes

Obsolete code updated to the actual kernel PCI API.
Changed test-cases handling from ioctl to sysfs.
User-space program rewritten.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
8 files changed