aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/machdev.h
Commit message (Collapse)AuthorAgeFilesLines
* libmachdev: Avoid conflating translator name and pathSamuel Thibault2020-11-141-1/+1
| | | | | | | | | | | | bootstrap translators may not wish to appear in the FS, and the name of the translator does not have to match the path where it is getting installed. * libmachdev/machdev.h (machdev_trivfs_init): Add path parameter. * libmachdev/trivfs_server.c (machdev_trivfs_init): Add path parameter, set devnode only if it is not NULL. (trivfs_S_fsys_init): Only call install_as_translator when devnode is not NULL. * /rumpdisk/main.c (main): Add path parameter.
* libmachdev: Introduce startup notification for clean rumpdisk shutdownDamien Zammit2020-08-021-0/+1
| | | | Message-Id: <20200801050538.273196-1-damien@zamaudio.com>
* libmachdev: Add resume for bootstrap serverDamien Zammit2020-07-251-3/+2
| | | | | | | | | | | | 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>
* machdev: Expose machdev_emul_device structureSamuel Thibault2020-03-301-0/+1
| | | | | | | | | | | | | | | * libmachdev/machdev-dev_hdr.h (DEVICE_NULL): Remove macro. (emul_device): Rename structure to machdev_emul_device. (emul_device_t): Rename type to machdev_emul_device_t. (mach_device, mach_device_t, MACH_DEVICE_NULL): Move to... * libmachdev/mach_device.h: ... new file. * libmachdev/ds_routines.c: Include "mach_device.h". * libmachdev/machdev-device_emul.h: Include <mach/notify.h>, <device/device_types.h>, <device/net_status.h>, <errno.h> * libmachdev/machdev.h: Include "machdev_hdr.h". * libmachdev/mig-decls.h: Include "mach_device.h". * libmachdev/Makefile (LCLHDRS): Add mach_device.h. (installhdrs): Add machdev-dev_hdr.h.
* libmachdev: Add common machdevZheng Da2020-03-291-0/+39
* libmachdev: New directory.