aboutsummaryrefslogtreecommitdiff
path: root/pci-arbiter/pcifs.h
diff options
context:
space:
mode:
authorJoan Lledó <jlledom@member.fsf.org>2022-01-08 13:15:37 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-08 19:10:50 +0100
commit7c3743a6d1cf06fe5130628c9f39cc3c41128d22 (patch)
tree0b3a7e3a397eb7aee919d48c8bee295ccaadc62e /pci-arbiter/pcifs.h
parent78102136e63b4bdccd06982fd8708b6832225be7 (diff)
downloadhurd-7c3743a6d1cf06fe5130628c9f39cc3c41128d22.tar.gz
hurd-7c3743a6d1cf06fe5130628c9f39cc3c41128d22.tar.bz2
hurd-7c3743a6d1cf06fe5130628c9f39cc3c41128d22.zip
pci-arbiter: Stop using deprecated region memory pointer
Use a internal array of pointers instead * pci-arbiter/device_map.h: * Update device_map_region() prototype * Now it receives an output address as parameter * pci-arbiter/device_map.c: * Update device_map_region() definition to match the new prototype * Support for legacy mappings * When the base address is lower than 1 mb * pci-arbiter/func_files.c: * pci-arbiter/netfs_impl.c: * Update calls to device_map_region to match the new prototype * Use the internal array of pointers instead of region->memory * pci-arbiter/pcifs.h: * struct pcifs_dirent: Declare the internal array of pointers Message-Id: <20220108121537.6277-2-jlledom@mailfence.com>
Diffstat (limited to 'pci-arbiter/pcifs.h')
-rw-r--r--pci-arbiter/pcifs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pci-arbiter/pcifs.h b/pci-arbiter/pcifs.h
index 18f2141c..050c9e32 100644
--- a/pci-arbiter/pcifs.h
+++ b/pci-arbiter/pcifs.h
@@ -91,6 +91,13 @@ struct pcifs_dirent
* Only for entries having a full B/D/F address.
*/
struct pci_device *device;
+
+ /*
+ * Array of addresses where regions are mapped
+ *
+ * Only when a device is present
+ */
+ void *region_maps[6];
};
/*