All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabian Maurer <dark.shadow4@web.de>
To: linux-kernel@vger.kernel.org
Subject: Usage of the UIO framework with DMA and x86 ports
Date: Mon, 03 Jan 2022 05:54:01 +0100	[thread overview]
Message-ID: <6089204.lOV4Wx5bFT@arch> (raw)

Hello,

I want to port the pcnet32 driver to userland for learning purposes. Maybe for
something like ndiswrapper but in userspace.

I wanted to ask if it's possible to use UIO for PCI devices that need DMA and
x86 ports access. Preferably without writing my own kernel module.
The documentation I found i a bit... lacking.

Interrupts and memory-mapped-io are possible with uio_pci_generic, but not
sure about DMA and ports. Ports are doable with a custom kernel module, but I
didn't find anything for using DMA with UIO. Except for creating your own
solution.

Is there something in UIO that allows me to avoid messing with kernel modules?

Second, low priority question:
For the ndsiwrapper-in-userland idea I'd need to do the same with USB. Do I
need to create my own solution here or can this also be done with UIO?

Please CC me in replies.

Regards,
Fabian Maurer



                 reply	other threads:[~2022-01-03  4:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6089204.lOV4Wx5bFT@arch \
    --to=dark.shadow4@web.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.