Zhang Le <r0bertz@xxxxxxxxxx> writes: > Hi, all, Hi, > Then I tried to read kernel code. I found it seems that for mips linux to have > this file, HAVE_PCI_MMAP must be defined. However, it is currently not defined. > > Since I am not familiar with PCI, yet. > So could someone please shed some light on this? > Why HAVE_PCI_MMAP is not defined? HAVE_PCI_MMAP must be defined when you have a pci_mmap_page_range() function (see Documentation/filesystems/sysfs-pci.txt) and we don't have a pci_mmap_page_range() on mips. Hope that helps you. Arnaud