aboutsummaryrefslogtreecommitdiff
path: root/pci-arbiter/func_files.h
diff options
context:
space:
mode:
authorJoan Lledó <jlledom@member.fsf.org>2022-08-15 18:15:20 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-15 20:33:03 +0200
commit8171d2aa48184a4d1ed1299e1c87f1b898371688 (patch)
tree3fae659c5065eccf4a45864fca2e0038d76c4465 /pci-arbiter/func_files.h
parentb6509385bb1dd2a6d47401465bfb98b6339c5c2b (diff)
downloadhurd-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/func_files.h')
-rw-r--r--pci-arbiter/func_files.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pci-arbiter/func_files.h b/pci-arbiter/func_files.h
index 03cafee1..cf77374a 100644
--- a/pci-arbiter/func_files.h
+++ b/pci-arbiter/func_files.h
@@ -40,7 +40,7 @@ typedef int (*pci_io_op_t) (struct pci_device *dev, void *data,
error_t io_config_file (struct pci_device * dev, off_t offset, size_t * len,
void *data, pci_io_op_t op);
-error_t read_rom_file (struct pci_device *dev, off_t offset, size_t * len,
+error_t read_rom_file (struct pcifs_dirent * e, off_t offset, size_t * len,
void *data);
error_t io_region_file (struct pcifs_dirent *e, off_t offset, size_t * len,