summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-07-07 13:21:46 +0000
committerru <ru@FreeBSD.org>2004-07-07 13:21:46 +0000
commitacd47d1822d69f8982fa19c0ac919de0d1ae9cd4 (patch)
treec15781deae37a0f59f4ab6c6a5c2988180303657 /share
parent2a70c21bd01618baef27c62d15c343fdbffac018 (diff)
downloadFreeBSD-src-acd47d1822d69f8982fa19c0ac919de0d1ae9cd4.zip
FreeBSD-src-acd47d1822d69f8982fa19c0ac919de0d1ae9cd4.tar.gz
Slight content fixes.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/pci.921
1 files changed, 10 insertions, 11 deletions
diff --git a/share/man/man9/pci.9 b/share/man/man9/pci.9
index 55ed70a..611a6f0 100644
--- a/share/man/man9/pci.9
+++ b/share/man/man9/pci.9
@@ -46,9 +46,8 @@
.In dev/pci/pcivar.h
.In dev/pci/pcireg.h
.In machine/pci_cfgreg.h
-.Pp
.Ft void
-.Fn pci_write_config "device_t dev" "int reg" "u_int32_t val" "int width"
+.Fn pci_write_config "device_t dev" "int reg" "uint32_t val" "int width"
.Ft int
.Fn pci_enable_busmaster "device_t dev"
.Ft int
@@ -61,12 +60,12 @@
.Fn pci_set_powerstate "device_t dev" "int state"
.Ft int
.Fn pci_get_powerstate "device_t dev"
-.Ft u_int32_t
+.Ft uint32_t
.Fn pci_read_config "device_t dev" "int reg" "int width"
.Ft device_t
-.Fn pci_find_bsf "u_int8_t" "u_int8_t" "u_int8_t"
+.Fn pci_find_bsf "uint8_t bus" "uint8_t slot" "uint8_t func"
.Ft device_t
-.Fn pci_find_device "u_int16_t" "u_int16_t"
+.Fn pci_find_device "uint16_t vendor" "uint16_t device"
.Sh DESCRIPTION
The
.Nm
@@ -124,7 +123,7 @@ The
.Fn pci_disable_io
function clears the appropriate bit.
The
-.Fa state
+.Fa space
argument specifies which resource is affected; this can be either
.Dv SYS_RES_MEMORY
or
@@ -144,7 +143,7 @@ state of
.Dv PCI_POWERSTATE_D0
is returned.
The following power states are defined by ACPI:
-.Bl -hang -width PCI_POWERSTATE_UNKNOWN
+.Bl -hang -width ".Dv PCI_POWERSTATE_UNKNOWN"
.It Dv PCI_POWERSTATE_D0
State in which device is on and running.
It is receiving full power from the system and delivering
@@ -152,14 +151,14 @@ full functionality to the user.
.It Dv PCI_POWERSTATE_D1
Class-specific low-power state in which device context may or
may not be lot.
-Buses in this state cannot do anything to the bus, to
+Busses in this state cannot do anything to the bus, to
force devices to lose context.
.It Dv PCI_POWERSTATE_D2
Class-specific low-power state in which device context may or
may not be lost.
Attains greater power savings than
.Dv PCI_POWERSTATE_D1 .
-Buses in this state can cause devices to lose some context.
+Busses in this state can cause devices to lose some context.
Devices
.Em must
be prepared for the bus to be in this state or higher.
@@ -193,7 +192,7 @@ of a PCI device, given its
.Fa bus ,
.Fa slot ,
and
-.Fa function .
+.Fa func .
.Pp
The
.Fn pci_find_device
@@ -209,7 +208,7 @@ only returns the first matching device.
.Sh IMPLEMENTATION NOTES
The
.Vt pci_addr_t
-type is varies according to the size of the PCI bus address
+type varies according to the size of the PCI bus address
space on the target architecture.
.Sh SEE ALSO
.Xr pci 4 ,
OpenPOWER on IntegriCloud