blob: 70a1dbbf209350836f97743363fadfe4f6f95b36 [file] [log] [blame]
Eric W. Biederman95d77882006-10-04 02:17:01 -07001#ifndef LINUX_HTIRQ_H
2#define LINUX_HTIRQ_H
3
Eric W. Biedermanec683072006-11-08 17:44:57 -08004struct ht_irq_msg {
5 u32 address_lo; /* low 32 bits of the ht irq message */
6 u32 address_hi; /* high 32 bits of the it irq message */
7};
8
Eric W. Biederman95d77882006-10-04 02:17:01 -07009/* Helper functions.. */
Eric W. Biedermanec683072006-11-08 17:44:57 -080010void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
11void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg);
Thomas Gleixnere9f7ac62010-09-28 17:22:09 +020012struct irq_data;
13void mask_ht_irq(struct irq_data *data);
14void unmask_ht_irq(struct irq_data *data);
Eric W. Biederman95d77882006-10-04 02:17:01 -070015
16/* The arch hook for getting things started */
17int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
18
Eric W. Biederman43539c32006-11-08 17:44:57 -080019/* For drivers of buggy hardware */
20typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
21 struct ht_irq_msg *msg);
22int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
23
Eric W. Biederman95d77882006-10-04 02:17:01 -070024#endif /* LINUX_HTIRQ_H */