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

iosm_ipc_irq.h (729B)


      1/* SPDX-License-Identifier: GPL-2.0-only
      2 *
      3 * Copyright (C) 2020-21 Intel Corporation.
      4 */
      5
      6#ifndef IOSM_IPC_IRQ_H
      7#define IOSM_IPC_IRQ_H
      8
      9struct iosm_pcie;
     10
     11/**
     12 * ipc_doorbell_fire - fire doorbell to CP
     13 * @ipc_pcie:	Pointer to iosm_pcie
     14 * @irq_n:	Doorbell type
     15 * @data:	ipc state
     16 */
     17void ipc_doorbell_fire(struct iosm_pcie *ipc_pcie, int irq_n, u32 data);
     18
     19/**
     20 * ipc_release_irq - Release the IRQ handler.
     21 * @ipc_pcie:	Pointer to iosm_pcie struct
     22 */
     23void ipc_release_irq(struct iosm_pcie *ipc_pcie);
     24
     25/**
     26 * ipc_acquire_irq - acquire IRQ & register IRQ handler.
     27 * @ipc_pcie:	Pointer to iosm_pcie struct
     28 *
     29 * Return: 0 on success and failure value on error
     30 */
     31int ipc_acquire_irq(struct iosm_pcie *ipc_pcie);
     32
     33#endif