1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Copyright (c) 2010 Intel Corporation 2 * Copyright (c) 2010 Intel Corporation >> 3 * >> 4 * This program is free software; you can redistribute it and/or modify >> 5 * it under the terms of the GNU General Public License version 2 as >> 6 * published by the Free Software Foundation. >> 7 * >> 8 * This program is distributed in the hope that it will be useful, >> 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 11 * GNU General Public License for more details. >> 12 * >> 13 * You should have received a copy of the GNU General Public License >> 14 * along with this program; if not, write to the Free Software >> 15 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 4 */ 16 */ 5 17 6 #ifndef PCH_DMA_H 18 #ifndef PCH_DMA_H 7 #define PCH_DMA_H 19 #define PCH_DMA_H 8 20 9 #include <linux/dmaengine.h> 21 #include <linux/dmaengine.h> 10 22 11 enum pch_dma_width { 23 enum pch_dma_width { 12 PCH_DMA_WIDTH_1_BYTE, 24 PCH_DMA_WIDTH_1_BYTE, 13 PCH_DMA_WIDTH_2_BYTES, 25 PCH_DMA_WIDTH_2_BYTES, 14 PCH_DMA_WIDTH_4_BYTES, 26 PCH_DMA_WIDTH_4_BYTES, 15 }; 27 }; 16 28 17 struct pch_dma_slave { 29 struct pch_dma_slave { 18 struct device *dma_dev; 30 struct device *dma_dev; 19 unsigned int chan_id; 31 unsigned int chan_id; 20 dma_addr_t tx_reg; 32 dma_addr_t tx_reg; 21 dma_addr_t rx_reg; 33 dma_addr_t rx_reg; 22 enum pch_dma_width width; 34 enum pch_dma_width width; 23 }; 35 }; 24 36 25 #endif 37 #endif 26 38
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.