| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| include/core/ | 12-May-2024 | - | 41 | 19 | ||
| manager/ | 12-May-2024 | - | 690 | 512 | ||
| model/ | 12-May-2024 | - | 7,991 | 6,039 | ||
| network/ | 12-May-2024 | - | 970 | 506 | ||
| osal/ | 12-May-2024 | - | 2,155 | 1,410 | ||
| platform/ | 12-May-2024 | - | 8,835 | 6,876 | ||
| test/ | 12-May-2024 | - | 464 | 337 | ||
| utils/ | 12-May-2024 | - | 28 | 14 | ||
| .gitattributes | D | 12-May-2024 | 631 | 16 | 15 | |
| .gitignore | D | 12-May-2024 | 6 | 2 | 1 | |
| Kconfig | D | 12-May-2024 | 1,012 | 33 | 28 | |
| LICENSE | D | 12-May-2024 | 18.3 KiB | 360 | 299 | |
| Makefile | D | 12-May-2024 | 2.1 KiB | 59 | 39 | |
| OAT.xml | D | 12-May-2024 | 4.6 KiB | 71 | 21 | |
| README.md | D | 12-May-2024 | 2.2 KiB | 50 | 37 | |
| README_zh.md | D | 12-May-2024 | 2.1 KiB | 50 | 37 | |
| patch_hdf.sh | D | 12-May-2024 | 1.5 KiB | 62 | 39 |
README.md
1# linux\_khdf<a name="EN-US_TOPIC_0000001078489630"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section161941989596) 5- [Repositories Involved](#section1371113476307) 6 7## Introduction<a name="section11660541593"></a> 8 9This repository stores the code and compilation scripts for the OpenHarmony driver subsystem to adapt to the Linux kernel and to deploy the hardware driver foundation \(HDF\). 10 11## Directory Structure<a name="section161941989596"></a> 12 13``` 14/drivers/adapter/khdf/linux 15├── utils # Compilation scripts for building and configuring the parsing code 16├── manager # Code for starting and adapting to the HDF 17├── model # Code for adapting to Linux 18│ ├── display # Display driver model 19│ ├── input # Input driver model 20│ ├── network # WLAN driver model 21│ ├── sensor # Sensor driver model 22├── network # Code for adapting to the Linux kernel network 23├── osal # POSIX APIs for adapting to the Linux kernel 24├── platform # Code for adapting the platform APIs to the Linux kernel 25│ ├── emmc # EMMC APIs 26│ ├── gpio # GPIO APIs 27│ ├── i2c # I2C APIs 28│ ├── mipi_dsi # MIPI DSI APIs 29│ ├── pwm # PWM APIs 30│ ├── rtc # RTC APIs 31│ ├── sdio # SDIO APIs 32│ ├── spi # SPI APIs 33│ ├── uart # UART APIs 34│ └── watchdog # WATCHDOG APIs 35├── test # Testcase for testing the Linux kernel driver 36``` 37 38## Repositories Involved<a name="section1371113476307"></a> 39 40[Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver-subsystem.md) 41 42[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README.md) 43 44[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README.md) 45 46[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README.md) 47 48[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral/blob/master/README.md) 49 50
README_zh.md
1# linux\_khdf<a name="ZH-CN_TOPIC_0000001078489630"></a> 2 3- [简介](#section11660541593) 4- [目录](#section161941989596) 5- [相关仓](#section1371113476307) 6 7## 简介<a name="section11660541593"></a> 8 9该仓主要存放OpenHarmony驱动子系统适配linux内核的代码和编译脚本,在linux内核中部署OpenHarmony驱动框架。 10 11## 目录<a name="section161941989596"></a> 12 13``` 14/drivers/adapter/khdf/linux 15├── utils #linux内核下编译配置解析代码的编译脚本 16├── manager #linux内核下启动适配启动HDF框架代码 17├── model #驱动模型适配linux代码 18│ ├── display #显示驱动模型 19│ ├── input #输入驱动模型 20│ ├── network #wifi驱动模型 21│ └── sensor #传感器驱动模型 22├── network #适配linux内核网络代码 23├── osal #适配linux内核的posix接口 24├── platform #平台设备接口适配linux内核代码 25│ ├── emmc #emmc操作接口 26│ ├── gpio #gpio接口 27│ ├── i2c #i2c接口 28│ ├── mipi_dsi #mipi dsi接口 29│ ├── pwm #pwm接口 30│ ├── rtc #rtc接口 31│ ├── sdio #sdio接口 32│ ├── spi #spi接口 33│ ├── uart #uart接口 34│ └── watchdog #watchdog接口 35├── test #linux内核测试用例 36``` 37 38## 相关仓<a name="section1371113476307"></a> 39 40[驱动子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E9%A9%B1%E5%8A%A8%E5%AD%90%E7%B3%BB%E7%BB%9F.md) 41 42[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README_zh.md) 43 44[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README_zh.md) 45 46[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README_zh.md) 47 48[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral/blob/master/README_zh.md) 49 50