Unit testing framework and devicetree framework refactoring (#50)
[lunaix-os.git] / lunaix-os / tests / units / device-tree / samples / intrmap.dts
1 /dts-v1/;
2
3 / {
4     compatible = "simple-bus";
5     #address-cells = <1>;
6     #size-cells = <1>;
7
8     pic: pic@1 {
9         clock-frequency = <0>;
10         interrupt-controller;
11
12         #address-cells = <0>;
13         #interrupt-cells = <2>;
14     };
15
16     pci {
17         #interrupt-cells = <1>;
18         #size-cells = <2>;
19         #address-cells = <3>;
20         
21         interrupt-map-mask = <0xf800 0 0 7>;
22         interrupt-map = <
23             /* IDSEL 0x11 - PCI slot 1 */
24             0x8800 0 0 1 &pic 2 1 /* INTA */
25             0x8800 0 0 2 &pic 3 1 /* INTB */
26             0x8800 0 0 3 &pic 4 1 /* INTC */
27             0x8800 0 0 4 &pic 1 1 /* INTD */
28             /* IDSEL 0x12 - PCI slot 2 */
29             0x9000 0 0 1 &pic 3 1 /* INTA */
30             0x9000 0 0 2 &pic 4 1 /* INTB */
31             0x9000 0 0 3 &pic 1 1 /* INTC */
32             0x9000 0 0 4 &pic 2 1 /* INTD */
33         >;
34     };
35 };