Merge tag 'samsung-soc-5.10' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk...
[linux-2.6-microblaze.git] / include / linux / spi / s3c24xx-fiq.h
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 <ben@simtec.co.uk>
6  *
7  * S3C24XX SPI - FIQ pseudo-DMA transfer support
8 */
9
10 #ifndef __LINUX_SPI_S3C24XX_FIQ_H
11 #define __LINUX_SPI_S3C24XX_FIQ_H __FILE__
12
13 /* We have R8 through R13 to play with */
14
15 #ifdef __ASSEMBLY__
16 #define __REG_NR(x)     r##x
17 #else
18
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;
22
23 #define __REG_NR(x)     (x)
24 #endif
25
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)
32
33 #endif /* __LINUX_SPI_S3C24XX_FIQ_H */