Subject: Re: can't access PCIe card under sbc8548

From: wolfking <[email-masked]>
Date: Thu, 30 May 2013 00:32:37 -0700 (PDT)

(continued)
  I traced the 8139too.c when it uses pci_iomap, the pci_iomap called the 
ioport_map. The difference between 8139 and my PCIe card lies in the
"port" value :
void __iomem *ioport_map(unsigned long port, unsigned int len)
{
	return (void __iomem *) (port + _IO_BASE);
}
  in 8139too.c, the "port" value is 0x1000; for my PCIe card, the "port"
value
is 0xfefff000. And the value is got from pci_resource_start. So you see, the 
8139 case doesn't overflow, my PICe overflows when _IO_BASE's value is 
0xfd7fd000.

--
View this message in context: http://linuxppc.10917.n7.nabble.com/can-t-access-PCIe-card-under-sbc8548-tp71775p71783.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.