mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 10:54:43 +08:00
virtio-mmio: add secure virtio mmio device register api
In secure state, call virtio_register_mmio_device_secure() to register the secure virtio mmio device; In non-secure state, call virtio_register_mmio_device() to register the non-secure virtio mmio device; Board should ensure not mixed use the secure and non-seucre mmio device. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -61,6 +61,18 @@ extern "C"
|
||||
|
||||
int virtio_register_mmio_device(FAR void *regs, int irq);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: virtio_register_mmio_device_secure
|
||||
*
|
||||
* Description:
|
||||
* Register secure virtio mmio device to the virtio bus
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_TRUSTZONE_SECURE
|
||||
int virtio_register_mmio_device_secure(FAR void *regs, int irq);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user