diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-01-27 02:23:54 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-01-27 02:23:54 +0000 |
commit | 2dd1bdf1834c53d048d3d9a7079b45afea5cecd7 (patch) | |
tree | 5ac500b634909ff3fe2556201aef7e16d85316d2 /sys/dev/pci/pci_private.h | |
parent | 1cdc5f0b8794e82f0cbf9dca07967ca2559ba331 (diff) | |
download | src-2dd1bdf1834c53d048d3d9a7079b45afea5cecd7.tar.gz src-2dd1bdf1834c53d048d3d9a7079b45afea5cecd7.zip |
Convert rman to use rman_res_t instead of u_long
Summary:
Migrate to using the semi-opaque type rman_res_t to specify rman resources. For
now, this is still compatible with u_long.
This is step one in migrating rman to use uintmax_t for resources instead of
u_long.
Going forward, this could feasibly be used to specify architecture-specific
definitions of resource ranges, rather than baking a specific integer type into
the API.
This change has been broken out to facilitate MFC'ing drivers back to 10 without
breaking ABI.
Reviewed By: jhb
Sponsored by: Alex Perez/Inertial Computing
Differential Revision: https://reviews.freebsd.org/D5075
Notes
Notes:
svn path=/head/; revision=294883
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r-- | sys/dev/pci/pci_private.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h index 7795747bd219..a49435e03562 100644 --- a/sys/dev/pci/pci_private.h +++ b/sys/dev/pci/pci_private.h @@ -105,8 +105,8 @@ int pci_msix_count_method(device_t dev, device_t child); int pci_msix_pba_bar_method(device_t dev, device_t child); int pci_msix_table_bar_method(device_t dev, device_t child); struct resource *pci_alloc_resource(device_t dev, device_t child, - int type, int *rid, u_long start, u_long end, u_long count, - u_int flags); + int type, int *rid, rman_res_t start, rman_res_t end, + rman_res_t count, u_int flags); int pci_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r); int pci_activate_resource(device_t dev, device_t child, int type, @@ -151,8 +151,8 @@ struct pci_map *pci_add_bar(device_t dev, int reg, pci_addr_t value, pci_addr_t size); struct resource *pci_alloc_multi_resource(device_t dev, device_t child, - int type, int *rid, u_long start, u_long end, u_long count, - u_long num, u_int flags); + int type, int *rid, rman_res_t start, rman_res_t end, + rman_res_t count, u_long num, u_int flags); int pci_iov_attach_method(device_t bus, device_t dev, struct nvlist *pf_schema, struct nvlist *vf_schema); @@ -162,8 +162,8 @@ device_t pci_create_iov_child_method(device_t bus, device_t pf, uint16_t rid, uint16_t vid, uint16_t did); struct resource *pci_vf_alloc_mem_resource(device_t dev, device_t child, - int *rid, u_long start, u_long end, u_long count, - u_int flags); + int *rid, rman_res_t start, rman_res_t end, + rman_res_t count, u_int flags); int pci_vf_release_mem_resource(device_t dev, device_t child, int rid, struct resource *r); #endif /* _PCI_PRIVATE_H_ */ |