[MIPS] TXx9: PCI error handling
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Date: Thu, 24 Jul 2008 00:25:16 +0900 Subject: [PATCH] txx9: PCI error handling Add more control and detailed report on PCI error interrupt. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
0751752922
commit
455cc256eb
@@ -236,11 +236,17 @@ struct tx3927_ccfg_reg {
|
||||
/* see PCI_STATUS_XXX in linux/pci.h */
|
||||
#define PCI_STATUS_NEW_CAP 0x0010
|
||||
|
||||
/* bits for ISTAT/IIM */
|
||||
#define TX3927_PCIC_IIM_ALL 0x00001600
|
||||
|
||||
/* bits for TC */
|
||||
#define TX3927_PCIC_TC_OF16E 0x00000020
|
||||
#define TX3927_PCIC_TC_IF8E 0x00000010
|
||||
#define TX3927_PCIC_TC_OF8E 0x00000008
|
||||
|
||||
/* bits for TSTAT/TIM */
|
||||
#define TX3927_PCIC_TIM_ALL 0x0003ffff
|
||||
|
||||
/* bits for IOBA/MBA */
|
||||
/* see PCI_BASE_ADDRESS_XXX in linux/pci.h */
|
||||
|
||||
@@ -320,5 +326,6 @@ struct tx3927_ccfg_reg {
|
||||
struct pci_controller;
|
||||
void __init tx3927_pcic_setup(struct pci_controller *channel,
|
||||
unsigned long sdram_size, int extarb);
|
||||
void tx3927_setup_pcierr_irq(void);
|
||||
|
||||
#endif /* __ASM_TXX9_TX3927_H */
|
||||
|
||||
@@ -249,6 +249,7 @@ void tx4927_time_init(unsigned int tmrnr);
|
||||
void tx4927_setup_serial(void);
|
||||
int tx4927_report_pciclk(void);
|
||||
int tx4927_pciclk66_setup(void);
|
||||
void tx4927_setup_pcierr_irq(void);
|
||||
void tx4927_irq_init(void);
|
||||
|
||||
#endif /* __ASM_TXX9_TX4927_H */
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#define __ASM_TXX9_TX4927PCIC_H
|
||||
|
||||
#include <linux/pci.h>
|
||||
#include <linux/irqreturn.h>
|
||||
|
||||
struct tx4927_pcic_reg {
|
||||
u32 pciid;
|
||||
@@ -196,5 +197,7 @@ void __init tx4927_pcic_setup(struct tx4927_pcic_reg __iomem *pcicptr,
|
||||
struct pci_controller *channel, int extarb);
|
||||
void tx4927_report_pcic_status(void);
|
||||
char *tx4927_pcibios_setup(char *str);
|
||||
void tx4927_dump_pcic_settings(void);
|
||||
irqreturn_t tx4927_pcierr_interrupt(int irq, void *dev_id);
|
||||
|
||||
#endif /* __ASM_TXX9_TX4927PCIC_H */
|
||||
|
||||
@@ -285,6 +285,7 @@ void tx4938_report_pci1clk(void);
|
||||
int tx4938_pciclk66_setup(void);
|
||||
struct pci_dev;
|
||||
int tx4938_pcic1_map_irq(const struct pci_dev *dev, u8 slot);
|
||||
void tx4938_setup_pcierr_irq(void);
|
||||
void tx4938_irq_init(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user