.\" Contributed by Niki A. Rahimi, LTC Security Development
.\" narahimi@us.ibm.com
+.\"
.\" %%%LICENSE_START(FREELY_REDISTRIBUTABLE)
-.\" May be freely distributed.
-.\" %%%END_LICENSE
+.\" May be freely distributed and modified.
+.\" %%%LICENSE_END
.\"
-.TH PCICONFIG_READ 2 2003-07-14 "Linux" "Linux Programmer's Manual"
+.TH PCICONFIG_READ 2 2016-07-17 "Linux" "Linux Programmer's Manual"
.SH NAME
pciconfig_read, pciconfig_write, pciconfig_iobase \- pci device information handling
.SH SYNOPSIS
.nf
.B #include <pci.h>
-.sp
+.PP
.BI "int pciconfig_read(unsigned long " bus ", unsigned long " dfn ,
.BI " unsigned long " off ", unsigned long " len ", void *" buf );
.BI "int pciconfig_write(unsigned long " bus ", unsigned long " dfn ,
.SH RETURN VALUE
.TP
.BR pciconfig_read ()
-On success zero is returned.
+On success, zero is returned.
On error, \-1 is returned and
.I errno
is set appropriately.
.TP
.BR pciconfig_write ()
-On success zero is returned.
+On success, zero is returned.
On error, \-1 is returned and
.I errno
is set appropriately.
not defined).
.TP
.B EOPNOTSUPP
-This return value is only valid for
+This return value is valid only for
.BR pciconfig_iobase ().
It is returned if the value for
.I which
is invalid.
.TP
.B EPERM
-User does not have the \fBCAP_SYS_ADMIN\fP capability.
+User does not have the
+.B CAP_SYS_ADMIN
+capability.
This does not apply to
.BR pciconfig_iobase ().
.SH CONFORMING TO