Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* linux/drivers/spi/spi_s3c24xx_fiq.h
0003  *
0004  * Copyright 2009 Simtec Electronics
0005  *  Ben Dooks <ben@simtec.co.uk>
0006  *
0007  * S3C24XX SPI - FIQ pseudo-DMA transfer support
0008 */
0009 
0010 #ifndef __LINUX_SPI_S3C24XX_FIQ_H
0011 #define __LINUX_SPI_S3C24XX_FIQ_H __FILE__
0012 
0013 /* We have R8 through R13 to play with */
0014 
0015 #ifdef __ASSEMBLY__
0016 #define __REG_NR(x)     r##x
0017 #else
0018 
0019 extern struct spi_fiq_code s3c24xx_spi_fiq_txrx;
0020 extern struct spi_fiq_code s3c24xx_spi_fiq_tx;
0021 extern struct spi_fiq_code s3c24xx_spi_fiq_rx;
0022 
0023 #define __REG_NR(x)     (x)
0024 #endif
0025 
0026 #define fiq_rspi    __REG_NR(8)
0027 #define fiq_rtmp    __REG_NR(9)
0028 #define fiq_rrx     __REG_NR(10)
0029 #define fiq_rtx     __REG_NR(11)
0030 #define fiq_rcount  __REG_NR(12)
0031 #define fiq_rirq    __REG_NR(13)
0032 
0033 #endif /* __LINUX_SPI_S3C24XX_FIQ_H */