mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Arnd Bergmann](/assets/img/avatar_default.png)
The fiq handler needs access to some register definitions that should not be used directly by device drivers. Since this is closely related to the irqchip driver anyway, move it into the same place. Signed-off-by: Arnd Bergmann <arnd@arndb.de> [krzk: Add a header guard in include/linux/spi/s3c24xx-fiq.h, fix SPDX comment style, update maintainer's entry] Co-developed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200806182059.2431-23-krzk%40kernel.org Acked-by: Mark Brown <broonie@kernel.org>
33 lines
788 B
C
33 lines
788 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* linux/drivers/spi/spi_s3c24xx_fiq.h
|
|
*
|
|
* Copyright 2009 Simtec Electronics
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
*
|
|
* S3C24XX SPI - FIQ pseudo-DMA transfer support
|
|
*/
|
|
|
|
#ifndef __LINUX_SPI_S3C24XX_FIQ_H
|
|
#define __LINUX_SPI_S3C24XX_FIQ_H __FILE__
|
|
|
|
/* We have R8 through R13 to play with */
|
|
|
|
#ifdef __ASSEMBLY__
|
|
#define __REG_NR(x) r##x
|
|
#else
|
|
|
|
extern struct spi_fiq_code s3c24xx_spi_fiq_txrx;
|
|
extern struct spi_fiq_code s3c24xx_spi_fiq_tx;
|
|
extern struct spi_fiq_code s3c24xx_spi_fiq_rx;
|
|
|
|
#define __REG_NR(x) (x)
|
|
#endif
|
|
|
|
#define fiq_rspi __REG_NR(8)
|
|
#define fiq_rtmp __REG_NR(9)
|
|
#define fiq_rrx __REG_NR(10)
|
|
#define fiq_rtx __REG_NR(11)
|
|
#define fiq_rcount __REG_NR(12)
|
|
#define fiq_rirq __REG_NR(13)
|
|
|
|
#endif /* __LINUX_SPI_S3C24XX_FIQ_H */
|