~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/include/asm/hardware/scoop.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  *  Definitions for the SCOOP interface found on various Sharp PDAs
  4  *
  5  *  Copyright (c) 2004 Richard Purdie
  6  */
  7 
  8 #define SCOOP_MCR  0x00
  9 #define SCOOP_CDR  0x04
 10 #define SCOOP_CSR  0x08
 11 #define SCOOP_CPR  0x0C
 12 #define SCOOP_CCR  0x10
 13 #define SCOOP_IRR  0x14
 14 #define SCOOP_IRM  0x14
 15 #define SCOOP_IMR  0x18
 16 #define SCOOP_ISR  0x1C
 17 #define SCOOP_GPCR 0x20
 18 #define SCOOP_GPWR 0x24
 19 #define SCOOP_GPRR 0x28
 20 
 21 #define SCOOP_CPR_OUT   (1 << 7)
 22 #define SCOOP_CPR_SD_3V (1 << 2)
 23 #define SCOOP_CPR_CF_XV (1 << 1)
 24 #define SCOOP_CPR_CF_3V (1 << 0)
 25 
 26 #define SCOOP_GPCR_PA22 (1 << 12)
 27 #define SCOOP_GPCR_PA21 (1 << 11)
 28 #define SCOOP_GPCR_PA20 (1 << 10)
 29 #define SCOOP_GPCR_PA19 (1 << 9)
 30 #define SCOOP_GPCR_PA18 (1 << 8)
 31 #define SCOOP_GPCR_PA17 (1 << 7)
 32 #define SCOOP_GPCR_PA16 (1 << 6)
 33 #define SCOOP_GPCR_PA15 (1 << 5)
 34 #define SCOOP_GPCR_PA14 (1 << 4)
 35 #define SCOOP_GPCR_PA13 (1 << 3)
 36 #define SCOOP_GPCR_PA12 (1 << 2)
 37 #define SCOOP_GPCR_PA11 (1 << 1)
 38 
 39 struct scoop_config {
 40         unsigned short io_out;
 41         unsigned short io_dir;
 42         unsigned short suspend_clr;
 43         unsigned short suspend_set;
 44         int gpio_base;
 45 };
 46 
 47 /* Structure for linking scoop devices to PCMCIA sockets */
 48 struct scoop_pcmcia_dev {
 49         struct device *dev;     /* Pointer to this socket's scoop device */
 50         int     irq;                /* irq for socket */
 51         int cd_irq;
 52         const char *cd_irq_str;
 53         unsigned char keep_vs;
 54         unsigned char keep_rd;
 55 };
 56 
 57 struct scoop_pcmcia_config {
 58         struct scoop_pcmcia_dev *devs;
 59         int num_devs;
 60         void (*power_ctrl)(struct device *scoop, unsigned short cpr, int nr);
 61 };
 62 
 63 extern struct scoop_pcmcia_config *platform_scoop_config;
 64 
 65 void reset_scoop(struct device *dev);
 66 unsigned short read_scoop_reg(struct device *dev, unsigned short reg);
 67 void write_scoop_reg(struct device *dev, unsigned short reg, unsigned short data);
 68 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php