From 67c9d475e7204296ca9bcfbd08a896df1a87e74a Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sat, 25 Jul 2020 11:18:44 +1000 Subject: 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> --- libmachdev/machdev.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libmachdev/machdev.h') 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 -- cgit v1.2.3