B.1.2 Allocating the Event queue
The MMU-600 uses the Event queue to signal events. Software must allocate memory for the Event queue and configure the appropriate registers in the MMU.
To allocate the Event queue, ensure that your software performs the following steps:
Procedure
-
Allocate memory for the Event queue.
-
Configure the Event queue size and base address by writing to the
SMMU_EVENTQ_BASE register.
Note:
The queue size can affect how many bits of the SMMU_EVENTQ_CONS and
SMMU_EVENTQ_PROD indices are writeable. It is therefore important that you
perform this step before writing to SMMU_EVENTQ_CONS and
SMMU_EVENTQ_PROD.
-
Set the queue read index in SMMU_EVENTQ_CONS and the queue write index in
SMMU_EVENTQ_PROD to 0.
Note:
Setting the queue read index and the queue write index to the same value
indicates that the queue is empty.