[PARISC] Make PCI_HOST_ADDR and PCI_BUS_ADDR symmetrical

Change to asm-parisc/pci.h makes the define of PCI_HOST_ADDR symmetrical
with PCI_BUS_ADDR. Also add a comment about PA_VIEW and LMMIO/ELMMIO/GMMIO.

Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>

authored by

Grant Grundler and committed by
Kyle McMartin
9b9ff2e1 7c0b67ef

+7 -1
+7 -1
include/asm-parisc/pci.h
··· 84 84 /* 85 85 ** Convert between PCI (IO_VIEW) addresses and processor (PA_VIEW) addresses. 86 86 ** See pcibios.c for more conversions used by Generic PCI code. 87 + ** 88 + ** Platform characteristics/firmware guarantee that 89 + ** (1) PA_VIEW - IO_VIEW = lmmio_offset for both LMMIO and ELMMIO 90 + ** (2) PA_VIEW == IO_VIEW for GMMIO 87 91 */ 88 92 #define PCI_BUS_ADDR(hba,a) (PCI_IS_LMMIO(hba,a) \ 89 93 ? ((a) - hba->lmmio_space_offset) /* mangle LMMIO */ \ 90 94 : (a)) /* GMMIO */ 91 - #define PCI_HOST_ADDR(hba,a) ((a) + hba->lmmio_space_offset) 95 + #define PCI_HOST_ADDR(hba,a) (((a) & PCI_F_EXTEND) == 0 \ 96 + ? (a) + hba->lmmio_space_offset \ 97 + : (a)) 92 98 93 99 #else /* !CONFIG_64BIT */ 94 100