summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-03-29 05:09:15 +0000
committerimp <imp@FreeBSD.org>2003-03-29 05:09:15 +0000
commit6ee9b4c6fcd27cf7443c2b42627405e8889cd52c (patch)
treecb96ba0f86791b4646b7de0f65daea8b032ee207 /share/man
parent0c8ca48d87d424b6a8c89ef84747706f5fa17a9c (diff)
downloadFreeBSD-src-6ee9b4c6fcd27cf7443c2b42627405e8889cd52c.zip
FreeBSD-src-6ee9b4c6fcd27cf7443c2b42627405e8889cd52c.tar.gz
Fix some typos:
race->rare rman_activate_resource -> bus_activate_resource Add xref to bus_activate_resource Minor markup changes for the start/end/count parameters.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/bus_alloc_resource.920
1 files changed, 14 insertions, 6 deletions
diff --git a/share/man/man9/bus_alloc_resource.9 b/share/man/man9/bus_alloc_resource.9
index 9d862df..12a039e 100644
--- a/share/man/man9/bus_alloc_resource.9
+++ b/share/man/man9/bus_alloc_resource.9
@@ -47,7 +47,7 @@
This is an easy interface to the resource-management functions.
It hides the indirection through the parent's method table.
This function generally should be called in attach, but (except in some
-race cases) never earlier.
+rare cases) never earlier.
.Pp
Its arguments are as follows:
.Bl -item
@@ -87,14 +87,21 @@ and
are the start/end addresses of the resource.
If you specify values of
.Dv 0
-for start and
+for
+.Fa start
+and
.Dv ~0
-for end, the default values for the bus are calculated.
+for
+.Fa end
+and
+.Dv 1
+for
+.Fa count ,
+the default values for the bus are calculated.
.It
.Fa count
is the size of the resource, e.g. the size of an I/O port (often
-.Dv 1
-on PCI and device-dependent on ISA and PCCARD).
+.Dv 1, but some devices override this).
If you specified the default values for
.Fa start
and
@@ -112,7 +119,7 @@ You can set one or more of these flags:
.It Dv RF_ALLOCATED
resource has been reserved.
The resource still needs to be activated with
-.Xr rman_activate_resource 9 .
+.Xr bus_activate_resource 9 .
.It Dv RF_ACTIVE
activate resource atomically.
.It Dv RF_SHAREABLE
@@ -148,6 +155,7 @@ should be saved in the softc of the device after these calls.
0ul, ~0ul, 1, RF_ACTIVE | RF_SHAREABLE);
.Ed
.Sh SEE ALSO
+.Xr bus_activate_resource 9 ,
.Xr bus_release_resource 9 ,
.Xr device 9 ,
.Xr driver 9
OpenPOWER on IntegriCloud