mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
We have slightly changed the architecture interfaces to support htirq PCI driver. It's safe because currently Hypertransport interrupt is only enabled on x86 platforms. Signed-off-by: Jiang Liu <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Cc: David Cohen <[email protected]> Cc: Sander Eikelenboom <[email protected]> Cc: David Vrabel <[email protected]> Cc: Tony Luck <[email protected]> Cc: Joerg Roedel <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Rafael J. Wysocki <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dimitri Sivanich <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#ifndef LINUX_HTIRQ_H
|
|
#define LINUX_HTIRQ_H
|
|
|
|
struct pci_dev;
|
|
struct irq_data;
|
|
|
|
struct ht_irq_msg {
|
|
u32 address_lo; /* low 32 bits of the ht irq message */
|
|
u32 address_hi; /* high 32 bits of the it irq message */
|
|
};
|
|
|
|
typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
|
|
struct ht_irq_msg *msg);
|
|
|
|
struct ht_irq_cfg {
|
|
struct pci_dev *dev;
|
|
/* Update callback used to cope with buggy hardware */
|
|
ht_irq_update_t *update;
|
|
unsigned pos;
|
|
unsigned idx;
|
|
struct ht_irq_msg msg;
|
|
};
|
|
|
|
/* Helper functions.. */
|
|
void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
|
|
void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
|
|
void mask_ht_irq(struct irq_data *data);
|
|
void unmask_ht_irq(struct irq_data *data);
|
|
|
|
/* The arch hook for getting things started */
|
|
int arch_setup_ht_irq(int idx, int pos, struct pci_dev *dev,
|
|
ht_irq_update_t *update);
|
|
void arch_teardown_ht_irq(unsigned int irq);
|
|
|
|
/* For drivers of buggy hardware */
|
|
int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
|
|
|
|
#endif /* LINUX_HTIRQ_H */
|