# Driver Subsystem ## Overview The OpenHarmony driver subsystem is constructed using the C object-oriented programming \(OOP\). It provides a unified driver platform through platform decoupling, kernel decoupling, and compatible kernels. This unified driver architecture platform is designed to provide a more precise and efficient development environment, where you develop a driver that can be deployed on different systems supporting HDF. The OpenHarmony driver subsystem provides the following key features and capabilities to shorten the driver development period and make third-party device driver integration much easier: - Flexible framework capabilities Based on the traditional driver framework, the OpenHarmony driver subsystem builds flexible framework capabilities to deploy terminal products with the capacity ranging from hundreds KB to hundreds MB of memory. - Standardized driver APIs The OpenHarmony driver subsystem provides you with abundant and stable driver APIs, which are compatible with those of future-proof smartphones, tablets, smart TVs. - Component-based driver models The OpenHarmony driver subsystem supports component-based driver models. It provides more refined driver management to dismantle components, enabling you to focus on the interaction between the hardware and driver. The subsystem also presets some template-based driver model components, such as the network device models. - Normalized configuration GUIs The OpenHarmony driver subsystem provides a unified configuration GUI and a cross-platform tool for configuration conversion and generation to implement seamless switchover across platforms. You can use DevEco to manage driver projects, generate driver templates, and manage settings to make the development of OpenHarmony drivers easier. ## Architecture The OpenHarmony driver framework adopts the primary/secondary mode and is developed based on the framework, model, competence library, and tool. **Figure 1** Interaction between the driver and framework  - Driver framework stored in the **frameworks/core** directory - Loads and starts drivers. - Deploys and expands the driver framework flexibly through the object manager. - Driver models stored in the **frameworks/model** directory - Provides model-based driving capabilities, such as network device models. - Driver capability library stored in the **frameworks/ability** directory - Provides basic driver models, such as the I/O communication model. - Driver tools stored in the **frameworks\\tools** directory - Provides tools for HDI API conversion, and driver configuration and driver compilation. - Driver APIs stored in the **lite\\hdi** directory - Provides normalized driver APIs. - Support stored in the **frameworks/support** directory - Provides platform driver APIs and system APIs with normalized abstraction capabilities. ## Directory Structures **Table 1** Directory structure of the OpenHarmony driver framework