freebsd-dev/sys/mips
Adrian Chadd 08f06f0ace Fix the AR724x PCIe glue to correctly probe the BAR on AR7240 devices.
There's a bug in the AR7240 PCIe hardware where a correct BAR will end
up having the device disappear.

It turns out that for the device address it should be all 0's.

However, this meant that the PCI probe code would try writing 0xffffffff
in to see how big the window was, read back 0x0, and think the window
was 32 bits.  It then ended up calculating a resource size of 0 bytes,
failed to find anything via an rman call, and this would fail to attach.

I have quite absolutely no idea how in the various planes of existence
this particular bit of code and how it worked with the PCI bus code
ever worked.  But, well, it did.

Tested:

* Atheros AP93 - AR7240 + AR9280 reference board
2014-09-28 07:27:58 +00:00
..
adm5120 Mechanically convert to if_inc_counter(). 2014-09-19 09:19:49 +00:00
alchemy Fix a typo introduced in r257338. 2013-10-31 02:27:16 +00:00
atheros Fix the AR724x PCIe glue to correctly probe the BAR on AR7240 devices. 2014-09-28 07:27:58 +00:00
beri Replace multiple nearly-identical copies of code to walk through an FDT 2014-09-25 15:02:33 +00:00
cavium Mechanically convert to if_inc_counter(). 2014-09-19 09:19:49 +00:00
conf Disable the makeoption with MFS_IMAGE= set as we don't ship that file 2014-09-27 17:11:51 +00:00
gxemul
idt Mechanically convert to if_inc_counter(). 2014-09-19 09:19:49 +00:00
include style(9) 2014-09-07 05:47:48 +00:00
malta Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
mips ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
nlm Mechanically convert to if_inc_counter(). 2014-09-19 09:19:49 +00:00
rmi Mechanically convert to if_inc_counter(). 2014-09-19 09:19:49 +00:00
rt305x Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
sentry5
sibyte Devices that rely on hints or identify routines for discovery need to 2013-10-29 14:07:31 +00:00