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

cs5536_vsm.h (762B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * the read/write interfaces for Virtual Support Module(VSM)
      4 *
      5 * Copyright (C) 2009 Lemote, Inc.
      6 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
      7 */
      8
      9#ifndef _CS5536_VSM_H
     10#define _CS5536_VSM_H
     11
     12#include <linux/types.h>
     13
     14typedef void (*cs5536_pci_vsm_write)(int reg, u32 value);
     15typedef u32 (*cs5536_pci_vsm_read)(int reg);
     16
     17#define DECLARE_CS5536_MODULE(name) \
     18extern void pci_##name##_write_reg(int reg, u32 value); \
     19extern u32 pci_##name##_read_reg(int reg);
     20
     21/* ide module */
     22DECLARE_CS5536_MODULE(ide)
     23/* acc module */
     24DECLARE_CS5536_MODULE(acc)
     25/* ohci module */
     26DECLARE_CS5536_MODULE(ohci)
     27/* isa module */
     28DECLARE_CS5536_MODULE(isa)
     29/* ehci module */
     30DECLARE_CS5536_MODULE(ehci)
     31
     32#endif				/* _CS5536_VSM_H */