Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  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.
  16.  */
  17.  
  18. #ifndef PCH_DMA_H
  19. #define PCH_DMA_H
  20.  
  21. enum pch_dma_width {
  22.         PCH_DMA_WIDTH_1_BYTE,
  23.         PCH_DMA_WIDTH_2_BYTES,
  24.         PCH_DMA_WIDTH_4_BYTES,
  25. };
  26.  
  27. struct pch_dma_slave {
  28.         struct device           *dma_dev;
  29.         unsigned int            chan_id;
  30.         dma_addr_t              tx_reg;
  31.         dma_addr_t              rx_reg;
  32.         enum pch_dma_width      width;
  33. };
  34.  
  35. #endif
  36.