blob: c96ea46737d03067afeeeeb4191c29c3ec438d6f [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);
Eric W. Biederman95d77882006-10-04 02:17:01 -070012void mask_ht_irq(unsigned int irq);
13void unmask_ht_irq(unsigned int irq);
14
15/* The arch hook for getting things started */
16int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
17
Eric W. Biederman43539c32006-11-08 17:44:57 -080018/* For drivers of buggy hardware */
19typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq,
20 struct ht_irq_msg *msg);
21int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
22
Eric W. Biederman95d77882006-10-04 02:17:01 -070023#endif /* LINUX_HTIRQ_H */