PCI: portdrv: remove unnecessary struct pcie_port_data
Remove 'port_type' field in struct pcie_port_data(), because we can get port type information from struct pci_dev. With this change, this patch also does followings: - Remove struct pcie_port_data because it no longer has any field. - Remove portdrv private definitions about port type (PCIE_RC_PORT, PCIE_SW_UPSTREAM_PORT and PCIE_SW_DOWNSTREAM_PORT), and use generic definitions instead. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
40717c39b1
commit
694f88ef7a
@@ -10,10 +10,7 @@
|
||||
#define _PCIEPORT_IF_H_
|
||||
|
||||
/* Port Type */
|
||||
#define PCIE_RC_PORT 4 /* Root port of RC */
|
||||
#define PCIE_SW_UPSTREAM_PORT 5 /* Upstream port of Switch */
|
||||
#define PCIE_SW_DOWNSTREAM_PORT 6 /* Downstream port of Switch */
|
||||
#define PCIE_ANY_PORT 7
|
||||
#define PCIE_ANY_PORT (~0)
|
||||
|
||||
/* Service Type */
|
||||
#define PCIE_PORT_SERVICE_PME_SHIFT 0 /* Power Management Event */
|
||||
@@ -25,10 +22,6 @@
|
||||
#define PCIE_PORT_SERVICE_VC_SHIFT 3 /* Virtual Channel */
|
||||
#define PCIE_PORT_SERVICE_VC (1 << PCIE_PORT_SERVICE_VC_SHIFT)
|
||||
|
||||
struct pcie_port_data {
|
||||
int port_type; /* Type of the port */
|
||||
};
|
||||
|
||||
struct pcie_device {
|
||||
int irq; /* Service IRQ/MSI/MSI-X Vector */
|
||||
struct pci_dev *port; /* Root/Upstream/Downstream Port */
|
||||
|
||||
Reference in New Issue
Block a user