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); |
Thomas Gleixner | e9f7ac6 | 2010-09-28 17:22:09 +0200 | [diff] [blame] | 12 | struct irq_data; |
| 13 | void mask_ht_irq(struct irq_data *data); |
| 14 | void unmask_ht_irq(struct irq_data *data); |
Eric W. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 15 | |
| 16 | /* The arch hook for getting things started */ |
| 17 | int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev); |
| 18 | |
Eric W. Biederman | 43539c3 | 2006-11-08 17:44:57 -0800 | [diff] [blame] | 19 | /* For drivers of buggy hardware */ |
| 20 | typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq, |
| 21 | struct ht_irq_msg *msg); |
| 22 | int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update); |
| 23 | |
Eric W. Biederman | 95d7788 | 2006-10-04 02:17:01 -0700 | [diff] [blame] | 24 | #endif /* LINUX_HTIRQ_H */ |