mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-22 06:49:40 +07:00

The IOMMU and streaming cache error interrogation is moved here as well as the PCI error interrupt handler. Signed-off-by: David S. Miller <davem@davemloft.net>
24 lines
650 B
C
24 lines
650 B
C
#ifndef _PSYCHO_COMMON_H
|
|
#define _PSYCHO_COMMON_H
|
|
|
|
enum psycho_error_type {
|
|
UE_ERR, CE_ERR, PCI_ERR
|
|
};
|
|
|
|
extern void psycho_check_iommu_error(struct pci_pbm_info *pbm,
|
|
unsigned long afsr,
|
|
unsigned long afar,
|
|
enum psycho_error_type type);
|
|
|
|
extern irqreturn_t psycho_pcierr_intr(int irq, void *dev_id);
|
|
|
|
extern int psycho_iommu_init(struct pci_pbm_info *pbm, int tsbsize,
|
|
u32 dvma_offset, u32 dma_mask,
|
|
unsigned long write_complete_offset);
|
|
|
|
extern void psycho_pbm_init_common(struct pci_pbm_info *pbm,
|
|
struct of_device *op,
|
|
const char *chip_name, int chip_type);
|
|
|
|
#endif /* _PSYCHO_COMMON_H */
|