|
Lines 108-118
Link Here
|
| 108 |
device, which contains several (similar or independent) functions on |
108 |
device, which contains several (similar or independent) functions on |
| 109 |
one chip. |
109 |
one chip. |
| 110 |
.Pp |
110 |
.Pp |
| 111 |
The |
111 |
All invocations of |
| 112 |
.Fl l |
|
|
| 113 |
option is the only one available to non-root users. |
| 114 |
All other invocations of |
| 115 |
.Nm |
112 |
.Nm |
|
|
113 |
except for |
| 114 |
.Fl l |
| 116 |
require a |
115 |
require a |
| 117 |
.Ar selector |
116 |
.Ar selector |
| 118 |
of the form |
117 |
of the form |
|
Lines 163-168
Link Here
|
| 163 |
.Fl h |
162 |
.Fl h |
| 164 |
indicates a halfword (two-byte) operation. The default is to read or |
163 |
indicates a halfword (two-byte) operation. The default is to read or |
| 165 |
write a longword (four bytes). |
164 |
write a longword (four bytes). |
|
|
165 |
.Pp |
| 166 |
.Sh NOTE |
| 167 |
.Nm |
| 168 |
is limited to users with right access to |
| 169 |
.Em /dev/pci , |
| 170 |
usually |
| 171 |
.Em root . |
| 166 |
.Sh ENVIRONMENT |
172 |
.Sh ENVIRONMENT |
| 167 |
The PCI vendor/device information database is normally read from |
173 |
The PCI vendor/device information database is normally read from |
| 168 |
.Pa /usr/share/misc/pci_vendors . |
174 |
.Pa /usr/share/misc/pci_vendors . |
|
Lines 170-176
Link Here
|
| 170 |
.Ev PCICONF_VENDOR_DATABASE . |
176 |
.Ev PCICONF_VENDOR_DATABASE . |
| 171 |
.Sh SEE ALSO |
177 |
.Sh SEE ALSO |
| 172 |
.Xr ioctl 2 , |
178 |
.Xr ioctl 2 , |
| 173 |
.\" .Xr pci 4 , |
179 |
.Xr pci 4 , |
|
|
180 |
.Xr devinfo 8 , |
| 174 |
.Xr kldload 8 |
181 |
.Xr kldload 8 |
| 175 |
.Sh HISTORY |
182 |
.Sh HISTORY |
| 176 |
The |
183 |
The |
|
Lines 200-214
Link Here
|
| 200 |
.Nm , |
207 |
.Nm , |
| 201 |
but not in the underlying |
208 |
but not in the underlying |
| 202 |
.Xr ioctl 2 . |
209 |
.Xr ioctl 2 . |
| 203 |
.Pp |
|
|
| 204 |
It might be useful to give non-root users access to the |
| 205 |
.Fl a |
| 206 |
and |
| 207 |
.Fl r |
| 208 |
options. |
| 209 |
But only root will be able to execute a |
| 210 |
.Nm kldload |
| 211 |
to provide the device with a driver KLD, and reading of configuration space |
| 212 |
registers may cause a failure in badly designed |
| 213 |
.Tn PCI |
| 214 |
chips. |