Re: [PATCH] drivers/char/mem.c: Add /dev/ioports, supporting 16-bit and 32-bit ports

From: H. Peter Anvin
Date: Wed May 28 2014 - 17:42:20 EST


On 05/19/2014 05:36 AM, Arnd Bergmann wrote:
>
> My feeling is that all devices we can think of fall into at least one
> of these categories:
>
> * legacy PC stuff that needs only byte access
> * PCI devices that can be accessed through sysfs
> * devices on x86 that can be accessed using iopl
>

I don't believe PCI I/O space devices can be accessed through sysfs, but
perhaps I'm wrong? (mmapping I/O space is not portable.)


-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/