diff options
author | Joan Lledó <jlledom@member.fsf.org> | 2022-08-15 18:15:20 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-15 20:33:03 +0200 |
commit | 8171d2aa48184a4d1ed1299e1c87f1b898371688 (patch) | |
tree | 3fae659c5065eccf4a45864fca2e0038d76c4465 /pci-arbiter/pcifs.h | |
parent | b6509385bb1dd2a6d47401465bfb98b6339c5c2b (diff) | |
download | hurd-8171d2aa48184a4d1ed1299e1c87f1b898371688.tar.gz hurd-8171d2aa48184a4d1ed1299e1c87f1b898371688.tar.bz2 hurd-8171d2aa48184a4d1ed1299e1c87f1b898371688.zip |
Implement mapping for ROM files
* pci-arbiter/device_map.h:
* pci-arbiter/device_map.c:
* New function: device_map_rom
* Copies the whole rom in the arbiter space.
* pci-arbiter/pcifs.h:
* struct pcifs_dirent:
* New field to store the mapping address for each device rom.
o pci-arbiter/func_files.h:
* pci-arbiter/func_files.c:
* read_rom_file:
* Retrieves the rom contents from the local space instead of
libpciaccess.
* pci-arbiter/netfs_impl.c:
* netfs_attempt_read:get_filemap_region
* Update call to read_rom_file.
* get_filemap_region:
* Uses the old code at netfs_get_filemap to get a proxy to
the device memory region.
* get_filemap_rom:
* Returns a proxy to the locally mapped device rom.
* netfs_get_filemap:
* Checks the requested file to map and calls get_filemap_rom,
get_filemap_region or returns en error.
Message-Id: <20220815161520.6059-2-jlledom@mailfence.com>
Diffstat (limited to 'pci-arbiter/pcifs.h')
-rw-r--r-- | pci-arbiter/pcifs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pci-arbiter/pcifs.h b/pci-arbiter/pcifs.h index 050c9e32..373dd4bd 100644 --- a/pci-arbiter/pcifs.h +++ b/pci-arbiter/pcifs.h @@ -98,6 +98,13 @@ struct pcifs_dirent * Only when a device is present */ void *region_maps[6]; + + /* + * Address where the rom is mapped + * + * Only when a device is present + */ + void *rom_map; }; /* |