2006-10-04 09:17:01 +00:00
|
|
|
#ifndef LINUX_HTIRQ_H
|
|
|
|
#define LINUX_HTIRQ_H
|
|
|
|
|
2006-11-09 01:44:57 +00:00
|
|
|
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 */
|
|
|
|
};
|
|
|
|
|
2006-10-04 09:17:01 +00:00
|
|
|
/* Helper functions.. */
|
2006-11-09 01:44:57 +00:00
|
|
|
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);
|
2010-09-28 15:22:09 +00:00
|
|
|
struct irq_data;
|
|
|
|
void mask_ht_irq(struct irq_data *data);
|
|
|
|
void unmask_ht_irq(struct irq_data *data);
|
2006-10-04 09:17:01 +00:00
|
|
|
|
|
|
|
/* The arch hook for getting things started */
|
|
|
|
int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
|
2015-04-13 06:11:28 +00:00
|
|
|
int arch_alloc_ht_irq(struct pci_dev *dev);
|
|
|
|
void arch_free_ht_irq(int irq);
|
2006-10-04 09:17:01 +00:00
|
|
|
|
2006-11-09 01:44:57 +00:00
|
|
|
/* For drivers of buggy hardware */
|
|
|
|
typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
|
|
|
|
struct ht_irq_msg *msg);
|
|
|
|
int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
|
|
|
|
|
2006-10-04 09:17:01 +00:00
|
|
|
#endif /* LINUX_HTIRQ_H */
|