• Home
Name Date Size #Lines LOC

..--

include/core/12-May-2024-4119

manager/12-May-2024-732548

model/12-May-2024-5,4934,306

network/12-May-2024-1,122634

osal/12-May-2024-2,1501,405

platform/12-May-2024-9,7337,631

test/12-May-2024-611446

utils/12-May-2024-3218

.gitignoreD12-May-20246 21

KconfigD12-May-20241 KiB3429

LICENSED12-May-202418.3 KiB360299

MakefileD12-May-20242 KiB5838

OAT.xmlD12-May-20244.6 KiB7121

README.mdD12-May-20242.7 KiB5845

README_zh.mdD12-May-20242.6 KiB5845

patch_hdf.shD12-May-20242 KiB7752

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/hdf_core/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│   ├── audio            # Audio driver model
19│   ├── display          # Display driver model
20│   ├── input            # Input driver model
21│   ├── misc             # Misc driver model, including dsoftbus, light, vibrator
22│   ├── network          # WLAN driver model
23│   ├── sensor           # Sensor driver model
24│   ├── storage          # Storage driver model
25│   ├── usb              # USB driver model
26├── network              # Code for adapting to the Linux kernel network
27├── osal                 # POSIX APIs for adapting to the Linux kernel
28├── platform             # Code for adapting the platform APIs to the Linux kernel
29│   ├── adc              # ADC APIs
30│   ├── emmc             # EMMC APIs
31│   ├── gpio             # GPIO APIs
32│   ├── i2c              # I2C APIs
33│   ├── mipi_csi         # MIPI CSI APIs
34│   ├── mipi_dsi         # MIPI DSI APIs
35│   ├── mmc              # MMC APIs
36│   ├── pwm              # PWM APIs
37│   ├── regulator        # Regulator APIs
38│   ├── rtc              # RTC APIs
39│   ├── sdio             # SDIO APIs
40│   ├── spi              # SPI APIs
41│   ├── uart             # UART APIs
42│   └── watchdog         # WATCHDOG APIs
43├── test                 # Testcase for testing the Linux kernel driver
44```
45
46## Repositories Involved<a name="section1371113476307"></a>
47
48[Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver.md)
49
50[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README.md)
51
52[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README.md)
53
54[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README.md)
55
56[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral/blob/master/README.md)
57
58

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/hdf_core/adapter/khdf/linux
15├── utils                #linux内核下编译配置解析代码的编译脚本
16├── manager              #linux内核下启动适配启动HDF框架代码
17├── model                #驱动模型适配linux代码
18│   ├── audio            #音频驱动模型
19│   ├── display          #显示驱动模型
20│   ├── input            #输入驱动模型
21│   ├── misc             #杂项驱动模型,包括dsoftbus、light、vibrator
22│   ├── network          #wifi驱动模型
23│   └── sensor           #传感器驱动模型
24│   └── storage          #存储驱动模型
25│   └── usb              #USB驱动模型
26├── network              #适配linux内核网络代码
27├── osal                 #适配linux内核的posix接口
28├── platform             #平台设备接口适配linux内核代码
29│   ├── adc              #adc接口
30│   ├── emmc             #emmc操作接口
31│   ├── gpio             #gpio接口
32│   ├── i2c              #i2c接口
33│   ├── mipi_csi         #mipi csi接口
34│   ├── mipi_dsi         #mipi dsi接口
35│   ├── mmc              #mmc接口
36│   ├── pwm              #pwm接口
37│   ├── regulator        #regulator接口
38│   ├── rtc              #rtc接口
39│   ├── sdio             #sdio接口
40│   ├── spi              #spi接口
41│   ├── uart             #uart接口
42│   └── watchdog         #watchdog接口
43├── test                 #linux内核测试用例
44```
45
46## 相关仓<a name="section1371113476307"></a>
47
48[驱动子系统](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)
49
50[drivers\_framework](https://gitee.com/openharmony/drivers_framework/blob/master/README_zh.md)
51
52[drivers\_adapter](https://gitee.com/openharmony/drivers_adapter/blob/master/README_zh.md)
53
54[drivers\_adapter\_khdf\_linux](https://gitee.com/openharmony/drivers_adapter_khdf_linux/blob/master/README_zh.md)
55
56[drivers\_peripheral](https://gitee.com/openharmony/drivers_peripheral/blob/master/README_zh.md)
57
58