提交 37a9231e 编写于 作者: mysterywolf's avatar mysterywolf

[kernel][devices] add security devices

上级 295b95cd
...@@ -89,7 +89,7 @@ rt_err_t rt_hw_watchdog_register(struct rt_watchdog_device *wtd, ...@@ -89,7 +89,7 @@ rt_err_t rt_hw_watchdog_register(struct rt_watchdog_device *wtd,
device = &(wtd->parent); device = &(wtd->parent);
device->type = RT_Device_Class_Miscellaneous; device->type = RT_Device_Class_Security;
device->rx_indicate = RT_NULL; device->rx_indicate = RT_NULL;
device->tx_complete = RT_NULL; device->tx_complete = RT_NULL;
......
...@@ -822,6 +822,7 @@ static char *const device_type_str[] = ...@@ -822,6 +822,7 @@ static char *const device_type_str[] =
"Sensor Device", "Sensor Device",
"Touch Device", "Touch Device",
"Phy Device", "Phy Device",
"Security Device",
"Unknown" "Unknown"
}; };
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
* 2019-12-20 Bernard change version number to v4.0.3 * 2019-12-20 Bernard change version number to v4.0.3
* 2020-08-10 Meco Man add macro for struct rt_device_ops * 2020-08-10 Meco Man add macro for struct rt_device_ops
* 2020-10-23 Meco Man define maximum value of ipc type * 2020-10-23 Meco Man define maximum value of ipc type
* 2021-03-19 Meco Man add security devices
*/ */
#ifndef __RT_DEF_H__ #ifndef __RT_DEF_H__
...@@ -887,6 +888,7 @@ enum rt_device_class_type ...@@ -887,6 +888,7 @@ enum rt_device_class_type
RT_Device_Class_Sensor, /**< Sensor device */ RT_Device_Class_Sensor, /**< Sensor device */
RT_Device_Class_Touch, /**< Touch device */ RT_Device_Class_Touch, /**< Touch device */
RT_Device_Class_PHY, /**< PHY device */ RT_Device_Class_PHY, /**< PHY device */
RT_Device_Class_Security, /**< Security device */
RT_Device_Class_Unknown /**< unknown device */ RT_Device_Class_Unknown /**< unknown device */
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册