hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/powerpc/include/asm/pnv-pci.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright 2014 IBM Corp.
3
- *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
84 */
95
106 #ifndef _ASM_PNV_PCI_H
....@@ -19,6 +15,7 @@
1915 #define PCI_SLOT_ID_PREFIX (1UL << 63)
2016 #define PCI_SLOT_ID(phb_id, bdfn) \
2117 (PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))
18
+#define PCI_PHB_SLOT_ID(phb_id) (phb_id)
2219
2320 extern int pnv_pci_get_slot_id(struct device_node *np, uint64_t *id);
2421 extern int pnv_pci_get_device_tree(uint32_t phandle, void *buf, uint64_t len);
....@@ -26,15 +23,9 @@
2623 extern int pnv_pci_get_power_state(uint64_t id, uint8_t *state);
2724 extern int pnv_pci_set_power_state(uint64_t id, uint8_t state,
2825 struct opal_msg *msg);
29
-extern int pnv_pci_set_p2p(struct pci_dev *initiator, struct pci_dev *target,
30
- u64 desc);
3126
32
-extern int pnv_pci_enable_tunnel(struct pci_dev *dev, uint64_t *asnind);
33
-extern int pnv_pci_disable_tunnel(struct pci_dev *dev);
3427 extern int pnv_pci_set_tunnel_bar(struct pci_dev *dev, uint64_t addr,
3528 int enable);
36
-extern int pnv_pci_get_as_notify_info(struct task_struct *task, u32 *lpid,
37
- u32 *pid, u32 *tid);
3829 int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode);
3930 int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq,
4031 unsigned int virq);
....@@ -54,7 +45,6 @@
5445
5546 struct pnv_php_slot {
5647 struct hotplug_slot slot;
57
- struct hotplug_slot_info slot_info;
5848 uint64_t id;
5949 char *name;
6050 int slot_no;
....@@ -72,6 +62,7 @@
7262 struct pci_dev *pdev;
7363 struct pci_bus *bus;
7464 bool power_state_check;
65
+ u8 attention_state;
7566 void *fdt;
7667 void *dt;
7768 struct of_changeset ocs;