pch_dma.h 999 B

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