/drivers/hdf_core/framework/core/manager/src/ |
D | driver_manager.c | 48 struct HdfDriver *driver = NULL; in HdfUnregisterDriverEntry() local 56 DLIST_FOR_EACH_ENTRY_SAFE(driver, tmp, driverHead, struct HdfDriver, node) { in HdfUnregisterDriverEntry() 57 if (driver->entry == entry) { in HdfUnregisterDriverEntry() 58 DListRemove(&driver->node); in HdfUnregisterDriverEntry() 59 OsalMemFree(driver); in HdfUnregisterDriverEntry() 67 int32_t HdfRegisterDriver(struct HdfDriver *driver) in HdfRegisterDriver() argument 69 if (driver == NULL || driver->entry == NULL || driver->entry->moduleName == NULL) { in HdfRegisterDriver() 73 DListInsertTail(&driver->node, HdfDriverHead()); in HdfRegisterDriver() 77 int32_t HdfUnregisterDriver(struct HdfDriver *driver) in HdfUnregisterDriver() argument 83 if (driver == NULL) { in HdfUnregisterDriver() [all …]
|
/drivers/hdf_core/adapter/khdf/linux/model/sensor/ |
D | Kconfig | 13 bool "Enable HDF sensor driver" 17 Answer Y to enable HDF sensor driver. 20 bool "Enable HDF accel sensor driver" 24 Answer Y to enable HDF accel sensor driver. 26 bool "Enable HDF accel bmi160 sensor driver" 30 Answer Y to enable HDF accel bmi160 sensor driver. 32 bool "Enable HDF accel mxc6655xa sensor driver" 36 Answer Y to enable HDF accel mxc6655xa sensor driver. 38 bool "Enable HDF ppg sensor driver" 42 Answer Y to enable HDF ppg sensor driver. [all …]
|
/drivers/hdf_core/adapter/khdf/linux/platform/ |
D | Kconfig | 2 bool "Enable HDF platform driver" 6 Answer Y to enable HDF platform driver. 9 bool "Enable HDF platform mipi dsi driver" 13 Answer Y to enable HDF platform mipi dsi driver. 16 bool "Enable HDF platform mipi csi driver" 20 Answer Y to enable HDF platform mipi csi driver. 23 bool "Enable HDF platform gpio driver" 27 Answer Y to enable HDF platform gpio driver. 30 bool "Enable HDF platform i2c driver" 34 Answer Y to enable HDF platform i2c driver. [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/ |
D | conftest.py | 19 driver = None 20 global_param[global_driver] = driver 36 driver = _get_global_data('global_driver') 37 if driver is None: 40 driver = webdriver.Firefox() 42 driver = webdriver.Chrome() 44 driver = webdriver.Firefox() 47 driver.quit() 50 return driver
|
/drivers/hdf_core/adapter/khdf/uniproton/platform/ |
D | Kconfig | 32 bool "Enable HDF platform gpio driver" 36 Answer Y to enable HDF platform gpio driver. 39 bool "Enable HDF platform i2c driver" 43 Answer Y to enable HDF platform i2c driver. 46 bool "Enable HDF platform uart driver" 50 Answer Y to enable HDF platform uart driver. 53 bool "Enable HDF platform adc driver" 57 Answer Y to enable HDF platform adc driver. 60 bool "Enable HDF platform mmc driver" 64 Answer Y to enable HDF platform mmc driver. [all …]
|
/drivers/hdf_core/adapter/khdf/liteos_m/ |
D | Kconfig | 30 bool "HDF driver framework support" 44 bool "Enable HDF platform driver" 48 Answer Y to enable HDF platform driver. 51 bool "Enable HDF platform gpio driver" 55 Answer Y to enable HDF platform gpio driver. 58 bool "Enable HDF platform i2c driver" 62 Answer Y to enable HDF platform i2c driver. 64 bool "Enable HDF platform uart driver" 68 Answer Y to enable HDF platform uart driver. 71 bool "Enable HDF platform adc driver" [all …]
|
/drivers/hdf_core/adapter/khdf/linux/model/audio/ |
D | Kconfig | 2 bool "Enable HDF Audio driver" 6 Answer Y to choice HDF Audio driver. 9 bool "Enable HDF Audio HDMI driver" 13 Answer Y to choice HDF Audio HDMI driver. 16 bool "Enable HDF Audio USB driver" 20 Answer Y to choice HDF Audio USB driver. 23 bool "Enable HDF Audio Codec driver" 27 Answer Y to choice HDF Audio Codec driver. 30 bool "Enable HDF Audio Codec driver" 34 Answer Y to choice HDF Audio Codec driver. [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/model/sensor/ |
D | Kconfig | 30 bool "Enable HDF sensor driver" 34 Answer Y to enable HDF sensor driver. 37 bool "Enable HDF accel sensor driver" 41 Answer Y to enable HDF accel sensor driver. 43 bool "Enable HDF accel bmi160 sensor driver" 47 Answer Y to enable HDF accel bmi160 sensor driver. 49 bool "Enable HDF als sensor driver" 53 Answer Y to enable HDF als sensor driver. 55 bool "Enable HDF als bh1745 sensor driver" 59 Answer Y to enable HDF als bh1745 sensor driver. [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/ |
D | Kconfig | 30 bool "HDF driver framework support" 37 bool "Enable HDF platform driver" 41 Answer Y to enable HDF platform driver. 44 bool "Enable HDF platform gpio driver" 48 Answer Y to enable HDF platform gpio driver. 51 bool "Enable HDF platform pin driver" 55 Answer Y to enable HDF platform pin driver. 58 bool "Enable HDF platform i2c driver" 62 Answer Y to enable HDF platform i2c driver. 72 bool "Enable HDF platform regulator driver" [all …]
|
D | README.md | 9 …ilation scripts for the OpenHarmony driver subsystem to adapt to the LiteOS kernel and to deploy t… 16 │ ├── bus # Bus driver model 17 │ ├── display # Display driver model 18 │ ├── input # Input driver model 19 │ ├── network # WLAN driver model 20 │ ├── sensor # Sensor driver model 24 ├── test # Test code for the LiteOS kernel driver framework 30 [Driver subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/driver.md)
|
/drivers/hdf_core/adapter/khdf/linux/model/display/ |
D | Kconfig | 2 bool "Enable HDF Display driver" 6 Answer Y to choice HDF Display driver. 8 bool "Enable HDF Lcdkit driver" 12 Answer Y to enable HDF Lcdkit driver. 14 bool "Enable HDF Icn9700 driver" 18 Answer Y to enable HDF Icn9700 driver. 20 bool "Enable HDF St7789 driver" 24 Answer Y to enable HDF St7789 driver.
|
/drivers/hdf_core/adapter/khdf/liteos/model/display/ |
D | Makefile | 35 $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver \ 36 $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/backlight 39 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/hdf_disp.c \ 40 … $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/backlight/hdf_bl.c 43 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/backlight/pwm_b… 47 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/adapter_soc/hi3… 51 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/lcdkit/lite_lcd… 52 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/lcdkit/lcdkit_p… 56 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/panel/mipi_icn9… 60 LOCAL_SRCS += $(LITEOSTOPDIR)/../../drivers/hdf_core/framework/model/display/driver/panel/ssp_st778…
|
/drivers/hdf_core/adapter/khdf/linux/model/input/ |
D | Kconfig | 2 bool "Enable HDF input driver" 6 Answer Y to enable HDF input driver. 9 bool "Enable HDF tp 5P5 GT911 driver" 13 Answer Y to enable HDF TP 5P5 GT911 driver. 16 bool "Enable HDF tp 2P35 FT6236 driver" 20 Answer Y to enable HDF TP 2P35 FT6236 driver. 23 bool "Enable HDF infrared driver" 27 Answer Y to enable HDF infrared driver. 30 bool "Enable HDF tp 5P43 FT5406 driver" 34 Answer Y to enable HDF TP 5P43 FT5406 driver.
|
/drivers/hdf_core/framework/model/input/driver/ |
D | hdf_touch.c | 43 static void InputFrameReport(TouchDriver *driver); 187 static int32_t SetResetStatus(TouchDriver *driver) in SetResetStatus() argument 197 ret = InputI2cWrite(&driver->i2cClient, writeBuf, 5); // 5: buffer size in SetResetStatus() 207 ret = InputI2cWrite(&driver->i2cClient, writeBuf, 3); // 3: buffer size in SetResetStatus() 253 TouchDriver *driver = chipDev->driver; in SetTiming() local 255 rstPinAddr = driver->boardCfg->pins.rstPinReg[0]; in SetTiming() 256 rstPinValue = driver->boardCfg->pins.rstPinReg[1]; in SetTiming() 257 intPinAddr = driver->boardCfg->pins.intPinReg[0]; in SetTiming() 258 intPinValue = driver->boardCfg->pins.intPinReg[1]; in SetTiming() 304 ret = SetResetStatus(driver); in SetTiming() [all …]
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | driver_loader_full.c | 59 struct HdfDriver *driver = OsalMemAlloc(sizeof(struct HdfDriver)); in HdfDriverLoaderGetDriver() local 60 if (driver == NULL) { in HdfDriverLoaderGetDriver() 67 OsalMemFree(driver); in HdfDriverLoaderGetDriver() 75 OsalMemFree(driver); in HdfDriverLoaderGetDriver() 79 driver->entry = *driverEntry; in HdfDriverLoaderGetDriver() 80 driver->priv = handle; in HdfDriverLoaderGetDriver() 82 return driver; in HdfDriverLoaderGetDriver() 85 void HdfDriverLoaderFullReclaimDriver(struct HdfDriver *driver) in HdfDriverLoaderFullReclaimDriver() argument 87 if (driver == NULL) { in HdfDriverLoaderFullReclaimDriver() 91 OsalMemFree(driver); in HdfDriverLoaderFullReclaimDriver()
|
/drivers/hdf_core/framework/model/input/driver/touchscreen/ |
D | touch_ft5406.c | 44 InputI2cClient *i2cClient = &device->driver->i2cClient; in ChipDetect() 80 InputI2cClient *i2cClient = &device->driver->i2cClient; in ParsePointData() 122 InputI2cClient *i2cClient = &device->driver->i2cClient; in ChipDataHandle() 123 FrameData *frame = &device->driver->frameData; in ChipDataHandle() 128 OsalMutexLock(&device->driver->mutex); in ChipDataHandle() 142 OsalMutexUnlock(&device->driver->mutex); in ChipDataHandle() 156 OsalMutexUnlock(&device->driver->mutex); in ChipDataHandle() 160 OsalMutexUnlock(&device->driver->mutex); in ChipDataHandle() 171 device->driver->inputDev->abilitySet.devProp[0] = SET_BIT(INPUT_PROP_DIRECT); in SetAbility() 172 device->driver->inputDev->abilitySet.eventType[0] = SET_BIT(EV_SYN) | in SetAbility() [all …]
|
D | touch_ft5x06.c | 157 InputI2cClient *i2cClient = &device->driver->i2cClient; in ChipDetect() 177 device->driver->inputDev->abilitySet.devProp[NUM_0] = SET_BIT(INPUT_PROP_DIRECT); in SetAbility() 178 device->driver->inputDev->abilitySet.eventType[NUM_0] = SET_BIT(EV_SYN) | in SetAbility() 180 device->driver->inputDev->abilitySet.absCode[NUM_0] = SET_BIT(ABS_X) | SET_BIT(ABS_Y); in SetAbility() 181 device->driver->inputDev->abilitySet.absCode[NUM_1] = SET_BIT(ABS_MT_POSITION_X) | in SetAbility() 183 device->driver->inputDev->abilitySet.keyCode[NUM_3] = SET_BIT(KEY_UP) | SET_BIT(KEY_DOWN); in SetAbility() 184 device->driver->inputDev->attrSet.axisInfo[ABS_X].min = NUM_0; in SetAbility() 185 …device->driver->inputDev->attrSet.axisInfo[ABS_X].max = device->boardCfg->attr.resolutionX - NUM_1; in SetAbility() 186 device->driver->inputDev->attrSet.axisInfo[ABS_X].range = NUM_0; in SetAbility() 187 device->driver->inputDev->attrSet.axisInfo[ABS_Y].min = NUM_0; in SetAbility() [all …]
|
/drivers/hdf_core/framework/ |
D | README.md | 16 …driver subsystem, including the driver framework, configuration management, configuration parsing,… 47 │ └── sensor # Sensor driver module 48 │ └── storage # Storage driver module 49 │ └── usb # Usb driver module 52 │ └── platform # Platform driver framework and APIs, including GPIO, I2C, and SPI 70 …velop a driver based on the HDF, you only need to register and configure required APIs. The driver… 76 - Information configuration: Present the loading information of the driver. 78 - Resource configuration: Configure the hardware information of the driver. 80 You need to complete the logic code for the functions of a driver by the following APIs. 82 The first part that catches your eyes is the driver entry, which is described through **DriverEntr… [all …]
|
/drivers/hdf_core/ |
D | README.md | 16 …driver subsystem, including the driver framework, configuration management, configuration parsing,… 47 │ └── sensor # Sensor driver module 48 │ └── storage # Storage driver module 49 │ └── usb # Usb driver module 52 │ └── platform # Platform driver framework and APIs, including GPIO, I2C, and SPI 70 …velop a driver based on the HDF, you only need to register and configure required APIs. The driver… 76 - Information configuration: Present the loading information of the driver. 78 - Resource configuration: Configure the hardware information of the driver. 80 You need to complete the logic code for the functions of a driver by the following APIs. 82 The first part that catches your eyes is the driver entry, which is described through **DriverEntr… [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/input_template/ |
D | input_driver_source.template | 44 Therefore, the device driver layer code focuses on adapting to the differentiated interface part. 52 FrameData *frame = &device->driver->frameData; 54 OsalMutexLock(&device->driver->mutex); 68 OsalMutexUnlock(&device->driver->mutex); 75 InputI2cClient *i2cClient = &device->driver->i2cClient; 86 device->driver->inputDev->abilitySet.devProp[0] = SET_BIT(INPUT_PROP_DIRECT); 87 device->driver->inputDev->abilitySet.eventType[0] = SET_BIT(EV_SYN) | 89 device->driver->inputDev->abilitySet.absCode[0] = SET_BIT(ABS_X) | SET_BIT(ABS_Y); 90 device->driver->inputDev->abilitySet.absCode[1] = SET_BIT(ABS_MT_POSITION_X) | 92 … device->driver->inputDev->abilitySet.keyCode[KEY_CODE_4TH] = SET_BIT(KEY_UP) | SET_BIT(KEY_DOWN); [all …]
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
D | hdf_module_mk_file.py | 29 def _begin_end(self, driver): argument 30 driver_id = hdf_utils.get_id(self.module, driver) 35 def _create_driver_item(self, driver): argument 36 drv_converter = hdf_utils.WordsConverter(driver) 43 begin_flag, end_flag = self._begin_end(driver) 46 def add_driver(self, driver): argument 47 drv_section = self._create_driver_item(driver) 62 def delete_driver(self, driver): argument 63 begin_flag, end_flag = self._begin_end(driver)
|
D | hdf_driver_config_file.py | 23 def __init__(self, root, board, module, driver, kernel, only_path=False): argument 27 self.driver = driver 38 self.drv_dir, '%s_config.hcs' % self.driver) 58 self.manager_hcs.add_device(self.module, self.driver) 59 self.hdf_hcs.add_driver(self.module, self.driver) 65 self.manager_hcs.delete_device(self.module, self.driver) 66 self.hdf_hcs.delete_driver(self.module, self.driver)
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/ |
D | hdf_driver.c.template | 1 …lude "hdf_device_desc.h" // Header file that describes the APIs provided by the HDF to the driver. 6 // The driver service struct definition 11 // The driver service interface must be bound to the HDF for you to use the service capability. 13 HDF_LOGI("${driver_lower_case} driver bind success"); 17 // Initialize the driver service. 23 // Release the driver resources. 25 HDF_LOGI("${driver_lower_case} driver Release success"); 29 // Define the object of the driver entry. The object must be a global variable of the HdfDriverEntr… 38 …driver entry with the HDF framework. When loading the driver, call the Bind function and then the …
|
D | exists_model_hcs_info.template | 2 device0 :: deviceNode { // DeviceNode of the sample driver 5 …preload = 0; // On-demand loading of the driver. For details, see "… 6 … permission = 0664; // Permission for the driver to create device nodes. 8 … The value of this field must be the same as the value of moduleName in the driver entry structure. 9 …serviceName = "${driver_name}_service"; // Name of the service released by the driver. The nam… 10 … private data of the driver. The value must be the same as that of match_attr in the private data …
|
/drivers/hdf_core/adapter/khdf/linux/ |
D | README.md | 9 …pilation scripts for the OpenHarmony driver subsystem to adapt to the Linux kernel and to deploy t… 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 43 ├── test # Testcase for testing the Linux kernel driver [all …]
|