powerpc/powernv: Move npu struct from pnv_phb to pci_controller
The powernv PCI code stores NPU data in the pnv_phb struct. The latter is referenced by pci_controller::private_data. We are going to have NPU2 support in the pseries platform as well but it does not store any private_data in in the pci_controller struct; and even if it did, it would be a different data structure. This makes npu a pointer and stores it one level higher in the pci_controller struct. Signed-off-by:Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/pci-bridge.h 1 addition, 0 deletionsarch/powerpc/include/asm/pci-bridge.h
- arch/powerpc/platforms/powernv/npu-dma.c 56 additions, 18 deletionsarch/powerpc/platforms/powernv/npu-dma.c
- arch/powerpc/platforms/powernv/pci-ioda.c 1 addition, 1 deletionarch/powerpc/platforms/powernv/pci-ioda.c
- arch/powerpc/platforms/powernv/pci.h 0 additions, 16 deletionsarch/powerpc/platforms/powernv/pci.h
Loading
Please register or sign in to comment