smmu_v3_transl.cc (14064:870553bad072) smmu_v3_transl.cc (14065:f925f90bda01)
1/*
2 * Copyright (c) 2013, 2018-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1266 unchanged lines hidden (view full) ---

1275 a.ifc = &ifc;
1276 a.delay = 0;
1277 yield(a);
1278}
1279
1280void
1281SMMUTranslationProcess::sendEvent(Yield &yield, const SMMUEvent &ev)
1282{
1/*
2 * Copyright (c) 2013, 2018-2019 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 1266 unchanged lines hidden (view full) ---

1275 a.ifc = &ifc;
1276 a.delay = 0;
1277 yield(a);
1278}
1279
1280void
1281SMMUTranslationProcess::sendEvent(Yield &yield, const SMMUEvent &ev)
1282{
1283 int sizeMask = mask(smmu.regs.eventq_base & Q_BASE_SIZE_MASK) &
1284 Q_CONS_PROD_MASK;
1283 int sizeMask = mask(smmu.regs.eventq_base & Q_BASE_SIZE_MASK);
1285
1286 if (((smmu.regs.eventq_prod+1) & sizeMask) ==
1287 (smmu.regs.eventq_cons & sizeMask))
1288 panic("Event queue full - aborting\n");
1289
1290 Addr event_addr =
1291 (smmu.regs.eventq_base & Q_BASE_ADDR_MASK) +
1292 (smmu.regs.eventq_prod & sizeMask) * sizeof(ev);

--- 169 unchanged lines hidden ---
1284
1285 if (((smmu.regs.eventq_prod+1) & sizeMask) ==
1286 (smmu.regs.eventq_cons & sizeMask))
1287 panic("Event queue full - aborting\n");
1288
1289 Addr event_addr =
1290 (smmu.regs.eventq_base & Q_BASE_ADDR_MASK) +
1291 (smmu.regs.eventq_prod & sizeMask) * sizeof(ev);

--- 169 unchanged lines hidden ---