powerpc/powernv/sriov: Move SR-IOV into a separate file
pci-ioda.c is getting a bit unwieldly due to the amount of stuff jammed in there. The SR-IOV support can be extracted easily enough and is mostly standalone, so move it into a separate file. This patch also moves the PowerNV SR-IOV specific fields from pci_dn and moves them into a platform specific structure. I'm not sure how they ended up in there in the first place, but leaking platform specifics into common code has proven to be a terrible idea so far so lets stop doing that. Signed-off-by:Oliver O'Halloran <oohall@gmail.com> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200722065715.1432738-5-oohall@gmail.com
Showing
- arch/powerpc/include/asm/device.h 3 additions, 0 deletionsarch/powerpc/include/asm/device.h
- arch/powerpc/platforms/powernv/Makefile 1 addition, 0 deletionsarch/powerpc/platforms/powernv/Makefile
- arch/powerpc/platforms/powernv/pci-ioda.c 18 additions, 655 deletionsarch/powerpc/platforms/powernv/pci-ioda.c
- arch/powerpc/platforms/powernv/pci-sriov.c 640 additions, 0 deletionsarch/powerpc/platforms/powernv/pci-sriov.c
- arch/powerpc/platforms/powernv/pci.h 74 additions, 0 deletionsarch/powerpc/platforms/powernv/pci.h
Loading
Please register or sign in to comment