Re: LongTrail PCI resource assignment
From: Martin Mares <mj@ucw.cz>
Date: 2000-03-27 21:12:54
Hi!
- There are machine dependent things related to PCI resource assignment,
namely PCIBIOS_MIN_IO and PCIBIOS_MIN_MEM in include/asm-ppc/pci.h. On the
LongTrail, PCI memory space is from 0xc0000000 until 0xf7000000, so I had
to change PCIBIOS_MIN_MEM to make sure allocation starts at 0xc0000000. I
think we need
#define PCIBIOS_MIN_IO ppc_md.pcibios_min_io
#define PCIBIOS_MIN_MEM ppc_md.pcibios_min_mem
and solve this in the machine specific setup code.
Martin, do you think it makes sense to have PCIBIOS_MAX_IO and
PCIBIOS_MAX_MEM to pass to allocate_resource() as the upper limits?Better define resources for the root bus itself and let resources of the other devices to be allocated from these root resources. Also, for the PPC you probably don't need all the multipass resource magic we do on the PC. Have a nice fortnight -- Martin `MJ' Mares [off-list ref] http://atrey.karlin.mff.cuni.cz/~mj/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth "Whoa...I did a 'cp /vmlinuz /dev/audio' and I think I heard God..." ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/