aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/machdev.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-07-25 11:18:44 +1000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-25 13:09:31 +0200
commit67c9d475e7204296ca9bcfbd08a896df1a87e74a (patch)
tree2a1d624c891740becfb2b95dd547dba4aa779036 /libmachdev/machdev.h
parent1bb4fdc3a2c725276d457d2fa7cd1962d3e232d6 (diff)
downloadhurd-67c9d475e7204296ca9bcfbd08a896df1a87e74a.tar.gz
hurd-67c9d475e7204296ca9bcfbd08a896df1a87e74a.tar.bz2
hurd-67c9d475e7204296ca9bcfbd08a896df1a87e74a.zip
libmachdev: Add resume for bootstrap server
machdev users can now pass along a port to the next translator in the bootstrap chain (bootstrap_resume_task), that they'll get from their command line set by the bootloader. machdev will then call task_resume on it as appropriate. It will also have the opportunity to get fsys_getpriv calls, and thus redirect the device master port, thus having the opportunity to expose its devices on the device master port, as if they were handled by the kernel. Message-Id: <20200725011847.186969-1-damien@zamaudio.com>
Diffstat (limited to 'libmachdev/machdev.h')
-rw-r--r--libmachdev/machdev.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmachdev/machdev.h b/libmachdev/machdev.h
index 9b2dbd31..55a56e0d 100644
--- a/libmachdev/machdev.h
+++ b/libmachdev/machdev.h
@@ -32,9 +32,8 @@ void machdev_register (struct machdev_device_emulation_ops *ops);
void machdev_device_init(void);
void * machdev_server(void *);
error_t machdev_create_device_port (size_t size, void *result);
-
-int machdev_trivfs_init(void);
-void machdev_trivfs_server(void);
+int machdev_trivfs_init(mach_port_t bootstrap_resume_task, const char *name, mach_port_t *bootstrap);
+void machdev_trivfs_server(mach_port_t bootstrap);
boolean_t machdev_is_master_device (mach_port_t port);
#endif