/ohos5.0/drivers/hdf_core/adapter/uhdf2/shared/src/ |
H A D | dev_attribute_serialize.c | 39 if (attribute->deviceMatchAttr != NULL) { in DeviceAttributeSerialize() 41 !HdfSbufWriteString(sbuf, attribute->deviceMatchAttr)) { in DeviceAttributeSerialize() 96 const char *deviceMatchAttr = HdfSbufReadString(sbuf); in DeviceAttributeSet() local 97 if (deviceMatchAttr == NULL) { in DeviceAttributeSet() 101 attribute->deviceMatchAttr = strdup(deviceMatchAttr); in DeviceAttributeSet() 102 if (attribute->deviceMatchAttr == NULL) { in DeviceAttributeSet() 123 if (attribute->deviceMatchAttr == NULL) { in DeviceAttributeDeserialize() 156 if (attribute->deviceMatchAttr != NULL) { in DeviceSerializedAttributeRelease() 157 OsalMemFree((void *)attribute->deviceMatchAttr); in DeviceSerializedAttributeRelease()
|
/ohos5.0/drivers/hdf_core/adapter/platform/watchdog/ |
H A D | watchdog_stm32f4xx.c | 73 …tic uint32_t GetWatchdogDeviceInfoResource(WatchdogDeviceInfo *device, const char *deviceMatchAttr) in GetWatchdogDeviceInfoResource() argument 76 if (device == NULL || deviceMatchAttr == NULL) { in GetWatchdogDeviceInfoResource() 81 … HCS_FOREACH_CHILD_VARGS(PLATFORM_WATCHDOG_CONFIG, WATCHDOG_FIND_CONFIG, deviceMatchAttr, device); in GetWatchdogDeviceInfoResource() 84 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetWatchdogDeviceInfoResource() 127 if (device == NULL || device->deviceMatchAttr == NULL) { 142 ret = GetWatchdogDeviceInfoResource(watchdogdeviceinfo, device->deviceMatchAttr);
|
/ohos5.0/drivers/hdf_core/framework/core/shared/include/ |
H A D | hdf_attribute_macro.h | 39 const char *deviceMatchAttr; member 57 deviceNode->deviceMatchAttr = HCS_PROP(node, deviceMatchAttr); \
|
/ohos5.0/drivers/hdf_core/framework/model/usb/src/ |
H A D | usb_ddk_pnp_loader.c | 38 const char *deviceMatchAttr, struct UsbPnpNotifyServiceInfo serviceInfo) in UsbDdkPnpLoaderBufCreate() argument 58 if (!HdfSbufWriteString(pnpData, deviceMatchAttr)) { in UsbDdkPnpLoaderBufCreate() 515 … if (devResIface->GetString(node, "deviceMatchAttr", &table->deviceMatchAttr, "") != HDF_SUCCESS) { in UsbDdkPnpLoaderParseIdTable() 682 const char *deviceMatchAttr = HdfSbufReadString(data); in UsbDdkPnpLoaderDispatchPnpDevice() local 683 if (deviceMatchAttr == NULL) { in UsbDdkPnpLoaderDispatchPnpDevice() 695 managerInfo.deviceMatchAttr = deviceMatchAttr; in UsbDdkPnpLoaderDispatchPnpDevice() 719 deviceTableListTemp->deviceMatchAttr = idTable->deviceMatchAttr; in UsbDdkPnpLoaderDeviceListAdd() 754 (strcmp(deviceListTablePos->deviceMatchAttr, idTable->deviceMatchAttr) == 0) && in UsbDdkPnpLoaderAddInterface() 789 …pLoaderBufCreate(idTable->moduleName, idTable->serviceName, idTable->deviceMatchAttr, serviceInfo); in UsbDdkPnpLoaderrAddPnpDevice() 868 deviceListTablePos->deviceMatchAttr, serviceInfo); in UsbDdkPnpLoaderRemoveHandle()
|
/ohos5.0/drivers/hdf_core/adapter/platform/pwm/ |
H A D | pwm_bes.c | 99 static uint32_t GetPwmDeviceResource(struct PwmDevice *device, const char *deviceMatchAttr) in GetPwmDeviceResource() argument 103 if (device == NULL || deviceMatchAttr == NULL) { in GetPwmDeviceResource() 109 HCS_FOREACH_CHILD_VARGS(PLATFORM_PWM_CONFIG, PWM_FIND_CONFIG, deviceMatchAttr, resource); in GetPwmDeviceResource() 112 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetPwmDeviceResource() 173 ret = GetPwmDeviceResource(pwmDevice, device->deviceMatchAttr);
|
H A D | pwm_stm32f4xx.c | 212 static uint32_t GetPwmDeviceResource(PwmDevice *device, const char *deviceMatchAttr) in GetPwmDeviceResource() argument 216 if (device == NULL || deviceMatchAttr == NULL) { in GetPwmDeviceResource() 222 HCS_FOREACH_CHILD_VARGS(PLATFORM_PWM_CONFIG, PWM_FIND_CONFIG, deviceMatchAttr, resource); in GetPwmDeviceResource() 225 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetPwmDeviceResource() 295 ret = GetPwmDeviceResource(pwmDevice, device->deviceMatchAttr);
|
/ohos5.0/drivers/hdf_core/adapter/platform/i2c/ |
H A D | i2c_stm32f4xx.c | 79 …tic uint32_t GetI2cDeviceResource(struct RealI2cResource *i2cResource, const char *deviceMatchAttr) in GetI2cDeviceResource() argument 83 if (i2cResource == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource() 89 HCS_FOREACH_CHILD_VARGS(PLATFORM_I2C_CONFIG, I2C_FIND_CONFIG, deviceMatchAttr, resource); in GetI2cDeviceResource() 92 HDF_LOGE("resourceNode %s is NULL\r\n", deviceMatchAttr); in GetI2cDeviceResource() 154 ret = GetI2cDeviceResource(i2cResource, device->deviceMatchAttr); in AttachI2cDevice()
|
H A D | i2c_bes.c | 155 const char *deviceMatchAttr) in GetI2cDeviceResource() argument 160 if (device == NULL || deviceMatchAttr == NULL) { in GetI2cDeviceResource() 166 …HCS_FOREACH_CHILD_VARGS(PLATFORM_I2C_CONFIG, I2C_FIND_CONFIG, deviceMatchAttr, resource, result, t… in GetI2cDeviceResource() 169 HDF_LOGE("resourceNode %s is NULL", deviceMatchAttr); in GetI2cDeviceResource() 256 ret = GetI2cDeviceResource(i2cDevice, device->deviceMatchAttr); in AttachI2cDevice()
|
/ohos5.0/drivers/hdf_core/framework/model/usb/include/ |
H A D | usb_ddk_pnp_loader.h | 21 const char *deviceMatchAttr; member 59 const char *deviceMatchAttr; member
|
H A D | usb_pnp_manager.h | 19 const char *deviceMatchAttr; member
|
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/ |
H A D | usb_ddk_pnp_loader.h | 21 const char *deviceMatchAttr; member 59 const char *deviceMatchAttr; member
|
H A D | usb_pnp_manager.h | 19 const char *deviceMatchAttr; member
|
/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device_node.c | 285 devNode->deviceObject.deviceMatchAttr = deviceInfo->deviceMatchAttr; in HdfDeviceNodeNewInstance() 287 …e->deviceObject.property = HcsGetNodeByMatchAttr(HdfGetHcsRootNode(), deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance() 290 deviceInfo->moduleName, deviceInfo->deviceMatchAttr); in HdfDeviceNodeNewInstance()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-platform-mipidsi-develop.md | 141 …deviceMatchAttr字段来完成的。只有当deviceNode下的deviceMatchAttr字段与配置属性文件中的match_attr字段完全相同时,驱动才能正确读取配置数据。器件属性… 154 | deviceMatchAttr | 驱动私有数据匹配的关键字,MIPI DSI控制器没有使用,可忽略 |
|
H A D | driver-platform-pwm-develop.md | 113 | deviceMatchAttr | 驱动私有数据匹配的关键字,PWM控制器设置为hisilicon_hi35xx_pwm_X,X代表PWM控制器编号 | 133 …deviceMatchAttr = "hisilicon_hi35xx_pwm_0"; // 【必要】用于配置控制器私有数据,要与pwm_config.hcs中对应控制器保持一致,具体的控制… 141 deviceMatchAttr = "hisilicon_hi35xx_pwm_1"; 165 … match_attr = "hisilicon_hi35xx_pwm_0"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
|
H A D | driver-platform-i2c-develop.md | 172 | deviceMatchAttr | 驱动私有数据匹配的关键字,I2C管理器设置为hdf_platform_i2c_manager | 189 deviceMatchAttr = "hdf_platform_i2c_manager"; 197 … deviceMatchAttr = "hisilicon_hi35xx_i2c"; //【必要】用于配置控制器私有数据,要与i2c_config.hcs中对应控制器保持一致, 211 … match_attr = "hisilicon_hi35xx_i2c"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
|
H A D | driver-platform-mmc-develop.md | 147 | deviceMatchAttr | 驱动私有数据匹配的关键字,MMC控制器控制器设置为hi3516_mmc_X,X代表控制器类型名 | 167 … deviceMatchAttr = "hi3516_mmc_emmc"; // 【必要】用于配置控制器私有数据,要与mmc_config.hcs中对应控制器保持一致。emmc类型。 175 deviceMatchAttr = "hi3516_mmc_sd"; // SD类型 183 deviceMatchAttr = "hi3516_mmc_sdio"; // SDIO类型 218 … match_attr = "hi3516_mmc_emmc"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
|
H A D | driver-platform-watchdog-develop.md | 123 | deviceMatchAttr | 驱动私有数据匹配的关键字,Watchdog控制器设置为hisilicon_hi35xx_watchdog_X,X代表Watchdog控制器编号 | 140 …deviceMatchAttr = "hisilicon_hi35xx_watchdog_0"; // 【必要】用于配置控制器私有数据,必须和驱动私有数据配置表watchdog_config… 162 … match_attr = "hisilicon_hi35xx_watchdog_0"; // 【必要】必须和device_info.hcs中的deviceMatchAttr值一致
|
H A D | driver-platform-mipicsi-develop.md | 157 …_info.hcs文件中添加deviceNode描述。deviceNode与配置属性的对应关系是依靠deviceMatchAttr字段来完成的。只有当deviceNode下的deviceMatch… 160 …>本例中MIPI控制器配置属性在源文件中,没有新增配置文件,驱动适配者如有需要,可在device_info.hcs文件的deviceNode增加deviceMatchAttr字段,同时新增mipi… 173 | deviceMatchAttr | 驱动私有数据匹配的关键字,MIPI CSI控制器没有使用,可忽略 |
|
H A D | driver-platform-spi-develop.md | 165 | deviceMatchAttr | 驱动私有数据匹配的关键字,SPI控制器设置为hisilicon_hi35xx_spi_X,X代表SPI控制器编号 | 183 deviceMatchAttr = "hisilicon_hi35xx_spi_0"; 191 … deviceMatchAttr = "hisilicon_hi35xx_spi_1"; // 驱动私有数据匹配的关键字,必须和驱动私有数据配置表中的match_attr值一致。 233 … match_attr = "hisilicon_hi35xx_spi_0"; // 【必要】需要和device_info.hcs中的deviceMatchAttr值一致
|
H A D | driver-platform-regulator-develop.md | 122 | deviceMatchAttr | 驱动私有数据匹配的关键字,Regulator管理器设置为hdf_platform_regulator_manager | 141 …deviceMatchAttr = "hdf_platform_regulator_manager"; // 【必要】用于配置控制器私有数据,要与regulator_config.hcs中对应控… 148 deviceMatchAttr = "linux_regulator_adapter";
|
/ohos5.0/docs/zh-cn/device-dev/guide/ |
H A D | device-outerdriver-demo.md | 43 …要提供给HDF框架使用,包含了Input模型各层驱动注册到HDF框架所必需的信息,开发者无特殊场景需求无需改动。各驱动层私有配置信息通过“deviceMatchAttr”字段与input\_con… 59 deviceMatchAttr = ""; // manager目前不需要私有配置,因此为空 71 deviceMatchAttr = "touch_device1"; // 与私有配置信息中的“match_attr”字段保持一致 83 deviceMatchAttr = "zsj_gt911_5p5"; // 与私有配置信息中的“match_attr”字段保持一致 99 “deviceMatchAttr”需要与私有配置信息中的“match\_attr”字段保持一致。
|
/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-hdf-coding-guide.md | 169 deviceMatchAttr = ""; 181 deviceMatchAttr = "sample_config"; // 驱动私有数据匹配的关键字,必须和驱动私有数据配置表中的match_attr值相等 396 #### 【规则】驱动私有配置信息中的matchAttr字段值,必须与device_info.hcs中配置的deviceMatchAttr字段值一致 406 match_attr = "sample_config"; // 该字段的值必须和device_info.hcs中的deviceMatchAttr值一致
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hcs/default/ |
H A D | device_info.hcs | 15 deviceMatchAttr = "";
|
/ohos5.0/drivers/hdf_core/framework/sample/config/device_info/ |
H A D | device_info.hcs | 13 deviceMatchAttr = "sample_uart_5";
|