Commit 1c639ac6 authored by Pavel Pisa's avatar Pavel Pisa

driver: update user-space test for new reserved PID:VID 1760:0xff00.

Signed-off-by: Pavel Pisa's avatarPavel Pisa <pisa@cmp.felk.cvut.cz>
parent c0f3e451
Pipeline #6043 passed with stages
in 12 minutes and 25 seconds
...@@ -250,6 +250,8 @@ int main(int argc, char *argv[]) ...@@ -250,6 +250,8 @@ int main(int argc, char *argv[])
case 'r': test_read_speed = true; break; case 'r': test_read_speed = true; break;
case 'p': case 'p':
addrs[0] = pci_find_bar(0x1172, 0xcafd, 0, 1); addrs[0] = pci_find_bar(0x1172, 0xcafd, 0, 1);
if (!addrs[0])
addrs[0] = pci_find_bar(0x1760, 0xff00, 0, 1);
if (!addrs[0]) if (!addrs[0])
err(1, "-p PCI device not found"); err(1, "-p PCI device not found");
addrs[1] = addrs[0] + 0x4000; addrs[1] = addrs[0] + 0x4000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment