• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 root {
2    device_info {
3        match_attr = "hdf_manager";
4        template host {
5            hostName = "";
6            priority = 100;
7            template device{
8                template deviceNode {
9                    policy = 0;
10                    priority = 100;
11                    preload = 0;
12                    permission = 0664;
13                    moduleName = "";
14                    serviceName = "";
15                    deviceMatchAttr = "";
16                }
17            }
18        }
19        platform :: host {
20            hostName = "platform_host";
21            priority = 50;
22            device_gpio :: device {
23                device0 :: deviceNode {
24                    policy = 0;
25                    priority = 10;
26                    permission = 0644;
27                    moduleName = "hisi_pl061_driver";
28                    deviceMatchAttr = "hisilicon_hi35xx_pl061";
29                }
30            }
31            device_watchdog :: device {
32                device0 :: deviceNode {
33                    policy = 1;
34                    priority = 20;
35                    permission = 0644;
36                    moduleName = "HDF_PLATFORM_WATCHDOG";
37                    serviceName = "HDF_PLATFORM_WATCHDOG_0";
38                    deviceMatchAttr = "hisilicon_hi35xx_watchdog_0";
39                }
40            }
41            device_rtc :: device {
42                device0 :: deviceNode {
43                    policy = 1;
44                    priority = 30;
45                    permission = 0644;
46                    moduleName = "HDF_PLATFORM_RTC";
47                    serviceName = "HDF_PLATFORM_RTC";
48                    deviceMatchAttr = "hisilicon_hi35xx_rtc";
49                }
50            }
51            device_uart :: device {
52                device0 :: deviceNode {
53                    policy = 1;
54                    priority = 40;
55                    permission = 0644;
56                    moduleName = "HDF_PLATFORM_UART";
57                    serviceName = "HDF_PLATFORM_UART_0";
58                    deviceMatchAttr = "hisilicon_hi35xx_uart_0";
59                }
60                device1 :: deviceNode {
61                    policy = 2;
62                    priority = 40;
63                    permission = 0644;
64                    moduleName = "HDF_PLATFORM_UART";
65                    serviceName = "HDF_PLATFORM_UART_1";
66                    deviceMatchAttr = "hisilicon_hi35xx_uart_1";
67                }
68                device2 :: deviceNode {
69                    policy = 2;
70                    priority = 40;
71                    permission = 0644;
72                    moduleName = "HDF_PLATFORM_UART";
73                    serviceName = "HDF_PLATFORM_UART_2";
74                    deviceMatchAttr = "hisilicon_hi35xx_uart_2";
75                }
76            }
77            device_i2c :: device {
78                device0 :: deviceNode {
79                    policy = 2;
80                    priority = 50;
81                    permission = 0644;
82                    moduleName = "HDF_PLATFORM_I2C_MANAGER";
83                    serviceName = "HDF_PLATFORM_I2C_MANAGER";
84                    deviceMatchAttr = "hdf_platform_i2c_manager";
85                }
86                device1 :: deviceNode {
87                    policy = 0;
88                    priority = 55;
89                    permission = 0644;
90                    moduleName = "hi35xx_i2c_driver";
91                    serviceName = "HI35XX_I2C_DRIVER";
92                    deviceMatchAttr = "hisilicon_hi35xx_i2c";
93                }
94            }
95            device_spi :: device {
96                device0 :: deviceNode {
97                    policy = 1;
98                    priority = 60;
99                    permission = 0644;
100                    moduleName = "HDF_PLATFORM_SPI";
101                    serviceName = "HDF_PLATFORM_SPI_0";
102                    deviceMatchAttr = "hisilicon_hi35xx_spi_0";
103                }
104                device1 :: deviceNode {
105                    policy = 1;
106                    priority = 60;
107                    permission = 0644;
108                    moduleName = "HDF_PLATFORM_SPI";
109                    serviceName = "HDF_PLATFORM_SPI_1";
110                    deviceMatchAttr = "hisilicon_hi35xx_spi_1";
111                }
112            }
113            device_mmc:: device {
114                device0 :: deviceNode {
115                    policy = 2;
116                    priority = 20;
117                    permission = 0644;
118                    moduleName = "hi3518_mmc_driver";
119                    serviceName = "HDF_PLATFORM_MMC_0";
120                    deviceMatchAttr = "hi3518_mmc_sd";
121                }
122                device1 :: deviceNode {
123                    policy = 2;
124                    priority = 10;
125                    permission = 0644;
126                    moduleName = "hi3518_mmc_driver";
127                    serviceName = "HDF_PLATFORM_MMC_1";
128                    deviceMatchAttr = "hi3518_mmc_sdio";
129                }
130            }
131            device_hisi_sdk:: device {
132                device0 :: deviceNode {
133                    policy = 1;
134                    priority = 180;
135                    permission = 0644;
136                    moduleName = "HDF_PLATFORM_HISI_SDK";
137                    serviceName = "HDF_PLATFORM_HISI_SDK";
138                }
139            }
140        }
141        network :: host {
142            hostName = "network_host";
143            device_wifi :: device {
144                device0 :: deviceNode {
145                    policy = 2;
146                    priority = 100;
147                    preload = 0;
148                    permission = 0664;
149                    moduleName = "HDF_WIFI";
150                    deviceMatchAttr = "hdf_wlan_driver";
151                    serviceName = "hdfwifi";
152                }
153            }
154            device_wlan_chips :: device {
155                device0 :: deviceNode {
156                    policy = 0;
157                    preload = 1;
158                    moduleName = "HDF_WLAN_CHIPS";
159                    deviceMatchAttr = "hdf_wlan_chips_hi3881";
160                    serviceName = "hisi";
161                }
162            }
163        }
164        storage :: host {
165        }
166        media :: host {
167        }
168    }
169}
170