serial/uart/h4: add ioctl interface

Signed-off-by: chengkai <chengkai@xiaomi.com>
This commit is contained in:
chengkai
2022-08-11 15:50:07 +08:00
committed by Xiang Xiao
parent 841d8f5b37
commit d78ffeca71
2 changed files with 14 additions and 1 deletions
@@ -79,6 +79,11 @@ struct bt_driver_s
enum bt_buf_type_e type,
FAR void *data, size_t len);
/* Lower-half logic may support platform-specific ioctl commands */
CODE int (*ioctl)(FAR struct bt_driver_s *btdev, int cmd,
unsigned long arg);
/* Filled by register function, shouldn't be touched by bt_driver_s */
FAR void *priv;