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:
parent
096a6c0dc7
commit
f8f709338a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user