Fixed missing and wrong includes in synopsis. The prerequisites for

using bus_alloc_resource(), etc., are especially unobvious, but were
especially wrong (<sys/resource.h> has nothing to do with the resources
documented here...).  Order and format the includes as correctly as
possible (a layering violation makes <machine/bus.h> a prerequisite for
<sys/rman.h>).
This commit is contained in:
bde 2001-02-15 12:21:44 +00:00
parent 096a6c0dc7
commit f8f709338a
2 changed files with 6 additions and 2 deletions

View File

@ -37,8 +37,10 @@
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/bus.h>
.Pp
.Fd #include <machine/bus.h>
.Fd #include <sys/rman.h>
.Fd #include <sys/resource.h>
.Fd #include <machine/resource.h>
.Ft struct resource *
.Fn bus_alloc_resource "device_t dev" "int type" "int *rid" "u_long start" "u_long end" "u_long count" "u_int flags"
.Sh DESCRIPTION

View File

@ -37,8 +37,10 @@
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/bus.h>
.Pp
.Fd #include <machine/bus.h>
.Fd #include <sys/rman.h>
.Fd #include <sys/resource.h>
.Fd #include <machine/resource.h>
.Ft int
.Fn bus_release_resource "device_t dev" "int type" "int rid" "struct resource *r"
.Sh DESCRIPTION