aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-10-02 16:30:11 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-10-08 14:07:46 +1100
commit4bb318eeeb67d40071020de87dedbf5a04538b48 (patch)
tree857b5c0a039952041651de01c960dede95ea975e /include/pci.h
parent38de7930a078da0b69e5803ef7003fe809bf67b1 (diff)
downloadskiboot-4bb318eeeb67d40071020de87dedbf5a04538b48.zip
skiboot-4bb318eeeb67d40071020de87dedbf5a04538b48.tar.gz
skiboot-4bb318eeeb67d40071020de87dedbf5a04538b48.tar.bz2
PCI: Refactor error injection
The patch refactors the code we had for PCI error injection. It doesn't change the logic: * Rename names of error types and functions according to the comments given by Michael Ellerman when reviewing the kernel counterpart. * Split The backend of error injection for PHB3 and P7IOC to multiple functions to improve code readability. Some logics are simplified without affecting their original functionality. * Misc cleanup like renaming variables and functions. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pci.h b/include/pci.h
index c15935c..9573961 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -257,8 +257,8 @@ struct phb_ops {
uint64_t eeh_action_token);
int64_t (*eeh_freeze_set)(struct phb *phb, uint64_t pe_number,
uint64_t eeh_action_token);
- int64_t (*err_injct)(struct phb *phb, uint32_t pe_no, uint32_t type,
- uint32_t function, uint64_t addr, uint64_t mask);
+ int64_t (*err_inject)(struct phb *phb, uint32_t pe_no, uint32_t type,
+ uint32_t func, uint64_t addr, uint64_t mask);
int64_t (*get_diag_data)(struct phb *phb, void *diag_buffer,
uint64_t diag_buffer_len);
int64_t (*get_diag_data2)(struct phb *phb, void *diag_buffer,