PCI/portdrv: Move private things to portdrv.c
Previously several things used by portdrv_core.c and portdrv_pci.c were shared by defining them in portdrv.h. Now that portdrv_core.c and portdrv_pci.c have been squashed, move things that can be private into portdrv.c. No functional change intended. Link: https://lore.kernel.org/r/20221019204127.44463-3-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
a1ccd3d911
commit
29f193feee
@ -21,6 +21,15 @@
|
|||||||
#include "../pci.h"
|
#include "../pci.h"
|
||||||
#include "portdrv.h"
|
#include "portdrv.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The PCIe Capability Interrupt Message Number (PCIe r3.1, sec 7.8.2) must
|
||||||
|
* be one of the first 32 MSI-X entries. Per PCI r3.0, sec 6.8.3.1, MSI
|
||||||
|
* supports a maximum of 32 vectors per function.
|
||||||
|
*/
|
||||||
|
#define PCIE_PORT_MAX_MSI_ENTRIES 32
|
||||||
|
|
||||||
|
#define get_descriptor_id(type, service) (((type - 4) << 8) | service)
|
||||||
|
|
||||||
struct portdrv_service_data {
|
struct portdrv_service_data {
|
||||||
struct pcie_port_service_driver *drv;
|
struct pcie_port_service_driver *drv;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
|
@ -98,15 +98,6 @@ struct pcie_port_service_driver {
|
|||||||
int pcie_port_service_register(struct pcie_port_service_driver *new);
|
int pcie_port_service_register(struct pcie_port_service_driver *new);
|
||||||
void pcie_port_service_unregister(struct pcie_port_service_driver *new);
|
void pcie_port_service_unregister(struct pcie_port_service_driver *new);
|
||||||
|
|
||||||
/*
|
|
||||||
* The PCIe Capability Interrupt Message Number (PCIe r3.1, sec 7.8.2) must
|
|
||||||
* be one of the first 32 MSI-X entries. Per PCI r3.0, sec 6.8.3.1, MSI
|
|
||||||
* supports a maximum of 32 vectors per function.
|
|
||||||
*/
|
|
||||||
#define PCIE_PORT_MAX_MSI_ENTRIES 32
|
|
||||||
|
|
||||||
#define get_descriptor_id(type, service) (((type - 4) << 8) | service)
|
|
||||||
|
|
||||||
extern struct bus_type pcie_port_bus_type;
|
extern struct bus_type pcie_port_bus_type;
|
||||||
|
|
||||||
struct pci_dev;
|
struct pci_dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user