nlm: Ensure callback code also checks that the files match
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / htirq.h
CommitLineData
95d77884
EB
1#ifndef LINUX_HTIRQ_H
2#define LINUX_HTIRQ_H
3
ec68307c
EB
4struct 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
95d77884 9/* Helper functions.. */
ec68307c
EB
10void 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);
e9f7ac66
TG
12struct irq_data;
13void mask_ht_irq(struct irq_data *data);
14void unmask_ht_irq(struct irq_data *data);
95d77884
EB
15
16/* The arch hook for getting things started */
17int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev);
18
43539c38
EB
19/* 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
95d77884 24#endif /* LINUX_HTIRQ_H */