Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Bin Meng | 51c3b1e | 2015-05-25 22:35:04 +0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 51c3b1e | 2015-05-25 22:35:04 +0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _DT_BINDINGS_INTEL_IRQ_H_ |
| 7 | #define _DT_BINDINGS_INTEL_IRQ_H_ |
| 8 | |
| 9 | /* PCI interrupt pin */ |
| 10 | #define INTA 1 |
| 11 | #define INTB 2 |
| 12 | #define INTC 3 |
| 13 | #define INTD 4 |
| 14 | |
| 15 | /* PIRQs */ |
| 16 | #define PIRQA 0 |
| 17 | #define PIRQB 1 |
| 18 | #define PIRQC 2 |
| 19 | #define PIRQD 3 |
| 20 | #define PIRQE 4 |
| 21 | #define PIRQF 5 |
| 22 | #define PIRQG 6 |
| 23 | #define PIRQH 7 |
| 24 | |
| 25 | /* PCI bdf encoding */ |
| 26 | #ifndef PCI_BDF |
| 27 | #define PCI_BDF(b, d, f) ((b) << 16 | (d) << 11 | (f) << 8) |
| 28 | #endif |
| 29 | |
| 30 | #endif /* _DT_BINDINGS_INTEL_IRQ_H_ */ |