hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/include/asm/ppc-pci.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * c 2001 PPC 64 Team, 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 #ifndef _ASM_POWERPC_PPC_PCI_H
106 #define _ASM_POWERPC_PPC_PCI_H
....@@ -53,22 +49,18 @@
5349 struct eeh_dev *eeh_addr_cache_get_dev(unsigned long addr);
5450 void eeh_slot_error_detail(struct eeh_pe *pe, int severity);
5551 int eeh_pci_enable(struct eeh_pe *pe, int function);
56
-int eeh_pe_reset_full(struct eeh_pe *pe);
52
+int eeh_pe_reset_full(struct eeh_pe *pe, bool include_passed);
5753 void eeh_save_bars(struct eeh_dev *edev);
5854 int rtas_write_config(struct pci_dn *, int where, int size, u32 val);
5955 int rtas_read_config(struct pci_dn *, int where, int size, u32 *val);
6056 void eeh_pe_state_mark(struct eeh_pe *pe, int state);
61
-void eeh_pe_state_clear(struct eeh_pe *pe, int state);
57
+void eeh_pe_mark_isolated(struct eeh_pe *pe);
58
+void eeh_pe_state_clear(struct eeh_pe *pe, int state, bool include_passed);
6259 void eeh_pe_state_mark_with_cfg(struct eeh_pe *pe, int state);
6360 void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode);
6461
6562 void eeh_sysfs_add_device(struct pci_dev *pdev);
6663 void eeh_sysfs_remove_device(struct pci_dev *pdev);
67
-
68
-static inline const char *eeh_pci_name(struct pci_dev *pdev)
69
-{
70
- return pdev ? pci_name(pdev) : "<null>";
71
-}
7264
7365 static inline const char *eeh_driver_name(struct pci_dev *pdev)
7466 {
....@@ -77,6 +69,8 @@
7769
7870 #endif /* CONFIG_EEH */
7971
72
+#define PCI_BUSNO(bdfn) ((bdfn >> 8) & 0xff)
73
+
8074 #else /* CONFIG_PCI */
8175 static inline void init_pci_config_tokens(void) { }
8276 #endif /* !CONFIG_PCI */