.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PCI_BUS_ALLOC_RESOURCE" "" "06 October 2005" "" ""
.SH NAME
pci_bus_alloc_resource \- allocate a resource from a parent bus
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pci_bus_alloc_resource (struct pci_bus * \fIbus\fB, struct resource * \fIres\fB, unsigned long \fIsize\fB, unsigned long \fIalign\fB, unsigned long \fImin\fB, unsigned int \fItype_mask\fB, void (*\fIalignf\fB)
void *, struct resource *, unsigned long, unsigned long, void * \fIalignf_data\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbus\fB\fR
PCI bus
.TP
\fB\fIres\fB\fR
resource to allocate
.TP
\fB\fIsize\fB\fR
size of resource to allocate
.TP
\fB\fIalign\fB\fR
alignment of resource to allocate
.TP
\fB\fImin\fB\fR
minimum /proc/iomem address to allocate
.TP
\fB\fItype_mask\fB\fR
IORESOURCE_* type flags
.TP
\fB\fIalignf\fB\fR
resource alignment function
.TP
\fB\fIalignf_data\fB\fR
data argument for resource alignment function
.SH "DESCRIPTION"
.PP
Given the PCI bus a device resides on, the size, minimum address,
alignment and type, try to find an acceptable resource allocation
for a specific device resource.