cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

cryp_irq.h (915B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Copyright (C) ST-Ericsson SA 2010
      4 * Author: Shujuan Chen <shujuan.chen@stericsson.com> for ST-Ericsson.
      5 * Author: Jonas Linde <jonas.linde@stericsson.com> for ST-Ericsson.
      6 * Author: Joakim Bech <joakim.xx.bech@stericsson.com> for ST-Ericsson.
      7 * Author: Berne Hebark <berne.herbark@stericsson.com> for ST-Ericsson.
      8 * Author: Niklas Hernaeus <niklas.hernaeus@stericsson.com> for ST-Ericsson.
      9 */
     10
     11#ifndef _CRYP_IRQ_H_
     12#define _CRYP_IRQ_H_
     13
     14#include "cryp.h"
     15
     16enum cryp_irq_src_id {
     17	CRYP_IRQ_SRC_INPUT_FIFO = 0x1,
     18	CRYP_IRQ_SRC_OUTPUT_FIFO = 0x2,
     19	CRYP_IRQ_SRC_ALL = 0x3
     20};
     21
     22/*
     23 * M0 Funtions
     24 */
     25void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src);
     26
     27void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src);
     28
     29bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src);
     30
     31#endif				/* _CRYP_IRQ_H_ */