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

mantis_core.h (864B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2/*
      3	Mantis PCI bridge driver
      4
      5	Copyright (C) Manu Abraham (abraham.manu@gmail.com)
      6
      7*/
      8
      9#ifndef __MANTIS_CORE_H
     10#define __MANTIS_CORE_H
     11
     12#include "mantis_common.h"
     13
     14
     15#define FE_TYPE_SAT	0
     16#define FE_TYPE_CAB	1
     17#define FE_TYPE_TER	2
     18
     19#define FE_TYPE_TS204	0
     20#define FE_TYPE_TS188	1
     21
     22
     23struct vendorname {
     24	u8  *sub_vendor_name;
     25	u32 sub_vendor_id;
     26};
     27
     28struct devicetype {
     29	u8  *sub_device_name;
     30	u32 sub_device_id;
     31	u8  device_type;
     32	u32 type_flags;
     33};
     34
     35
     36extern int mantis_dma_init(struct mantis_pci *mantis);
     37extern int mantis_dma_exit(struct mantis_pci *mantis);
     38extern void mantis_dma_start(struct mantis_pci *mantis);
     39extern void mantis_dma_stop(struct mantis_pci *mantis);
     40extern int mantis_i2c_init(struct mantis_pci *mantis);
     41extern int mantis_i2c_exit(struct mantis_pci *mantis);
     42
     43#endif /* __MANTIS_CORE_H */