Skip to content

Commit

Permalink
source/pci: add testdata for the unit tests
Browse files Browse the repository at this point in the history
Add mock sysfs entries for testing PCI device discovery.
  • Loading branch information
marquiz committed Feb 15, 2024
1 parent b969a7f commit fcddb82
Show file tree
Hide file tree
Showing 262 changed files with 253 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x088000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x2021
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
255
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d00002021sv00008086sd000035CFbc08sc80i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
poolinfo - 0.1
completion_pool 0 64 64 1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xff0000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa1ed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A1EDsv00008086sd000035CFbcFFsc00i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x010601
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa1d2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
41
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PCH Integrated sSATA Controller
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A1D2sv00008086sd000035CFbc01sc06i01
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x118000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa1b1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A1B1sv00008086sd000035CFbc11sc80i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x078000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa1ba
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
255
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A1BAsv00008086sd000035CFbc07sc80i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x060400
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.0 GT/s PCIe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa193
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
24
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.0 GT/s PCIe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A193sv00008086sd000035CFbc06sc04i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xf4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A dummy incomplete device
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x058000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x0c8000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0xa1a4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00008086d0000A1A4sv00008086sd000035CFbc0Csc80i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
unknown
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x04
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x35cf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x8086
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x030000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x2000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ASPEED AST2500
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0000,019c6700,00019c67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pci:v00001A03d00002000sv00001A03sd00002000bc03sc00i00
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pm bus
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x41
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x2000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x1a03
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x1a03
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x0b4000
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
48
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.0 GT/s PCIe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x37c8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
48
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(null)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1:0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
identity
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0-2,5-6,10-12,15-16,40-42,45-46,50-52,55-56
Loading

0 comments on commit fcddb82

Please sign in to comment.