这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
|
jaysnote:platform [2019/04/29 15:33] jaylee 创建 |
jaysnote:platform [2021/06/22 23:14] (当前版本) |
||
|---|---|---|---|
| 行 65: | 行 65: | ||
| ``` | ``` | ||
| - | The general rule is to register only those devices that actually exist, | + | The general rule is to register only those devices that actually exist, but in some cases extra devices might be registered. |
| - | but in some cases extra devices might be registered. | + | |
| In some cases, boot firmware will export tables describing the devices that are populated on a given board. | In some cases, boot firmware will export tables describing the devices that are populated on a given board. | ||
| 行 80: | 行 79: | ||
| The only " | The only " | ||
| - | This style of driver is discouraged. | + | This style of driver is discouraged. |
| - | please try to move the device enumeration to a more appropriate location, | + | |
| - | outside the driver. | + | |
| None the less, there are some APIs to support such legacy drivers. | None the less, there are some APIs to support such legacy drivers. | ||
| 行 114: | 行 111: | ||
| ``` | ``` | ||
| - | These are concatenated, | + | These are concatenated, |
| - | " | + | |
| and use the platform_driver called " | and use the platform_driver called " | ||