Hello Hans, Hans J. Koch wrote: > On Thu, Apr 10, 2008 at 02:37:03PM +0200, Uwe Kleine-König wrote: > > Signed-off-by: Uwe Kleine-König > > --- > > drivers/uio/Kconfig | 7 ++ > > drivers/uio/Makefile | 1 + > > drivers/uio/uio_pdrv.c | 165 ++++++++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 173 insertions(+), 0 deletions(-) > > create mode 100644 drivers/uio/uio_pdrv.c > > I'm a bit slow today, I don't really understand what this is good for. > It's to complicated to serve as a template, and it doesn't support > interrupts, so it's not good for any real device, too. So the only > usecase would be an irq-less platform_device that just needs its memory > mapped. Is this what you intended? What do _you_ use it for? In my use case I don't use an irq, but you're free to provide a handler when you create the platform device. Attached is the file that provides an uio platform device. Current vanilla's support for ns9xxx isn't (yet) complete enough to compile that, but you should be able to see how it works. Best regards Uwe -- Uwe Kleine-König, Software Engineer Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962