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

pch_dma.h (408B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Copyright (c) 2010 Intel Corporation
      4 */
      5
      6#ifndef PCH_DMA_H
      7#define PCH_DMA_H
      8
      9#include <linux/dmaengine.h>
     10
     11enum pch_dma_width {
     12	PCH_DMA_WIDTH_1_BYTE,
     13	PCH_DMA_WIDTH_2_BYTES,
     14	PCH_DMA_WIDTH_4_BYTES,
     15};
     16
     17struct pch_dma_slave {
     18	struct device		*dma_dev;
     19	unsigned int		chan_id;
     20	dma_addr_t		tx_reg;
     21	dma_addr_t		rx_reg;
     22	enum pch_dma_width	width;
     23};
     24
     25#endif