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

gen_bd.h (1166B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Header for Bestcomm General Buffer Descriptor tasks driver
      4 *
      5 * Copyright (C) 2007 Sylvain Munaut <tnt@246tNt.com>
      6 * Copyright (C) 2006 AppSpec Computer Technologies Corp.
      7 *                    Jeff Gibbons <jeff.gibbons@appspec.com>
      8 */
      9
     10#ifndef __BESTCOMM_GEN_BD_H__
     11#define __BESTCOMM_GEN_BD_H__
     12
     13struct bcom_gen_bd {
     14	u32	status;
     15	u32	buf_pa;
     16};
     17
     18
     19extern struct bcom_task *
     20bcom_gen_bd_rx_init(int queue_len, phys_addr_t fifo,
     21			int initiator, int ipr, int maxbufsize);
     22
     23extern int
     24bcom_gen_bd_rx_reset(struct bcom_task *tsk);
     25
     26extern void
     27bcom_gen_bd_rx_release(struct bcom_task *tsk);
     28
     29
     30extern struct bcom_task *
     31bcom_gen_bd_tx_init(int queue_len, phys_addr_t fifo,
     32			int initiator, int ipr);
     33
     34extern int
     35bcom_gen_bd_tx_reset(struct bcom_task *tsk);
     36
     37extern void
     38bcom_gen_bd_tx_release(struct bcom_task *tsk);
     39
     40
     41/* PSC support utility wrappers */
     42struct bcom_task * bcom_psc_gen_bd_rx_init(unsigned psc_num, int queue_len,
     43					   phys_addr_t fifo, int maxbufsize);
     44struct bcom_task * bcom_psc_gen_bd_tx_init(unsigned psc_num, int queue_len,
     45					   phys_addr_t fifo);
     46#endif  /* __BESTCOMM_GEN_BD_H__ */
     47