summaryrefslogtreecommitdiff
path: root/libmachdev
AgeCommit message (Collapse)Author
2014-09-08Revert "do not prevent dynamic linking"Justus Winter
This reverts commit 4e73b89e56369a260e7368cfce0d6b2fc2e0e0a5.
2014-09-07do not prevent dynamic linkingJustus Winter
2014-09-03update libmachdev from hurd-ddeJustus 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.
2014-04-07libports: fix notify_port_t receiver lookupsJustus Winter
This is a patch that in conjunction with e9687ec4ff525ae4a88314ba4ae97da770bd012f fixes the receiver lookups for the notify_port_t type. * devnode/Makefile (MIGSFLAGS): Use mig-mutate.h. * eth-filter/Makefile: Likewise. * eth-multiplexer/Makefile: Likewise. * libmachdev/Makefile: Likewise. * devnode/mig-mutate.h: New file. * eth-filter/mig-mutate.h: Likewise. * eth-multiplexer/mig-mutate.h: Likewise. * libmachdev/mig-mutate.h: Likewise. * devnode/devnode.c: Adjust accordingly. * eth-filter/filter.c: Likewise. * eth-multiplexer/notify_impl.c: Likewise. * libmachdev/trivfs_server.c: Likewise.
2013-09-23New upstream snapshotSamuel Thibault
2013-02-25Merge branch 'dde-upstream' into ddeSamuel Thibault
2013-02-24Fix getting parameter for set_statusSamuel Thibault
* libmachdev/net.c (device_set_status): Use count as number of parameter, not number of bytes. Take status as integer, not short.
2012-11-27Move DDE to pthreadsRichard Braun
Makefiles, headers, types, macros and function calls are renamed where appropriate. ds_server now takes a void* and returns a void*. * dde26_test/Makefile: Switch from cthreads to pthreads. * dde_e100/Makefile: Likewise. * dde_e100/main.c: Likewise. * dde26_test/Makefile: Likewise. * dde_e100/Makefile: Likewise. * dde_e100/main.c: Likewise. * dde_e1000/Makefile: Likewise. * dde_e1000/main.c: Likewise. * dde_ne2k_pci/Makefile: Likewise. * dde_ne2k_pci/main.c: Likewise. * dde_pcnet32/Makefile: Likewise. * dde_pcnet32/main.c: Likewise. * dde_pcnet32_test/Makefile: Likewise. * dde_rtl8139/Makefile: Likewise. * dde_rtl8139/main.c: Likewise. * libbpf/Makefile: Likewise. * libddekit/Makefile: Likewise. * libddekit/condvar.c: Likewise. * libddekit/lock.c: Likewise. * libddekit/pgtab.c: Likewise. * libddekit/thread.c: Likewise. * libddekit/timer.c: Likewise. * libhurd-slab/Makefile: Likewise. * libhurd-slab/slab.c: Likewise. * libhurd-slab/slab.h: Likewise. * libmachdev/Makefile: Likewise. * libmachdev/dev_hdr.h: Likewise. * libmachdev/ds_routines.c: Likewise. * libmachdev/if_hdr.h: Likewise. * libmachdev/io_req.h: Likewise. * libmachdev/machdev.h: Likewise. * libmachdev/net.c: Likewise. * libmachdev/queue.h: Likewise.
2012-11-25Merge branch 'dde-upstream' into ddeSamuel Thibault
Conflicts: dde_e100/Makefile dde_e1000/Makefile dde_ne2k_pci/Makefile dde_pcnet32/Makefile dde_rtl8139/Makefile
2012-11-25Move DDE to pthreadsRichard Braun
2012-06-05Merge remote-tracking branch 'incubator/dde' into dde-upstreamSamuel Thibault
2012-05-20Do not stop delivering packets when a pfinet has diedSamuel Thibault
We should remove the pfinet from the list instead. * libmachdev/net.c (deliver_msg): Do not break the deliver loop when mach_msg returned an error.
2012-02-22Clean up includesSamuel Thibault
To use the standard hurd Makeconf rules and permit external dde_* build Conflicts: dde_e100/Makefile dde_e1000/Makefile dde_ne2k_pci/Makefile dde_pcnet32/Makefile dde_rtl8139/Makefile
2012-02-22Clean up includesSamuel Thibault
To use the standard hurd Makeconf rules and permit external dde_* build
2012-02-19Merge branch 'dde-upstream' into ddeSamuel Thibault
2012-02-19Prevent dynamic linkingSamuel Thibault
2012-02-19Install machdev.hSamuel Thibault
2012-02-19Install machdev.hSamuel Thibault
2012-02-19cleanupSamuel Thibault
2012-02-19cleanupSamuel Thibault
2012-02-19Merge remote-tracking branch 'mainline/master' into ddeSamuel Thibault
Conflicts: Makefile boot/ChangeLog boot/boot.c configure configure.in doc/ChangeLog libdiskfs/ChangeLog libdiskfs/boot-start.c libports/manage-multithread.c libthreads/ChangeLog libthreads/alpha/thread.c pfinet/ChangeLog pfinet/iioctl-ops.c pfinet/linux-src/net/ipv6/addrconf.c pfinet/linux-src/net/ipv6/icmpv6.c utils/settrans.c
2012-02-18remove duplicate headers, to be replaced by experimental.defsSamuel Thibault
2011-08-23missing irq->line renamingSamuel Thibault
2011-08-23rename device_intr_notify into device_intr_registerSamuel Thibault
2011-08-23rename device_irq_enable into device_intr_enableSamuel Thibault
2011-05-08reorder vm_allocate_contiguous parameter like vm_allocateSamuel Thibault
2011-05-08Rename vm_dma_buff_alloc RPC into vm_allocate_contiguousSamuel Thibault
2011-05-08Do not skip old RPCsSamuel Thibault
2010-08-18fix a bug in device_read for block devices.Zheng Da
2010-08-08implement device_read for block devices.Zheng Da
2010-08-08fix a bug in device_write for the block device.Zheng Da
2010-08-08check if the device exists.Zheng Da
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-08-04not print errors if fails to deliver packages.Zheng Da
2010-08-01Use BPF to filter the packets to be delivered.Zheng Da
2010-06-21fix port leak in block glue code of libmachdev.Zheng Da
2010-06-21create send right when block device is opened.Zheng Da
2010-06-17fix a bug in device_open in libmachdev.Zheng Da
check the negative error value.
2010-06-17fix a bug in linux_block_emulation_opsZheng Da
2010-06-16add fsys opt support in dde drivers.Zheng Da
2010-06-14fix compiling problems in libddekit and libmachdev.Zheng Da
2010-06-05skip calling init if there is no init.Zheng Da
2010-06-04support block devices in the DDE library.Zheng Da