Lines Matching +full:non +full:- +full:pci
1 .. SPDX-License-Identifier: GPL-2.0
4 Accessing PCI device resources through sysfs
7 sysfs, usually mounted at /sys, provides access to PCI resources on platforms
11 |-- 0000:17:00.0
12 | |-- class
13 | |-- config
14 | |-- device
15 | |-- enable
16 | |-- irq
17 | |-- local_cpus
18 | |-- remove
19 | |-- resource
20 | |-- resource0
21 | |-- resource1
22 | |-- resource2
23 | |-- revision
24 | |-- rom
25 | |-- subsystem_device
26 | |-- subsystem_vendor
27 | `-- vendor
28 `-- ...
30 The topmost element describes the PCI domain and bus number. In this case,
39 class PCI class (ascii, ro)
40 config PCI config space (binary, rw)
41 device PCI device (ascii, ro)
46 resource PCI resource host addresses (ascii, ro)
47 resource0..N PCI resource N, if present (binary, mmap, rw\ [1]_)
48 resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap)
49 revision PCI revision (ascii, ro)
50 rom PCI ROM resource, if present (binary, ro)
51 subsystem_device PCI subsystem device (ascii, ro)
52 subsystem_vendor PCI subsystem vendor (ascii, ro)
53 vendor PCI vendor (ascii, ro)
58 ro - read only file
59 rw - file is readable and writable
60 wo - write only file
61 mmap - file is mmapable
62 ascii - file contains ascii text
63 binary - file contains binary data
64 cpumask - file contains a cpumask type
83 The 'rom' file is special in that it provides read-only access to the device's
91 The 'remove' file is used to remove the PCI device, by writing a non-zero
92 integer to the file. This does not involve any kind of hot-plug functionality,
94 PCI devices, the sysfs directory for it is removed, and the device will be
95 removed from any drivers attached to it. Removal of PCI root buses is
99 ----------------------------------------
102 underlying platform supports them. They're located in the PCI class hierarchy,
106 |-- bridge -> ../../../devices/pci0000:17
107 |-- cpuaffinity
108 |-- legacy_io
109 `-- legacy_mem
119 Supporting PCI access on new platforms
120 --------------------------------------
122 In order to support PCI resource mapping as described above, Linux platform
125 mmap() through files in /proc/bus/pci, platforms may also set HAVE_PCI_MMAP.
131 Platforms which support write-combining maps of PCI resources must define
132 arch_can_pci_mmap_wc() which shall evaluate to non-zero at runtime when
133 write-combining is permitted. Platforms which support maps of I/O resources