Messages in this thread | | | Date | Mon, 17 Dec 2007 08:57:50 +1100 | From | Paul Mackerras <> | Subject | Re: [RFC PATCH 08/12] PAT 64b: coherent mmap and sysfs bin ioctl |
| |
Greg KH writes:
> Ok, sorry, it wasn't blindingly obvious that this was for pci sysfs > devices that are mmaped, that makes a bit more sense. > > But I'd like to see what ioctl is wanted here first.
I believe the ioctl would be to set whether the mapping goes to I/O or memory space, and whether write-combining is allowed.
So the alternative to the ioctl would be to have multiple files in sysfs, one per combination of modes -- i.e., 4 files, or 3 if we exclude the "I/O with write combining" mode, which would be reasonable.
Paul.
| |