• Siming Wan's avatar
    crypto: qat - expand CSR operations for QAT GEN4 devices · 3fa1057e
    Siming Wan authored
    Extend the CSR operations for QAT GEN4 devices to allow saving and
    restoring the rings state.
    
    The new operations will be used as a building block for implementing the
    state save and restore of Virtual Functions necessary for VM live
    migration.
    
    This adds the following operations:
     - read ring status register
     - read ring underflow/overflow status register
     - read ring nearly empty status register
     - read ring nearly full status register
     - read ring full status register
     - read ring complete status register
     - read ring exception status register
     - read/write ring exception interrupt mask register
     - read ring configuration register
     - read ring base register
     - read/write ring interrupt enable register
     - read ring interrupt flag register
     - read/write ring interrupt source select register
     - read ring coalesced interrupt enable register
     - read ring coalesced interrupt control register
     - read ring flag and coalesced interrupt enable register
     - read ring service arbiter enable register
     - get ring coalesced interrupt control enable mask
    Signed-off-by: default avatarSiming Wan <siming.wan@intel.com>
    Reviewed-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
    Signed-off-by: default avatarXin Zeng <xin.zeng@intel.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    3fa1057e
adf_accel_devices.h 13.8 KB