PCI domain support for 2.4
Bjorn Helgaas
AppliedQuoted 9 lines · Matthew Wilcox
2.4 can support PCI domains with non-overlapping bus numbers. While this isn't terribly useful, it may help some machine designs. This is the minimum patch to support this for 2.4 -- a more invasive patch would replace
PCI_SEGMENTwithpci_controller_numthroughout the ia64 code.===
include/asm-ia64/pci.h1.12 vs edited ==> ---1.12/include/asm-ia64/pci.hThu Mar 6 09:43:37 2003
+++edited/include/asm-ia64/pci.hFri Jun 20 09:41:13 2003
Review line 89
Quoted 10 lines
(quoted diff) +2
-2@@ -82,8 +82,8 @@ #define pci_dac_dma_to_offset(dev,dma_addr) ((dma_addr) & ~PAGE_MASK) #define pci_dac_dma_sync_single(dev,dma_addr,len,dir) do { /* nothing */ } while (0) -/* Return the index of the PCI controller for device PDEV. */ -#define pci_controller_num(PDEV) (0) +/* Return the PCI domain number */ +#define pci_controller_num(pdev) (PCI_SEGMENT(pdev)) #define sg_dma_address(sg) ((sg)->dma_address) #define sg_dma_len(sg) ((sg)->dma_length)
I applied this for 2.4. Thanks!
Bjorn