summaryrefslogtreecommitdiff
path: root/libmachdev/ds_routines.c
AgeCommit message (Collapse)Author
2014-11-26sync libmachdevJustus Winter
2014-04-13sync with dde-fixesJustus Winter
2014-04-12sync dde stuffJustus Winter
2014-04-11libmachdev: fix function declarationJustus Winter
* libmachdev/ds_routines.c: Include mig-generated device_S.h. (ds_device_intr_register): Fix function declaration.
2014-04-11libmachdev: fix receiver lookupsJustus Winter
Previously, the device definitions were filtered using sed to replace the device_t type with mach_port_send_t to make the device argument of device_open polymorphic. Rather than doing that, which makes it impossible to use translation functions, the definition of device_open has been amended. * libmachdev/Makefile: Remove ourdevice hack that changes device_t to mach_port_send_t. * libmachdev/device.defs (device_open): Make the device parameter polymorphic like it was done in gnumach. * libmachdev/ds_routines.c (port_bucket): Drop static qualifier so that it can be used in the intrans function. (dev_class): Likewise. (ds_*): Fix all device_t receiver lookups. * libmachdev/mig-decls.h: New file. * libmachdev/mig-mutate.h: Add mutators.
2014-04-11libmachdev: remove unused functionJustus Winter
* libmachdev/ds_routines.c (mach_device_reference): Remove unused function.
2014-04-11libmachdev: avoid doing pointer arithmetic to get the port_infoJustus Winter
Previously, mach_convert_port_to_device would return a pointer to struct emul_device, which is embedded in struct mach_device. In order to get to the port_info structure which is right before that, device_to_pi would subtract offsetof (struct mach_device, dev) from the pointer. Avoid that by making mach_convert_port_to_device return a pointer to struct mach_device instead. * libmachdev/ds_routines.c (mach_convert_port_to_device): Return struct mach_dev *. (device_to_pi): Remove now unused function. (ds_device_close): Adjust accordingly. (ds_device_write): Likewise. (ds_device_write_inband): Likewise. (ds_device_read): Likewise. (ds_device_read_inband): Likewise. (ds_device_set_status): Likewise. (ds_device_get_status): Likewise. (ds_device_set_filter): Likewise.
2013-09-23New upstream snapshotSamuel Thibault
2012-11-25Move DDE to pthreadsRichard Braun
2011-08-23rename device_intr_notify into device_intr_registerSamuel Thibault
2011-08-23rename device_irq_enable into device_intr_enableSamuel Thibault
2010-08-08Make the thread of DS server known to Linux.Zheng Da
2010-08-08check emul_device_t object in all DS server RPCs.Zheng Da
2010-06-21fix port leak in block glue code of libmachdev.Zheng Da
2010-06-05skip calling init if there is no init.Zheng Da
2010-06-04remove the declaration of linux_net_emulation_ops.Zheng Da
2010-05-31make glue code of networking more independant.Zheng Da
This change is required for block device drivers. When block device drivers are linked to the glue code, the linker should be able to perform garbage collection and exclude the code of networking from the driver programs.
2010-02-27remove RPCs for PCI conf space.Zheng Da
2010-02-08remove io done thread.Zheng Da
eliminate a potential race condition in thread_wait and thread_wakeup.
2010-02-05dereference ports when return D_INVALID_OPERATIONS in device requests.Zheng Da
2010-02-05create a thread for only handling device requests.Zheng Da
2010-02-01check in libmachdev.Zheng Da