···11+/*22+ * include/asm-sh/edosk7705/io.h33+ *44+ * Modified version of io_se.h for the EDOSK7705 specific functions.55+ *66+ * May be copied or modified under the terms of the GNU General Public77+ * License. See linux/COPYING for more information.88+ *99+ * IO functions for an Hitachi EDOSK7705 development board1010+ */1111+1212+#ifndef __ASM_SH_EDOSK7705_IO_H1313+#define __ASM_SH_EDOSK7705_IO_H1414+1515+#include <asm/io_generic.h>1616+1717+extern unsigned char sh_edosk7705_inb(unsigned long port);1818+extern unsigned int sh_edosk7705_inl(unsigned long port);1919+2020+extern void sh_edosk7705_outb(unsigned char value, unsigned long port);2121+extern void sh_edosk7705_outl(unsigned int value, unsigned long port);2222+2323+extern void sh_edosk7705_insb(unsigned long port, void *addr, unsigned long count);2424+extern void sh_edosk7705_insl(unsigned long port, void *addr, unsigned long count);2525+extern void sh_edosk7705_outsb(unsigned long port, const void *addr, unsigned long count);2626+extern void sh_edosk7705_outsl(unsigned long port, const void *addr, unsigned long count);2727+2828+extern unsigned long sh_edosk7705_isa_port2addr(unsigned long offset);2929+3030+#endif /* __ASM_SH_EDOSK7705_IO_H */
+80
include/asm-sh/hp6xx.h
···11+#ifndef __ASM_SH_HP6XX_H22+#define __ASM_SH_HP6XX_H33+44+/*55+ * Copyright (C) 2003, 2004, 2005 Andriy Skulysh66+ *77+ * This file is subject to the terms and conditions of the GNU General Public88+ * License. See the file "COPYING" in the main directory of this archive99+ * for more details.1010+ *1111+ */1212+1313+#define HP680_BTN_IRQ IRQ0_IRQ1414+#define HP680_TS_IRQ IRQ3_IRQ1515+#define HP680_HD64461_IRQ IRQ4_IRQ1616+1717+#define DAC_LCD_BRIGHTNESS 01818+#define DAC_SPEAKER_VOLUME 11919+2020+#define PGDR_OPENED 0x012121+#define PGDR_MAIN_BATTERY_OUT 0x042222+#define PGDR_PLAY_BUTTON 0x082323+#define PGDR_REWIND_BUTTON 0x102424+#define PGDR_RECORD_BUTTON 0x202525+2626+#define PHDR_TS_PEN_DOWN 0x082727+2828+#define PJDR_LED_BLINK 0x022929+3030+#define PKDR_LED_GREEN 0x103131+3232+#define SCPDR_TS_SCAN_ENABLE 0x203333+#define SCPDR_TS_SCAN_Y 0x023434+#define SCPDR_TS_SCAN_X 0x013535+3636+#define SCPCR_TS_ENABLE 0x4053737+#define SCPCR_TS_MASK 0xc0f3838+3939+#define ADC_CHANNEL_TS_Y 14040+#define ADC_CHANNEL_TS_X 24141+#define ADC_CHANNEL_BATTERY 34242+#define ADC_CHANNEL_BACKUP 44343+#define ADC_CHANNEL_CHARGE 54444+4545+#define HD64461_GPADR_SPEAKER 0x014646+#define HD64461_GPADR_PCMCIA0 (0x02|0x08)4747+4848+#define HD64461_GPBDR_LCDOFF 0x014949+#define HD64461_GPBDR_LCD_CONTRAST_MASK 0x785050+#define HD64461_GPBDR_LED_RED 0x805151+5252+#include <asm/hd64461.h>5353+#include <asm/io.h>5454+5555+#define PJDR 0xa40001305656+#define PKDR 0xa40001325757+5858+static inline void hp6xx_led_red(int on)5959+{6060+ u16 v16;6161+ v16 = ctrl_inw(CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);6262+ if (on)6363+ ctrl_outw(v16 & (~HD64461_GPBDR_LED_RED), CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);6464+ else6565+ ctrl_outw(v16 | HD64461_GPBDR_LED_RED, CONFIG_HD64461_IOBASE + HD64461_GPBDR - 0x10000);6666+}6767+6868+static inline void hp6xx_led_green(int on)6969+{7070+ u8 v8;7171+7272+ v8 = ctrl_inb(PKDR);7373+ if (on)7474+ ctrl_outb(v8 & (~PKDR_LED_GREEN), PKDR);7575+ else7676+ ctrl_outb(v8 | PKDR_LED_GREEN, PKDR);7777+}7878+7979+8080+#endif /* __ASM_SH_HP6XX_H */
+54
include/asm-sh/hs7751rvoip.h
···11+#ifndef __ASM_SH_RENESAS_HS7751RVOIP_H22+#define __ASM_SH_RENESAS_HS7751RVOIP_H33+44+/*55+ * linux/include/asm-sh/hs7751rvoip/hs7751rvoip.h66+ *77+ * Copyright (C) 2000 Atom Create Engineering Co., Ltd.88+ *99+ * Renesas Technology Sales HS7751RVoIP support1010+ */1111+1212+/* Box specific addresses. */1313+1414+#define PA_BCR 0xa4000000 /* FPGA */1515+#define PA_SLICCNTR1 0xa4000006 /* SLIC PIO Control 1 */1616+#define PA_SLICCNTR2 0xa4000008 /* SLIC PIO Control 2 */1717+#define PA_DMACNTR 0xa400000a /* USB DMA Control */1818+#define PA_INPORTR 0xa400000c /* Input Port Register */1919+#define PA_OUTPORTR 0xa400000e /* Output Port Reguster */2020+#define PA_VERREG 0xa4000014 /* FPGA Version Register */2121+2222+#define PA_IDE_OFFSET 0x1f0 /* CF IDE Offset */2323+2424+#define IRLCNTR1 (PA_BCR + 0) /* Interrupt Control Register1 */2525+#define IRLCNTR2 (PA_BCR + 2) /* Interrupt Control Register2 */2626+#define IRLCNTR3 (PA_BCR + 4) /* Interrupt Control Register3 */2727+#define IRLCNTR4 (PA_BCR + 16) /* Interrupt Control Register4 */2828+#define IRLCNTR5 (PA_BCR + 18) /* Interrupt Control Register5 */2929+3030+#define IRQ_PCIETH 6 /* PCI Ethernet IRQ */3131+#define IRQ_PCIHUB 7 /* PCI Ethernet Hub IRQ */3232+#define IRQ_USBCOM 8 /* USB Comunication IRQ */3333+#define IRQ_USBCON 9 /* USB Connect IRQ */3434+#define IRQ_USBDMA 10 /* USB DMA IRQ */3535+#define IRQ_CFCARD 11 /* CF Card IRQ */3636+#define IRQ_PCMCIA 12 /* PCMCIA IRQ */3737+#define IRQ_PCISLOT 13 /* PCI Slot #1 IRQ */3838+#define IRQ_ONHOOK1 0 /* ON HOOK1 IRQ */3939+#define IRQ_OFFHOOK1 1 /* OFF HOOK1 IRQ */4040+#define IRQ_ONHOOK2 2 /* ON HOOK2 IRQ */4141+#define IRQ_OFFHOOK2 3 /* OFF HOOK2 IRQ */4242+#define IRQ_RINGING 4 /* Ringing IRQ */4343+#define IRQ_CODEC 5 /* CODEC IRQ */4444+4545+#define __IO_PREFIX hs7751rvoip4646+#include <asm/io_generic.h>4747+4848+/* arch/sh/boards/renesas/hs7751rvoip/irq.c */4949+void init_hs7751rvoip_IRQ(void);5050+5151+/* arch/sh/boards/renesas/hs7751rvoip/io.c */5252+void *hs7751rvoip_ioremap(unsigned long, unsigned long);5353+5454+#endif /* __ASM_SH_RENESAS_HS7751RVOIP */
+173
include/asm-sh/r7780rp.h
···11+#ifndef __ASM_SH_RENESAS_R7780RP_H22+#define __ASM_SH_RENESAS_R7780RP_H33+44+/*55+ * linux/include/asm-sh/r7780rp.h66+ *77+ * Copyright (C) 2000 Atom Create Engineering Co., Ltd.88+ *99+ * Renesas Solutions Highlander R7780RP support1010+ */1111+1212+/* Box specific addresses. */1313+#if defined(CONFIG_SH_R7780MP)1414+#define PA_BCR 0xa4000000 /* FPGA */1515+#define PA_IRLMSK (PA_BCR+0x0000) /* Interrupt Mask control */1616+#define PA_IRLMON (PA_BCR+0x0002) /* Interrupt Status control */1717+#define PA_IRLPRI1 (PA_BCR+0x0004) /* Interrupt Priorty 1 */1818+#define PA_IRLPRI2 (PA_BCR+0x0006) /* Interrupt Priorty 2 */1919+#define PA_IRLPRI3 (PA_BCR+0x0008) /* Interrupt Priorty 3 */2020+#define PA_IRLPRI4 (PA_BCR+0x000a) /* Interrupt Priorty 4 */2121+#define PA_RSTCTL (PA_BCR+0x000c) /* Reset Control */2222+#define PA_PCIBD (PA_BCR+0x000e) /* PCI Board detect control */2323+#define PA_PCICD (PA_BCR+0x0010) /* PCI Conector detect control */2424+#define PA_EXTGIO (PA_BCR+0x0016) /* Extension GPIO Control */2525+#define PA_IVDRMON (PA_BCR+0x0018) /* iVDR Moniter control */2626+#define PA_IVDRCTL (PA_BCR+0x001a) /* iVDR control */2727+#define PA_OBLED (PA_BCR+0x001c) /* On Board LED control */2828+#define PA_OBSW (PA_BCR+0x001e) /* On Board Switch control */2929+#define PA_AUDIOSEL (PA_BCR+0x0020) /* Sound Interface Select control */3030+#define PA_EXTPLR (PA_BCR+0x001e) /* Extention Pin Polarity control */3131+#define PA_TPCTL (PA_BCR+0x0100) /* Touch Panel Access control */3232+#define PA_TPDCKCTL (PA_BCR+0x0102) /* Touch Panel Access data control */3333+#define PA_TPCTLCLR (PA_BCR+0x0104) /* Touch Panel Access control */3434+#define PA_TPXPOS (PA_BCR+0x0106) /* Touch Panel X position control */3535+#define PA_TPYPOS (PA_BCR+0x0108) /* Touch Panel Y position control */3636+#define PA_DBSW (PA_BCR+0x0200) /* Debug Board Switch control */3737+#define PA_CFCTL (PA_BCR+0x0300) /* CF Timing control */3838+#define PA_CFPOW (PA_BCR+0x0302) /* CF Power control */3939+#define PA_CFCDINTCLR (PA_BCR+0x0304) /* CF Insert Interrupt clear */4040+#define PA_SCSMR0 (PA_BCR+0x0400) /* SCIF0 Serial mode control */4141+#define PA_SCBRR0 (PA_BCR+0x0404) /* SCIF0 Bit rate control */4242+#define PA_SCSCR0 (PA_BCR+0x0408) /* SCIF0 Serial control */4343+#define PA_SCFTDR0 (PA_BCR+0x040c) /* SCIF0 Send FIFO control */4444+#define PA_SCFSR0 (PA_BCR+0x0410) /* SCIF0 Serial status control */4545+#define PA_SCFRDR0 (PA_BCR+0x0414) /* SCIF0 Receive FIFO control */4646+#define PA_SCFCR0 (PA_BCR+0x0418) /* SCIF0 FIFO control */4747+#define PA_SCTFDR0 (PA_BCR+0x041c) /* SCIF0 Send FIFO data control */4848+#define PA_SCRFDR0 (PA_BCR+0x0420) /* SCIF0 Receive FIFO data control */4949+#define PA_SCSPTR0 (PA_BCR+0x0424) /* SCIF0 Serial Port control */5050+#define PA_SCLSR0 (PA_BCR+0x0428) /* SCIF0 Line Status control */5151+#define PA_SCRER0 (PA_BCR+0x042c) /* SCIF0 Serial Error control */5252+#define PA_SCSMR1 (PA_BCR+0x0500) /* SCIF1 Serial mode control */5353+#define PA_SCBRR1 (PA_BCR+0x0504) /* SCIF1 Bit rate control */5454+#define PA_SCSCR1 (PA_BCR+0x0508) /* SCIF1 Serial control */5555+#define PA_SCFTDR1 (PA_BCR+0x050c) /* SCIF1 Send FIFO control */5656+#define PA_SCFSR1 (PA_BCR+0x0510) /* SCIF1 Serial status control */5757+#define PA_SCFRDR1 (PA_BCR+0x0514) /* SCIF1 Receive FIFO control */5858+#define PA_SCFCR1 (PA_BCR+0x0518) /* SCIF1 FIFO control */5959+#define PA_SCTFDR1 (PA_BCR+0x051c) /* SCIF1 Send FIFO data control */6060+#define PA_SCRFDR1 (PA_BCR+0x0520) /* SCIF1 Receive FIFO data control */6161+#define PA_SCSPTR1 (PA_BCR+0x0524) /* SCIF1 Serial Port control */6262+#define PA_SCLSR1 (PA_BCR+0x0528) /* SCIF1 Line Status control */6363+#define PA_SCRER1 (PA_BCR+0x052c) /* SCIF1 Serial Error control */6464+#define PA_ICCR (PA_BCR+0x0600) /* Serial control */6565+#define PA_SAR (PA_BCR+0x0602) /* Serial Slave control */6666+#define PA_MDR (PA_BCR+0x0604) /* Serial Mode control */6767+#define PA_ADR1 (PA_BCR+0x0606) /* Serial Address1 control */6868+#define PA_DAR1 (PA_BCR+0x0646) /* Serial Data1 control */6969+#define PA_VERREG (PA_BCR+0x0700) /* FPGA Version Register */7070+#define PA_POFF (PA_BCR+0x0800) /* System Power Off control */7171+#define PA_PMR (PA_BCR+0x0900) /* */7272+7373+#define PA_AX88796L 0xa4100400 /* AX88796L Area */7474+#define PA_SC1602BSLB 0xa6000000 /* SC1602BSLB Area */7575+#define PA_IDE_OFFSET 0x1f0 /* CF IDE Offset */7676+#define AX88796L_IO_BASE 0x1000 /* AX88796L IO Base Address */7777+7878+#define IRLCNTR1 (PA_BCR + 0) /* Interrupt Control Register1 */7979+8080+#define IRQ_PCISLOT1 65 /* PCI Slot #1 IRQ */8181+#define IRQ_PCISLOT2 66 /* PCI Slot #2 IRQ */8282+#define IRQ_PCISLOT3 67 /* PCI Slot #3 IRQ */8383+#define IRQ_PCISLOT4 68 /* PCI Slot #4 IRQ */8484+#define IRQ_CFCARD 1 /* CF Card IRQ */8585+// #define IRQ_CFINST 0 /* CF Card Insert IRQ */8686+#define IRQ_TP 2 /* Touch Panel IRQ */8787+#define IRQ_SCI1 3 /* SCI1 IRQ */8888+#define IRQ_SCI0 4 /* SCI0 IRQ */8989+#define IRQ_2SERIAL 5 /* Serial IRQ */9090+#define IRQ_RTC 6 /* RTC A / B IRQ */9191+#define IRQ_EXTENTION6 7 /* EXT6n IRQ */9292+#define IRQ_EXTENTION5 8 /* EXT5n IRQ */9393+#define IRQ_EXTENTION4 9 /* EXT4n IRQ */9494+#define IRQ_EXTENTION2 10 /* EXT2n IRQ */9595+#define IRQ_EXTENTION1 11 /* EXT1n IRQ */9696+#define IRQ_ONETH 13 /* On board Ethernet IRQ */9797+#define IRQ_PSW 14 /* Push Switch IRQ */9898+9999+#else /* R7780RP */100100+101101+#define PA_BCR 0xa5000000 /* FPGA */102102+#define PA_IRLMSK (PA_BCR+0x0000) /* Interrupt Mask control */103103+#define PA_IRLMON (PA_BCR+0x0002) /* Interrupt Status control */104104+#define PA_SDPOW (PA_BCR+0x0004) /* SD Power control */105105+#define PA_RSTCTL (PA_BCR+0x0006) /* Device Reset control */106106+#define PA_PCIBD (PA_BCR+0x0008) /* PCI Board detect control */107107+#define PA_PCICD (PA_BCR+0x000a) /* PCI Conector detect control */108108+#define PA_ZIGIO1 (PA_BCR+0x000c) /* Zigbee IO control 1 */109109+#define PA_ZIGIO2 (PA_BCR+0x000e) /* Zigbee IO control 2 */110110+#define PA_ZIGIO3 (PA_BCR+0x0010) /* Zigbee IO control 3 */111111+#define PA_ZIGIO4 (PA_BCR+0x0012) /* Zigbee IO control 4 */112112+#define PA_IVDRMON (PA_BCR+0x0014) /* iVDR Moniter control */113113+#define PA_IVDRCTL (PA_BCR+0x0016) /* iVDR control */114114+#define PA_OBLED (PA_BCR+0x0018) /* On Board LED control */115115+#define PA_OBSW (PA_BCR+0x001a) /* On Board Switch control */116116+#define PA_AUDIOSEL (PA_BCR+0x001c) /* Sound Interface Select control */117117+#define PA_EXTPLR (PA_BCR+0x001e) /* Extention Pin Polarity control */118118+#define PA_TPCTL (PA_BCR+0x0100) /* Touch Panel Access control */119119+#define PA_TPDCKCTL (PA_BCR+0x0102) /* Touch Panel Access data control */120120+#define PA_TPCTLCLR (PA_BCR+0x0104) /* Touch Panel Access control */121121+#define PA_TPXPOS (PA_BCR+0x0106) /* Touch Panel X position control */122122+#define PA_TPYPOS (PA_BCR+0x0108) /* Touch Panel Y position control */123123+#define PA_DBDET (PA_BCR+0x0200) /* Debug Board detect control */124124+#define PA_DBDISPCTL (PA_BCR+0x0202) /* Debug Board Dot timing control */125125+#define PA_DBSW (PA_BCR+0x0204) /* Debug Board Switch control */126126+#define PA_CFCTL (PA_BCR+0x0300) /* CF Timing control */127127+#define PA_CFPOW (PA_BCR+0x0302) /* CF Power control */128128+#define PA_CFCDINTCLR (PA_BCR+0x0304) /* CF Insert Interrupt clear */129129+#define PA_SCSMR (PA_BCR+0x0400) /* SCIF Serial mode control */130130+#define PA_SCBRR (PA_BCR+0x0402) /* SCIF Bit rate control */131131+#define PA_SCSCR (PA_BCR+0x0404) /* SCIF Serial control */132132+#define PA_SCFDTR (PA_BCR+0x0406) /* SCIF Send FIFO control */133133+#define PA_SCFSR (PA_BCR+0x0408) /* SCIF Serial status control */134134+#define PA_SCFRDR (PA_BCR+0x040a) /* SCIF Receive FIFO control */135135+#define PA_SCFCR (PA_BCR+0x040c) /* SCIF FIFO control */136136+#define PA_SCFDR (PA_BCR+0x040e) /* SCIF FIFO data control */137137+#define PA_SCLSR (PA_BCR+0x0412) /* SCIF Line Status control */138138+#define PA_ICCR (PA_BCR+0x0500) /* Serial control */139139+#define PA_SAR (PA_BCR+0x0502) /* Serial Slave control */140140+#define PA_MDR (PA_BCR+0x0504) /* Serial Mode control */141141+#define PA_ADR1 (PA_BCR+0x0506) /* Serial Address1 control */142142+#define PA_DAR1 (PA_BCR+0x0546) /* Serial Data1 control */143143+#define PA_VERREG (PA_BCR+0x0600) /* FPGA Version Register */144144+145145+#define PA_AX88796L 0xa5800400 /* AX88796L Area */146146+#define PA_SC1602BSLB 0xa6000000 /* SC1602BSLB Area */147147+#define PA_IDE_OFFSET 0x1f0 /* CF IDE Offset */148148+#define AX88796L_IO_BASE 0x1000 /* AX88796L IO Base Address */149149+150150+#define IRLCNTR1 (PA_BCR + 0) /* Interrupt Control Register1 */151151+152152+#define IRQ_PCISLOT1 0 /* PCI Slot #1 IRQ */153153+#define IRQ_PCISLOT2 1 /* PCI Slot #2 IRQ */154154+#define IRQ_PCISLOT3 2 /* PCI Slot #3 IRQ */155155+#define IRQ_PCISLOT4 3 /* PCI Slot #4 IRQ */156156+#define IRQ_CFCARD 4 /* CF Card IRQ */157157+#define IRQ_CFINST 5 /* CF Card Insert IRQ */158158+#define IRQ_M66596 6 /* M66596 IRQ */159159+#define IRQ_SDCARD 7 /* SD Card IRQ */160160+#define IRQ_TUCHPANEL 8 /* Touch Panel IRQ */161161+#define IRQ_SCI 9 /* SCI IRQ */162162+#define IRQ_2SERIAL 10 /* Serial IRQ */163163+#define IRQ_EXTENTION 11 /* EXTn IRQ */164164+#define IRQ_ONETH 12 /* On board Ethernet IRQ */165165+#define IRQ_PSW 13 /* Push Switch IRQ */166166+#define IRQ_ZIGBEE 14 /* Ziggbee IO IRQ */167167+168168+#endif /* CONFIG_SH_R7780MP */169169+170170+#define __IO_PREFIX r7780rp171171+#include <asm/io_generic.h>172172+173173+#endif /* __ASM_SH_RENESAS_R7780RP */