Re: MIPS ioport_map and Au1xxx PCMCIA

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

 



On Thu, Apr 26, 2007 at 04:55:25PM +0100, Alan Cox wrote:
> iomap uses PIO_MASK to idenfiy ports within the I/O space range. The mips
> code looks somewhat incomplete in the base kernel which is probably much
> of the problem.
> 
> The basic idea is that ioread/iowrite and friends work generically
> regardless of MMIO v PIO so you can just do
> 
> 	pci_iomap(some bar);
> 	iowrite(blah);
> 	pci_iounmap(blah)
> 
> and not worry about anything.
> 
> Now if your platform doesn't have seperate IO space you could probably
> implement iowrite/ioremap/ioport_map to be pretty much no-ops depending
> upon how your PCI bars are encoded.

This Au1200 doesn't have PCI; to access the PCMCIA IO space one has
to ioremap() a part from the top of the 36bit space.

I took the cheap route and simply removed the PIO_MASK check
from my local kernel.

Thank you,

-- 
 Manuel Lauss


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

  Powered by Linux