Re: mmap KSEG1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ed Okerson wrote:
Is it possible to mmap an address in KSEG1 so a user space app can
read/write to an IO device uncached?


It depends on your definition of 'possible'. The mips32/64 architecture specification has a 'C' field in the EntryLo register that controls cachability, so given an appropriate device driver it should be doable.

Calling __ioremap() with the appropriate flags should allow you to set the 'C' bits.

Depending on your requirements, you might be able to get by using /dev/mem and some 'sync' instructions, instead of establishing an uncached mapping.


David Daney


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux