summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-26ddekit: Use libirqhelp for interrupt registrationddeDamien Zammit
Use the new irqhelp library in ddekit and clean up. Message-ID: <20240326045846.1661099-3-damien@zamaudio.com>
2023-08-12Use designated initializers when defining mach_msg_type_t in libmachdevddeFlavio Cruz
This avoids assuming a specific field order in mach_msg_type_t (see https://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/device/net_io.c?id=50b744c4c2877dfbec54dc7bdae0d141e34c17c3 for a similar change in gnumach). Message-Id: <ZNW92WyWfnzDKRgy@jupiter.tail36e24.ts.net>
2023-08-09libmachdevdde: Fix computing the start of the packetSamuel Thibault
Counting from the back with - sizeof net_msg.sent is very fragile since that depends on rounding performed on the whole structure. Better just use offsetof which is exactly meant for that.
2023-08-08libmachdevdde: Fix message size alignmentSamuel Thibault
The alignment expected by the kernel is on pointer size.
2023-06-1364bit: Use really-generic version of checksumSamuel Thibault
2023-05-21Pass ARCH to sub-makesSamuel Thibault
2023-05-2164bit: fix using memcpySamuel Thibault
2023-05-20Fix build against reinforced build optionsSamuel Thibault
2023-05-20fix typoSamuel Thibault
2023-05-20libdde_linux26: Add infrastructure to build on 64bitSamuel Thibault
2023-05-20hw-helpers: simplify crash_notes definitionSamuel Thibault
2023-05-2064bit: Add generic version of checksumSamuel Thibault
2023-05-2064bit: Add semaphore supportSamuel Thibault
2023-05-2064bit: Simplify per-cpu accessesSamuel Thibault
Rather than using pda, use the same arrays as on 32bit.
2023-05-2064bit: Make memory operations use trivial memcpy/memsetSamuel Thibault
2023-05-20skbuff: include net/ip6_checksum.hSamuel Thibault
To properly get csum definitions.
2023-05-2064bit: Add FRAME/ENDFRAME macrosSamuel Thibault
2022-02-12Fix warningSamuel Thibault
* libdde_linux26/lib/src/mach_glue/net.c (search_netdev), libmachdevdde/mach_glue.h (search_netdev): Make name parameter const char *.
2022-01-26libmachdevdde: Fix device_open prototypeSamuel Thibault
2022-01-16Make RPC input array parameters constSamuel Thibault
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side")
2021-03-16Write dde logs to /var/runSamuel Thibault
To avoid filling /var/log
2020-12-29libddekit: Use PIC objects for libddekit.soSamuel Thibault
We need to link in PIC-enabled objects to build .so files such as libmachdevdde.so.
2020-07-18Remove now-useless filesSamuel Thibault
2020-07-18libddekit: Use upstream user driver RPCsDamien Zammit
This requires gnumach with 6054cda4de23 ("Add hardware interrupt notification mechanism")
2020-06-19____ilog2_NaN: Drop spurious noreturn attributeSamuel Thibault
This function does return. The current Linux version does not include this spurious attribute.
2020-03-31Fix calling machdevddeSamuel Thibault
* libmachdevdde/net.c (register_net): Rename to machdevdde_register_net. * libmachdevdde/machdevdde.h (machdevdde_register_net): Add prototype. * dde_e100/main.c: Include <hurd/machdevdde.h>. (main): Call machdevdde_register_net instead of register_net, call machdev_device_init instead of mach_device_init, call machdev_trivfs_init instead of trivfs_init, call machdevdde_server instead of ds_server, call machdev_trivfs_server instead of trivfs_server. * dde_e1000/main.c: Likewise. * dde_ne2k_pci/main.c: Likewise. * dde_pcnet32/main.c: Likewise. * dde_rtl8139/main.c: Likewise.
2020-03-30Make libmachdevdde use libmachdevSamuel Thibault
2020-03-30machdev: Expose machdev_emul_device structureSamuel Thibault
* 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.
2020-03-30Drop spurious changesSamuel Thibault
2020-03-30Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into ddeSamuel Thibault
2020-03-30Add eth-multiplexer documentationZheng Da
* doc/hurd.texi (eth-multiplexer): Add section.
2020-03-30Remove spurious changeSamuel Thibault
2020-03-30Remove generated filesSamuel Thibault
2020-03-30Remove unused changeSamuel Thibault
2020-03-30Drop spurious changesSamuel Thibault
2020-03-30Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd into ddeSamuel Thibault
2020-03-30Rename DDE-based libmachdev to libmachdevddeSamuel Thibault
2020-03-29libmachdev: Add common machdevZheng Da
* libmachdev: New directory.
2020-03-29libstore: Fix memory leakSamuel Thibault
* libstore/device.c (dopen): Do not use strdup() for `rest'. Free `master'.
2020-03-29libstore: Add ability to pass custom master device with format ↵Damien Zammit
@master:/dev/device
2020-03-29pci-arbiter: Fix short reads from libpciaccessDamien Zammit
* pci-arbiter/pci-ops.c (S_pci_conf_read): Record and pass amount actually read from config memory. (S_pci_conf_write): Likewise for write.
2020-03-22build: Fix cross build on Guix.Jan Nieuwenhuizen
As discussed in https://lists.gnu.org/archive/html/bug-hurd/2020-03/msg00018.html. * Makeconf (lpath): Add -Wl,-rpath-link=<dir> next to -L<dir>.
2020-02-23pci-arbiter: Add --device command line optionJoan Lledó
Shortcut for -d, -b, -s and -f Usage: --device [<domain>:]<bus>:<slot>.<func> E.G. --device 00:05.0 is shortcut for -d 0 -b 0 -s 5 -f 0 * pci-arbiter/options.c: Implement --slot option * pci-arbiter/options.h: Add --slot to options list
2020-02-23pci-arbiter: Rename command line optionsJoan Lledó
Rename some CLI options in order to add the new -D --device arg. Replace -s by -c for subclasses. Replace -D by -d for domains. Domains are optional from now on, default to 0. Replace -d by -s for devices. The formerly called "devices" are now called "slots", and "device" will refer to a combination of Domain + Bus + Slot + Function Only -G and -U options create new permission scopes. * pci-arbiter/options.c: parse_opts(): Rename options * pci-arbiter/options.h: struct argp_option options[]: Likewise
2020-01-05pfinet: Fix buildSamuel Thibault
* pfinet/socket.c: Define _HACK_ERRNO_H to get a proper errno definition.
2020-01-05pfinet: Fix buildSamuel Thibault
errno is also used by glue headers, so we can not actually check it * pfinet/io-ops.c (S_io_reauthenticate): Do not check that it's EINTR that make_sock_user failed with.
2020-01-05lwip,pfinet: Make S_io_reauthenticate return errorSamuel Thibault
* lwip/io-ops.c (lwip_S_io_reauthenticate): Return errno on make_sock_user returning an error. * pfinet/io-ops.c (S_io_reauthenticate): Likewise.
2020-01-05lwip,pfinet: Fix crash on make_sock_user getting EINTRSamuel Thibault
_ports_create_port_internal may return EINTR. * lwip/port-objs.c (make_sock_user): Set errno when ports_create_port returns an error. * pfinet/socket.c (make_sock_user): Likewise. * lwip/io-ops.c (lwip_S_io_reauthenticate): Loop while make_sock_user errors with EINTR. * pfinet/io-ops.c (S_io_reauthenticate): Likewise.
2020-01-01libfshelp-tests: Fix cross-linkSamuel Thibault
* libfshelp-tests/Makefile (HURDLIBS): Add ihash and shouldbeinlibc. (race locks): Add ../libihash/libihash.a.
2020-01-01password: Drop unused -lcryptSamuel Thibault
* trans/Makefile (password-LDLIBS): Remove -lcrypt