s3c24xx-fiq.h 788 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* linux/drivers/spi/spi_s3c24xx_fiq.h
  3. *
  4. * Copyright 2009 Simtec Electronics
  5. * Ben Dooks <[email protected]>
  6. *
  7. * S3C24XX SPI - FIQ pseudo-DMA transfer support
  8. */
  9. #ifndef __LINUX_SPI_S3C24XX_FIQ_H
  10. #define __LINUX_SPI_S3C24XX_FIQ_H __FILE__
  11. /* We have R8 through R13 to play with */
  12. #ifdef __ASSEMBLY__
  13. #define __REG_NR(x) r##x
  14. #else
  15. extern struct spi_fiq_code s3c24xx_spi_fiq_txrx;
  16. extern struct spi_fiq_code s3c24xx_spi_fiq_tx;
  17. extern struct spi_fiq_code s3c24xx_spi_fiq_rx;
  18. #define __REG_NR(x) (x)
  19. #endif
  20. #define fiq_rspi __REG_NR(8)
  21. #define fiq_rtmp __REG_NR(9)
  22. #define fiq_rrx __REG_NR(10)
  23. #define fiq_rtx __REG_NR(11)
  24. #define fiq_rcount __REG_NR(12)
  25. #define fiq_rirq __REG_NR(13)
  26. #endif /* __LINUX_SPI_S3C24XX_FIQ_H */