Файловый менеджер - Редактировать - /var/www/html/sh.zip
Ðазад
PK ! �Pya a cchips/hd6446x/Makefilenu �[��� # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_HD64461) += hd64461.o ccflags-y := -Werror PK ! �8�� cchips/Kconfignu �[��� # SPDX-License-Identifier: GPL-2.0 menu "Companion Chips" config HD6446X_SERIES bool choice prompt "HD6446x options" depends on HD6446X_SERIES default HD64461 config HD64461 bool "Hitachi HD64461 companion chip support" help The Hitachi HD64461 provides an interface for the SH7709 CPU, supporting a LCD controller, CRT color controller, IrDA up to 4 Mbps, and a PCMCIA controller supporting 2 slots. More information is available at <http://semiconductor.hitachi.com/windowsce/superh/sld013.htm>. Say Y if you want support for the HD64461. Otherwise, say N. endchoice # These will also be split into the Kconfig's below config HD64461_IRQ int "HD64461 IRQ" depends on HD64461 default "36" help The default setting of the HD64461 IRQ is 36. Do not change this unless you know what you are doing. config HD64461_ENABLER bool "HD64461 PCMCIA enabler" depends on HD64461 help Say Y here if you want to enable PCMCIA support via the HD64461 companion chip. Otherwise, say N. endmenu PK ! Ʋ9j� � include/mach-sh03/mach/io.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ /* * include/asm-sh/sh03/io.h * * Copyright 2004 Interface Co.,Ltd. Saito.K * * IO functions for an Interface CTP/PCI-SH03 */ #ifndef _ASM_SH_IO_SH03_H #define _ASM_SH_IO_SH03_H #include <linux/time.h> #define IRL0_IRQ 2 #define IRL0_PRIORITY 13 #define IRL1_IRQ 5 #define IRL1_PRIORITY 10 #define IRL2_IRQ 8 #define IRL2_PRIORITY 7 #define IRL3_IRQ 11 #define IRL3_PRIORITY 4 void heartbeat_sh03(void); #endif /* _ASM_SH_IO_SH03_H */ PK ! "�hM� � include/mach-sh03/mach/sh03.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_SH03_H #define __ASM_SH_SH03_H /* * linux/include/asm-sh/sh03/sh03.h * * Copyright (C) 2004 Interface Co., Ltd. Saito.K * * Interface CTP/PCI-SH03 support */ #define PA_PCI_IO (0xbe240000) /* PCI I/O space */ #define PA_PCI_MEM (0xbd000000) /* PCI MEM space */ #define PCIPAR (0xa4000cf8) /* PCI Config address */ #define PCIPDR (0xa4000cfc) /* PCI Config data */ #endif /* __ASM_SH_SH03_H */ PK ! K�%7 7 ! include/mach-dreamcast/mach/pci.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/dreamcast/pci.h * * Copyright (C) 2001, 2002 M. R. Brown * Copyright (C) 2002, 2003 Paul Mundt */ #ifndef __ASM_SH_DREAMCAST_PCI_H #define __ASM_SH_DREAMCAST_PCI_H #include <mach-dreamcast/mach/sysasic.h> #define GAPSPCI_REGS 0x01001400 #define GAPSPCI_DMA_BASE 0x01840000 #define GAPSPCI_DMA_SIZE 32768 #define GAPSPCI_BBA_CONFIG 0x01001600 #define GAPSPCI_BBA_CONFIG_SIZE 0x2000 #define GAPSPCI_IRQ HW_EVENT_EXTERNAL extern struct pci_ops gapspci_pci_ops; #endif /* __ASM_SH_DREAMCAST_PCI_H */ PK ! y�<�{ { # include/mach-dreamcast/mach/maple.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_MAPLE_H #define __ASM_MAPLE_H #define MAPLE_PORTS 4 #define MAPLE_PNP_INTERVAL HZ #define MAPLE_MAXPACKETS 8 #define MAPLE_DMA_ORDER 14 #define MAPLE_DMA_SIZE (1 << MAPLE_DMA_ORDER) #define MAPLE_DMA_PAGES ((MAPLE_DMA_ORDER > PAGE_SHIFT) ? \ MAPLE_DMA_ORDER - PAGE_SHIFT : 0) /* Maple Bus registers */ #define MAPLE_BASE 0xa05f6c00 #define MAPLE_DMAADDR (MAPLE_BASE+0x04) #define MAPLE_TRIGTYPE (MAPLE_BASE+0x10) #define MAPLE_ENABLE (MAPLE_BASE+0x14) #define MAPLE_STATE (MAPLE_BASE+0x18) #define MAPLE_SPEED (MAPLE_BASE+0x80) #define MAPLE_RESET (MAPLE_BASE+0x8c) #define MAPLE_MAGIC 0x6155404f #define MAPLE_2MBPS 0 #define MAPLE_TIMEOUT(n) ((n)<<15) /* Function codes */ #define MAPLE_FUNC_CONTROLLER 0x001 #define MAPLE_FUNC_MEMCARD 0x002 #define MAPLE_FUNC_LCD 0x004 #define MAPLE_FUNC_CLOCK 0x008 #define MAPLE_FUNC_MICROPHONE 0x010 #define MAPLE_FUNC_ARGUN 0x020 #define MAPLE_FUNC_KEYBOARD 0x040 #define MAPLE_FUNC_LIGHTGUN 0x080 #define MAPLE_FUNC_PURUPURU 0x100 #define MAPLE_FUNC_MOUSE 0x200 #endif /* __ASM_MAPLE_H */ PK ! ��� % include/mach-dreamcast/mach/sysasic.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/dreamcast/sysasic.h * * Definitions for the Dreamcast System ASIC and related peripherals. * * Copyright (c) 2001 M. R. Brown <mrbrown@linuxdc.org> * Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org> * * This file is part of the LinuxDC project (www.linuxdc.org) */ #ifndef __ASM_SH_DREAMCAST_SYSASIC_H #define __ASM_SH_DREAMCAST_SYSASIC_H #include <asm/irq.h> /* Hardware events - Each of these events correspond to a bit within the Event Mask Registers/ Event Status Registers. Because of the virtual IRQ numbering scheme, a base offset must be used when calculating the virtual IRQ that each event takes. */ #define HW_EVENT_IRQ_BASE 48 /* IRQ 13 */ #define HW_EVENT_VSYNC (HW_EVENT_IRQ_BASE + 5) /* VSync */ #define HW_EVENT_MAPLE_DMA (HW_EVENT_IRQ_BASE + 12) /* Maple DMA complete */ #define HW_EVENT_GDROM_DMA (HW_EVENT_IRQ_BASE + 14) /* GD-ROM DMA complete */ #define HW_EVENT_G2_DMA (HW_EVENT_IRQ_BASE + 15) /* G2 DMA complete */ #define HW_EVENT_PVR2_DMA (HW_EVENT_IRQ_BASE + 19) /* PVR2 DMA complete */ /* IRQ 11 */ #define HW_EVENT_GDROM_CMD (HW_EVENT_IRQ_BASE + 32) /* GD-ROM cmd. complete */ #define HW_EVENT_AICA_SYS (HW_EVENT_IRQ_BASE + 33) /* AICA-related */ #define HW_EVENT_EXTERNAL (HW_EVENT_IRQ_BASE + 35) /* Ext. (expansion) */ #define HW_EVENT_IRQ_MAX (HW_EVENT_IRQ_BASE + 95) /* arch/sh/boards/mach-dreamcast/irq.c */ extern int systemasic_irq_demux(int); extern void systemasic_irq_init(void); #endif /* __ASM_SH_DREAMCAST_SYSASIC_H */ PK ! �y�� � ! include/mach-dreamcast/mach/dma.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/dreamcast/dma.h * * Copyright (C) 2003 Paul Mundt */ #ifndef __ASM_SH_DREAMCAST_DMA_H #define __ASM_SH_DREAMCAST_DMA_H /* Number of DMA channels */ #define G2_NR_DMA_CHANNELS 4 /* Channels for cascading */ #define PVR2_CASCADE_CHAN 2 #define G2_CASCADE_CHAN 3 /* PVR2 DMA Registers */ #define PVR2_DMA_BASE 0xa05f6800 #define PVR2_DMA_ADDR (PVR2_DMA_BASE + 0) #define PVR2_DMA_COUNT (PVR2_DMA_BASE + 4) #define PVR2_DMA_MODE (PVR2_DMA_BASE + 8) #define PVR2_DMA_LMMODE0 (PVR2_DMA_BASE + 132) #define PVR2_DMA_LMMODE1 (PVR2_DMA_BASE + 136) /* G2 DMA Register */ #define G2_DMA_BASE 0xa05f7800 #endif /* __ASM_SH_DREAMCAST_DMA_H */ PK ! !_�� � include/cpu-sh2/cpu/cache.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/cpu-sh2/cache.h * * Copyright (C) 2003 Paul Mundt */ #ifndef __ASM_CPU_SH2_CACHE_H #define __ASM_CPU_SH2_CACHE_H #define L1_CACHE_SHIFT 4 #define SH_CACHE_VALID 1 #define SH_CACHE_UPDATED 2 #define SH_CACHE_COMBINED 4 #define SH_CACHE_ASSOC 8 #if defined(CONFIG_CPU_SUBTYPE_SH7619) #define SH_CCR 0xffffffec #define CCR_CACHE_CE 0x01 /* Cache enable */ #define CCR_CACHE_WT 0x02 /* CCR[bit1=1,bit2=1] */ /* 0x00000000-0x7fffffff: Write-through */ /* 0x80000000-0x9fffffff: Write-back */ /* 0xc0000000-0xdfffffff: Write-through */ #define CCR_CACHE_CB 0x04 /* CCR[bit1=0,bit2=0] */ /* 0x00000000-0x7fffffff: Write-back */ /* 0x80000000-0x9fffffff: Write-through */ /* 0xc0000000-0xdfffffff: Write-back */ #define CCR_CACHE_CF 0x08 /* Cache invalidate */ #define CACHE_OC_ADDRESS_ARRAY 0xf0000000 #define CACHE_OC_DATA_ARRAY 0xf1000000 #define CCR_CACHE_ENABLE CCR_CACHE_CE #define CCR_CACHE_INVALIDATE CCR_CACHE_CF #define CACHE_PHYSADDR_MASK 0x1ffffc00 #endif #endif /* __ASM_CPU_SH2_CACHE_H */ PK ! j� include/cpu-sh2/cpu/freq.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/cpu-sh2/freq.h * * Copyright (C) 2006 Yoshinori Sato */ #ifndef __ASM_CPU_SH2_FREQ_H #define __ASM_CPU_SH2_FREQ_H #if defined(CONFIG_CPU_SUBTYPE_SH7619) #define FREQCR 0xf815ff80 #endif #endif /* __ASM_CPU_SH2_FREQ_H */ PK ! ���_ _ include/cpu-sh2/cpu/watchdog.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/cpu-sh2/watchdog.h * * Copyright (C) 2002, 2003 Paul Mundt */ #ifndef __ASM_CPU_SH2_WATCHDOG_H #define __ASM_CPU_SH2_WATCHDOG_H /* * More SH-2 brilliance .. its not good enough that we can't read * and write the same sizes to WTCNT, now we have to read and write * with different sizes at different addresses for WTCNT _and_ RSTCSR. * * At least on the bright side no one has managed to screw over WTCSR * in this fashion .. yet. */ /* Register definitions */ #define WTCNT 0xfffffe80 #define WTCSR 0xfffffe80 #define RSTCSR 0xfffffe82 #define WTCNT_R (WTCNT + 1) #define RSTCSR_R (RSTCSR + 1) /* Bit definitions */ #define WTCSR_IOVF 0x80 #define WTCSR_WT 0x40 #define WTCSR_TME 0x20 #define WTCSR_RSTS 0x00 #define RSTCSR_RSTS 0x20 /** * sh_wdt_read_rstcsr - Read from Reset Control/Status Register * * Reads back the RSTCSR value. */ static inline __u8 sh_wdt_read_rstcsr(void) { /* * Same read/write brain-damage as for WTCNT here.. */ return __raw_readb(RSTCSR_R); } /** * sh_wdt_write_csr - Write to Reset Control/Status Register * * @val: Value to write * * Writes the given value @val to the lower byte of the control/status * register. The upper byte is set manually on each write. */ static inline void sh_wdt_write_rstcsr(__u8 val) { /* * Note: Due to the brain-damaged nature of this register, * we can't presently touch the WOVF bit, since the upper byte * has to be swapped for this. So just leave it alone.. */ __raw_writeb((WTCNT_HIGH << 8) | (__u16)val, RSTCSR); } #endif /* __ASM_CPU_SH2_WATCHDOG_H */ PK ! eY�p p include/cpu-common/cpu/pfc.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * SH Pin Function Control Initialization * * Copyright (C) 2012 Renesas Solutions Corp. */ #ifndef __ARCH_SH_CPU_PFC_H__ #define __ARCH_SH_CPU_PFC_H__ #include <linux/types.h> struct resource; int sh_pfc_register(const char *name, struct resource *resource, u32 num_resources); #endif /* __ARCH_SH_CPU_PFC_H__ */ PK ! �;J� � $ include/cpu-common/cpu/mmu_context.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 * * include/asm-sh/cpu-sh2/mmu_context.h * * Copyright (C) 2003 Paul Mundt */ #ifndef __ASM_CPU_SH2_MMU_CONTEXT_H #define __ASM_CPU_SH2_MMU_CONTEXT_H /* No MMU */ #endif /* __ASM_CPU_SH2_MMU_CONTEXT_H */ PK ! t�:� � # include/cpu-common/cpu/sigcontext.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CPU_SH2_SIGCONTEXT_H #define __ASM_CPU_SH2_SIGCONTEXT_H struct sigcontext { unsigned long oldmask; /* CPU registers */ unsigned long sc_regs[16]; unsigned long sc_pc; unsigned long sc_pr; unsigned long sc_sr; unsigned long sc_gbr; unsigned long sc_mach; unsigned long sc_macl; }; #endif /* __ASM_CPU_SH2_SIGCONTEXT_H */ PK ! 4�D{� � include/cpu-common/cpu/rtc.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_CPU_SH2_RTC_H #define __ASM_SH_CPU_SH2_RTC_H #define rtc_reg_size sizeof(u16) #define RTC_BIT_INVERTED 0 #define RTC_DEF_CAPABILITIES 0UL #endif /* __ASM_SH_CPU_SH2_RTC_H */ PK ! �m�� � include/cpu-common/cpu/timer.hnu �[��� /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_CPU_SH2_TIMER_H #define __ASM_CPU_SH2_TIMER_H /* Nothing needed yet */ #endif /* __ASM_CPU_SH2_TIMER_H */ PK ! 6,�w w "