[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Rump on GNU/Hurd (4): Userspace PCI I/O
From: |
Robert Millan |
Subject: |
[PATCH] Rump on GNU/Hurd (4): Userspace PCI I/O |
Date: |
Sun, 16 Aug 2015 13:09:59 +0200 |
User-agent: |
Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 |
Hi,
This patch adds GNU/Hurd support to pci-userspace. Some notes:
* It uses libpciaccess to query/modify the PCI config stuff. This part of the
code is pretty
generic, perhaps this approach can be useful to other ports?
* It relies on the patch I sent yesterday (allow setting LDFLAGS from
pci-userspace Makefile)
to setup libpciaccess dependency
* It uses experimental GNU Mach interfaces that were added for DDE:
- vm_allocate_contiguous() to allocate contigously physical memory
- device_intr_register() / device_intr_enable() to synchronize with interrupts
* It includes code from other people under GPLv2; I'm not sure if this may be
an issue wrt licensing
policy of Rump as this is only targetted at the pci-userspace module. In any
case if you
think it's an issue let me know and we'll try to find a solution:
- intrthread() is heavily based on intloop() from hurd/libddekit/interrupt.c
- experimentalUser.c is an automatically generated file copied from the Hurd
build tree. I
would welcome some help from MIG experts on how to do this in a more
elegant way.
- intr.h was just copied from GNU Mach source tree (I don't think it is
copyright-significant
though).
--
Robert Millan
hurd_4_pci.diff
Description: Text Data
- [PATCH] Rump on GNU/Hurd (4): Userspace PCI I/O,
Robert Millan <=