1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* linux/drivers/spi/spi_s3c24xx_fiq.h
4 * Copyright 2009 Simtec Electronics
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C24XX SPI - FIQ pseudo-DMA transfer support
10 #ifndef __LINUX_SPI_S3C24XX_FIQ_H
11 #define __LINUX_SPI_S3C24XX_FIQ_H __FILE__
13 /* We have R8 through R13 to play with */
16 #define __REG_NR(x) r##x
19 extern struct spi_fiq_code s3c24xx_spi_fiq_txrx;
20 extern struct spi_fiq_code s3c24xx_spi_fiq_tx;
21 extern struct spi_fiq_code s3c24xx_spi_fiq_rx;
23 #define __REG_NR(x) (x)
26 #define fiq_rspi __REG_NR(8)
27 #define fiq_rtmp __REG_NR(9)
28 #define fiq_rrx __REG_NR(10)
29 #define fiq_rtx __REG_NR(11)
30 #define fiq_rcount __REG_NR(12)
31 #define fiq_rirq __REG_NR(13)
33 #endif /* __LINUX_SPI_S3C24XX_FIQ_H */