Eric W. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 1 | #ifndef LINUX_HTIRQ_H |
| 2 | #define LINUX_HTIRQ_H |
| 3 | |
Eric W. Biederman | ec68307 | 2006-11-08 17:44:57 -0800 | [diff] [blame] | 4 | struct 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. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 9 | /* Helper functions.. */ |
Eric W. Biederman | ec68307 | 2006-11-08 17:44:57 -0800 | [diff] [blame] | 10 | void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg); |
| 11 | void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg); |
Eric W. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 12 | void mask_ht_irq(unsigned int irq); |
| 13 | void unmask_ht_irq(unsigned int irq); |
| 14 | |
| 15 | /* The arch hook for getting things started */ |
| 16 | int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev); |
| 17 | |
Eric W. Biederman | 43539c3 | 2006-11-08 17:44:57 -0800 | [diff] [blame] | 18 | /* For drivers of buggy hardware */ |
| 19 | typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq, |
| 20 | struct ht_irq_msg *msg); |
| 21 | int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update); |
| 22 | |
Eric W. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 23 | #endif /* LINUX_HTIRQ_H */ |