diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:34:01 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:34:01 +0000 |
commit | eff83876b694c469eb9385a3bc106c8f66c72e75 (patch) | |
tree | 9e95619450dade04a441482adba314c650089f3f /sys/dev/hptrr/hptrr_os_bsd.c | |
parent | 7ae7c1932bc6f6f722e926ede5a92020ded80cd5 (diff) | |
download | src-eff83876b694c469eb9385a3bc106c8f66c72e75.tar.gz src-eff83876b694c469eb9385a3bc106c8f66c72e75.zip |
Replace several bus_alloc_resource() calls with bus_alloc_resource_any()
Most of these are BARs, and we allocate them in their entirety. The one outlier
in this is amdsbwd, which calls bus_set_resource() prior.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D5370 (partial)
Notes
Notes:
svn path=/head/; revision=296135
Diffstat (limited to 'sys/dev/hptrr/hptrr_os_bsd.c')
-rw-r--r-- | sys/dev/hptrr/hptrr_os_bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/hptrr/hptrr_os_bsd.c b/sys/dev/hptrr/hptrr_os_bsd.c index 8600a8cd45a6..6cd01e5017f4 100644 --- a/sys/dev/hptrr/hptrr_os_bsd.c +++ b/sys/dev/hptrr/hptrr_os_bsd.c @@ -98,8 +98,8 @@ void *os_map_pci_bar( else hba->pcibar[index].type = SYS_RES_MEMORY; - hba->pcibar[index].res = bus_alloc_resource(hba->pcidev, - hba->pcibar[index].type, &hba->pcibar[index].rid, 0, ~0, length, RF_ACTIVE); + hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, + hba->pcibar[index].type, &hba->pcibar[index].rid, RF_ACTIVE); hba->pcibar[index].base = (char *)rman_get_virtual(hba->pcibar[index].res) + offset; return hba->pcibar[index].base; |