data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
/* 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 - P...
arch/sh/include/mach-dreamcast/mach/maple.h
null
null
null
null
null
source
linux
/* 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_D...
arch/sh/include/mach-dreamcast/mach/pci.h
null
null
null
null
null
source
linux
/* 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> * */ #ifndef __ASM_SH_DREAMCAST_SYSASIC_H #define __AS...
arch/sh/include/mach-dreamcast/mach/sysasic.h
null
null
null
null
null
source
linux
LIST "SPDX-License-Identifier: GPL-2.0" LIST "partner-jet-setup.txt" LIST "(C) Copyright 2009 Renesas Solutions Corp" LIST "Kuninori Morimoto <morimoto.kuninori@renesas.com>" LIST "--------------------------------" LIST "zImage (RAM boot)" LIST "This script can be used to boot the kernel from RAM via JTAG:" LIST "> < p...
arch/sh/include/mach-ecovec24/mach/partner-jet-setup.txt
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifdef __ASSEMBLER__ /* EcoVec board specific boot code: * converts the "partner-jet-script.txt" script into assembly * the assembly code is the first code to be executed in the romImage */ #include <asm/romimage-macros.h> #include <mach/partner-jet-setup.txt> /* execute ic...
arch/sh/include/mach-ecovec24/mach/romimage.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_KFR2R09_H #define __ASM_SH_KFR2R09_H #include <video/sh_mobile_lcdc.h> #if defined(CONFIG_FB_SH_MOBILE_LCDC) || defined(CONFIG_FB_SH_MOBILE_LCDC_MODULE) int kfr2r09_lcd_setup(void *sys_ops_handle, struct sh_mobile_lcdc_sys_bus_ops *sys_ops); void kfr2r09...
arch/sh/include/mach-kfr2r09/mach/kfr2r09.h
null
null
null
null
null
source
linux
LIST "SPDX-License-Identifier: GPL-2.0" LIST "partner-jet-setup.txt - 20090729 Magnus Damm" LIST "set up enough of the kfr2r09 hardware to boot the kernel" LIST "zImage (RAM boot)" LIST "This script can be used to boot the kernel from RAM via JTAG:" LIST "> < partner-jet-setup.txt" LIST "> RD zImage, 0xa8800000" LIST ...
arch/sh/include/mach-kfr2r09/mach/partner-jet-setup.txt
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifdef __ASSEMBLER__ /* kfr2r09 board specific boot code: * converts the "partner-jet-script.txt" script into assembly * the assembly code is the first code to be executed in the romImage */ #include <asm/romimage-macros.h> #include <mach/partner-jet-setup.txt> /* execute i...
arch/sh/include/mach-kfr2r09/mach/romimage.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_LANDISK_GIO_H #define __ASM_SH_LANDISK_GIO_H #include <linux/ioctl.h> /* version */ #define VERSION_STR "1.00" /* Driver name */ #define GIO_DRIVER_NAME "/dev/giodrv" /* Use 'k' as magic number */ #define GIODRV_IOC_MAGIC 'k' #define GIODRV_IOCRESET _IO(...
arch/sh/include/mach-landisk/mach/gio.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_IODATA_LANDISK_H #define __ASM_SH_IODATA_LANDISK_H /* * arch/sh/include/mach-landisk/mach/iodata_landisk.h * * Copyright (C) 2000 Atom Create Engineering Co., Ltd. * * IO-DATA LANDISK support */ #include <linux/sh_intc.h> /* Box specific addresses. */ #...
arch/sh/include/mach-landisk/mach/iodata_landisk.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_MIGOR_H #define __ASM_SH_MIGOR_H #define PORT_MSELCRA 0xa4050180 #define PORT_MSELCRB 0xa4050182 #define BSC_CS4BCR 0xfec10010 #define BSC_CS6ABCR 0xfec1001c #define BSC_CS4WCR 0xfec10030 #include <video/sh_mobile_lcdc.h> int migor_lcd_qvga_setup(void *sys_ops_...
arch/sh/include/mach-migor/mach/migor.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __MACH_SDK7786_FPGA_H #define __MACH_SDK7786_FPGA_H #include <linux/io.h> #include <linux/types.h> #include <linux/bitops.h> #define SRSTR 0x000 #define SRSTR_MAGIC 0x1971 /* Fixed magical read value */ #define INTASR 0x010 #define INTAMR 0x020 #define MODSWR 0x030...
arch/sh/include/mach-sdk7786/mach/fpga.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __MACH_SDK7786_IRQ_H #define __MACH_SDK7786_IRQ_H /* arch/sh/boards/mach-sdk7786/irq.c */ extern void sdk7786_init_irq(void); #endif /* __MACH_SDK7786_IRQ_H */
arch/sh/include/mach-sdk7786/mach/irq.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __MACH_SE_MRSHPC_H #define __MACH_SE_MRSHPC_H #include <linux/io.h> static inline void __init mrshpc_setup_windows(void) { if ((__raw_readw(MRSHPC_CSR) & 0x000c) != 0) return; /* Not detected */ if ((__raw_readw(MRSHPC_CSR) & 0x0080) == 0) { __raw_writew(0x0674, M...
arch/sh/include/mach-se/mach/mrshpc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_HITACHI_SE_H #define __ASM_SH_HITACHI_SE_H /* * linux/include/asm-sh/hitachi_se.h * * Copyright (C) 2000 Kazumoto Kojima * * Hitachi SolutionEngine support */ #include <linux/sh_intc.h> /* Box specific addresses. */ #define PA_ROM 0x00000000 /* EPROM *...
arch/sh/include/mach-se/mach/se.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_SE7206_H #define __ASM_SH_SE7206_H #define PA_SMSC 0x30000000 #define PA_MRSHPC 0x34000000 #define PA_LED 0x31400000 void init_se7206_IRQ(void); #define __IO_PREFIX se7206 #include <asm/io_generic.h> #endif /* __ASM_SH_SE7206_H */
arch/sh/include/mach-se/mach/se7206.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_HITACHI_SE7343_H #define __ASM_SH_HITACHI_SE7343_H /* * include/asm-sh/se/se7343.h * * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp> * * SH-Mobile SolutionEngine 7343 support */ #include <linux/sh_intc.h> /* Box specific addresses. *...
arch/sh/include/mach-se/mach/se7343.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 2008 Renesas Solutions Corp. * * Hitachi UL SolutionEngine 7721 Support. */ #ifndef __ASM_SH_SE7721_H #define __ASM_SH_SE7721_H #include <linux/sh_intc.h> #include <asm/addrspace.h> /* Box specific addresses. */ #define SE_AREA0_WIDTH 2 /* Area0: 32bit */ #...
arch/sh/include/mach-se/mach/se7721.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_SE7722_H #define __ASM_SH_SE7722_H /* * linux/include/asm-sh/se7722.h * * Copyright (C) 2007 Nobuhiro Iwamatsu * * Hitachi UL SolutionEngine 7722 Support. */ #include <linux/sh_intc.h> #include <asm/addrspace.h> /* Box specific addresses. */ #define SE_A...
arch/sh/include/mach-se/mach/se7722.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_SE7724_H #define __ASM_SH_SE7724_H /* * linux/include/asm-sh/se7724.h * * Copyright (C) 2009 Renesas Solutions Corp. * * Kuninori Morimoto <morimoto.kuninori@renesas.com> * * Hitachi UL SolutionEngine 7724 Support. * * Based on se7722.h * Copyright (C) ...
arch/sh/include/mach-se/mach/se7724.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_HITACHI_7751SE_H #define __ASM_SH_HITACHI_7751SE_H /* * linux/include/asm-sh/hitachi_7751se.h * * Copyright (C) 2000 Kazumoto Kojima * * Hitachi SolutionEngine support * Modified for 7751 Solution Engine by * Ian da Silva and Jeremy Siegel, 2001. */ #in...
arch/sh/include/mach-se/mach/se7751.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_SE7780_H #define __ASM_SH_SE7780_H /* * linux/include/asm-sh/se7780.h * * Copyright (C) 2006,2007 Nobuhiro Iwamatsu * * Hitachi UL SolutionEngine 7780 Support. */ #include <linux/sh_intc.h> #include <asm/addrspace.h> /* Box specific addresses. */ #define...
arch/sh/include/mach-se/mach/se7780.h
null
null
null
null
null
source
linux
/* 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...
arch/sh/include/mach-sh03/mach/io.h
null
null
null
null
null
source
linux
/* 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) ...
arch/sh/include/mach-sh03/mach/sh03.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __MACH_X3PROTO_HARDWARE_H #define __MACH_X3PROTO_HARDWARE_H struct gpio_chip; /* arch/sh/boards/mach-x3proto/gpio.c */ int x3proto_gpio_setup(void); extern struct gpio_chip x3proto_gpio_chip; #define NR_BASEBOARD_GPIOS 16 #endif /* __MACH_X3PROTO_HARDWARE_H */
arch/sh/include/mach-x3proto/mach/hardware.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_SH_ILSEL_H #define __ASM_SH_ILSEL_H typedef enum { ILSEL_NONE, ILSEL_LAN, ILSEL_USBH_I, ILSEL_USBH_S, ILSEL_USBH_V, ILSEL_RTC, ILSEL_USBP_I, ILSEL_USBP_S, ILSEL_USBP_V, ILSEL_KEY, /* * ILSEL Aliases - corner cases for interleaved level tables. * * ...
arch/sh/include/mach-x3proto/mach/ilsel.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_AUXVEC_H #define __ASM_SH_AUXVEC_H /* * Architecture-neutral AT_ values in 0-17, leave some room * for more of them. */ /* * This entry gives some information about the FPU initialization * performed by the kernel. */ #define AT_FPU...
arch/sh/include/uapi/asm/auxvec.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_BYTEORDER_H #define __ASM_SH_BYTEORDER_H #ifdef __LITTLE_ENDIAN__ #include <linux/byteorder/little_endian.h> #else #include <linux/byteorder/big_endian.h> #endif #endif /* __ASM_SH_BYTEORDER_H */
arch/sh/include/uapi/asm/byteorder.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _SH_CACHECTL_H #define _SH_CACHECTL_H /* Definitions for the cacheflush system call. */ #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */ #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */ #define CACHEFLUSH_D_P...
arch/sh/include/uapi/asm/cachectl.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_CPU_FEATURES_H #define __ASM_SH_CPU_FEATURES_H /* * Processor flags * * Note: When adding a new flag, keep cpu_flags[] in * arch/sh/kernel/setup.c in sync so symbolic name * mapping of the processor flags has a chance of being * reas...
arch/sh/include/uapi/asm/cpu-features.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * There isn't anything here anymore, but the file must not be empty or patch * will delete it. */
arch/sh/include/uapi/asm/hw_breakpoint.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_IOCTLS_H #define __ASM_SH_IOCTLS_H #include <asm/ioctl.h> #define FIOCLEX _IO('f', 1) #define FIONCLEX _IO('f', 2) #define FIOASYNC _IOW('f', 125, int) #define FIONBIO _IOW('f', 126, int) #define FIONREAD _IOR('f', 127, int) #define TIO...
arch/sh/include/uapi/asm/ioctls.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_POSIX_TYPES_32_H #define __ASM_SH_POSIX_TYPES_32_H typedef unsigned short __kernel_mode_t; #define __kernel_mode_t __kernel_mode_t typedef unsigned short __kernel_ipc_pid_t; #define __kernel_ipc_pid_t __kernel_ipc_pid_t typedef unsigned sh...
arch/sh/include/uapi/asm/posix_types_32.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (C) 1999, 2000 Niibe Yutaka */ #ifndef _UAPI__ASM_SH_PTRACE_H #define _UAPI__ASM_SH_PTRACE_H #define PTRACE_GETREGS 12 /* General registers */ #define PTRACE_SETREGS 13 #define PTRACE_GETFPREGS 14 /* FPU registers */ #define PTRACE_SE...
arch/sh/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _UAPI__ASM_SH_PTRACE_32_H #define _UAPI__ASM_SH_PTRACE_32_H /* * GCC defines register number like this: * ----------------------------- * 0 - 15 are integer registers * 17 - 22 are control/special registers * 24 - 39 fp registers * 40 - 47 x...
arch/sh/include/uapi/asm/ptrace_32.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_SIGCONTEXT_H #define __ASM_SH_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 lon...
arch/sh/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_SIGNAL_H #define __ASM_SH_SIGNAL_H #define SA_RESTORER 0x04000000 #include <asm-generic/signal.h> #ifndef __KERNEL__ struct old_sigaction { __sighandler_t sa_handler; old_sigset_t sa_mask; unsigned long sa_flags; void (*sa_restorer)(...
arch/sh/include/uapi/asm/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_SOCKIOS_H #define __ASM_SH_SOCKIOS_H #include <linux/time_types.h> /* Socket-level I/O control calls. */ #define FIOGETOWN _IOR('f', 123, int) #define FIOSETOWN _IOW('f', 124, int) #define SIOCATMARK _IOR('s', 7, int) #define SIOCSPGRP ...
arch/sh/include/uapi/asm/sockios.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_STAT_H #define __ASM_SH_STAT_H struct __old_kernel_stat { unsigned short st_dev; unsigned short st_ino; unsigned short st_mode; unsigned short st_nlink; unsigned short st_uid; unsigned short st_gid; unsigned short st_rdev; unsigned...
arch/sh/include/uapi/asm/stat.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef __ASM_SH_SWAB_H #define __ASM_SH_SWAB_H /* * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2000, 2001 Paolo Alberelli */ #include <linux/compiler.h> #include <linux/types.h> #include <asm-generic/swab.h> static inline __attribute_const__ __...
arch/sh/include/uapi/asm/swab.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * This program is used to generate definitions needed by * assembly language modules. * * We use the technique used in the OSF Mach kernel code: * generate asm statements containing #defines, * compile this file to assembler, and then extract the * #defines from the assembl...
arch/sh/kernel/asm-offsets.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * crash_dump.c - Memory preserving reboot related code. * * Created by: Hariprasad Nellitheertha (hari@in.ibm.com) * Copyright (C) IBM Corporation, 2004. All rights reserved */ #include <linux/errno.h> #include <linux/crash_dump.h> #include <linux/io.h> #include <linux/uio.h>...
arch/sh/kernel/crash_dump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * arch/sh/kernel/debugtraps.S * * Debug trap jump tables for SuperH * * Copyright (C) 2006 - 2008 Paul Mundt */ #include <linux/sys.h> #include <linux/linkage.h> #if !defined(CONFIG_KGDB) #define singlestep_trap_handler debug_trap_handler #endif #if !defined(CONFIG_SH_S...
arch/sh/kernel/debugtraps.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Disassemble SuperH instructions. * * Copyright (C) 1999 kaz Kojima * Copyright (C) 2008 Paul Mundt */ #include <linux/kernel.h> #include <linux/string.h> #include <linux/uaccess.h> #include <asm/ptrace.h> /* * Format of an instruction in memory. */ typedef enum { HEX_0...
arch/sh/kernel/disassemble.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2004 - 2007 Paul Mundt */ #include <linux/mm.h> #include <linux/dma-map-ops.h> #include <asm/cacheflush.h> #include <asm/addrspace.h> void arch_dma_prep_coherent(struct page *page, size_t size) { __flush_purge_region(page_address(page), size); } void arch_syn...
arch/sh/kernel/dma-coherent.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1991, 1992 Linus Torvalds * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs * Copyright (C) 2009 Matt Fleming * Copyright (C) 2002 - 2012 Paul Mundt */ #include <linux/kallsyms.h> #include <linux/ftrace.h> #include <linux/debug_locks.h> #include <l...
arch/sh/kernel/dumpstack.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009 Matt Fleming <matt@console-pimps.org> * * This is an implementation of a DWARF unwinder. Its main purpose is * for generating stacktrace information. Based on the DWARF 3 * specification from http://www.dwarfstd.org. * * TODO: * - DWARF64 doesn't work....
arch/sh/kernel/dwarf.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * Copyright (C) 1999, 2000, 2002 Niibe Yutaka * Copyright (C) 2003 - 2008 Paul Mundt */ ! NOTE: ! GNU as (as of 2.9.1) changes bf/s into bt/s and bra, when the address ! to be jumped is too far, but it causes illegal slot exception. /* * entry.S contains the system-call...
arch/sh/kernel/entry-common.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2008 Matt Fleming <matt@console-pimps.org> * Copyright (C) 2008 Paul Mundt <lethal@linux-sh.org> * * Code for replacing ftrace calls with jumps. * * Copyright (C) 2007-2008 Steven Rostedt <srostedt@redhat.com> * * Thanks goes to Ingo Molnar, for suggesting ...
arch/sh/kernel/ftrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * $Id: head.S,v 1.7 2003/09/01 17:58:19 lethal Exp $ * * arch/sh/kernel/head.S * * Copyright (C) 1999, 2000 Niibe Yutaka & Kaz Kojima * Copyright (C) 2010 Matt Fleming * * Head.S contains the SH exception handlers and startup code. */ #include <linux/init.h> #include <l...
arch/sh/kernel/head_32.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/hw_breakpoint.c * * Unified kernel/user-space hardware breakpoint facility for the on-chip UBC. * * Copyright (C) 2009 - 2010 Paul Mundt */ #include <linux/init.h> #include <linux/perf_event.h> #include <linux/sched/signal.h> #include <linux/hw_breakpoint.h...
arch/sh/kernel/hw_breakpoint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * The idle loop for all SuperH platforms. * * Copyright (C) 2002 - 2009 Paul Mundt */ #include <linux/cpu.h> #include <linux/module.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/pm.h> #include <linux/tick.h> #include <linux/preempt.h> #include <linux/threa...
arch/sh/kernel/idle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/io.c - Machine independent I/O functions. * * Copyright (C) 2000 - 2009 Stuart Menefy * Copyright (C) 2005 Paul Mundt */ #include <linux/module.h> #include <linux/pci.h> #include <asm/machvec.h> #include <asm/io.h> /* * Copy data from IO memory space to "...
arch/sh/kernel/io.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Trapped io support * * Copyright (C) 2008 Magnus Damm * * Intercept io operations by trapping. */ #include <linux/kernel.h> #include <linux/mm.h> #include <linux/bitops.h> #include <linux/vmalloc.h> #include <linux/module.h> #include <linux/init.h> #include <asm/mmu_contex...
arch/sh/kernel/io_trapped.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/ioport.c * * Copyright (C) 2000 Niibe Yutaka * Copyright (C) 2005 - 2007 Paul Mundt */ #include <linux/module.h> #include <linux/io.h> #include <asm/io_trapped.h> unsigned long sh_io_port_base __read_mostly = -1; EXPORT_SYMBOL(sh_io_port_base); void __iome...
arch/sh/kernel/ioport.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sh/kernel/irq.c * * Copyright (C) 1992, 1998 Linus Torvalds, Ingo Molnar * * * SuperH version: Copyright (C) 1999 Niibe Yutaka */ #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/module.h> #include <linux/kernel_stat.h> #include <linux/seq_...
arch/sh/kernel/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SHcompact irqflags support * * Copyright (C) 2006 - 2009 Paul Mundt */ #include <linux/irqflags.h> #include <linux/module.h> void notrace arch_local_irq_restore(unsigned long flags) { unsigned long __dummy0, __dummy1; if (flags == ARCH_IRQ_DISABLED) { __asm__ __volatil...
arch/sh/kernel/irq_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/init.h> #include <linux/debugfs.h> struct dentry *arch_debugfs_dir; EXPORT_SYMBOL(arch_debugfs_dir); static int __init arch_kdebugfs_init(void) { arch_debugfs_dir = debugfs_create_dir("sh", NULL); return 0; } arch_initcall(arch_kdebugfs_i...
arch/sh/kernel/kdebugfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SuperH KGDB support * * Copyright (C) 2008 - 2012 Paul Mundt * * Single stepping taken from the old stub by Henry Bell and Jeremy Siegel. */ #include <linux/kgdb.h> #include <linux/kdebug.h> #include <linux/irq.h> #include <linux/io.h> #include <linux/sched.h> #include <l...
arch/sh/kernel/kgdb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Kernel probes (kprobes) for SuperH * * Copyright (C) 2007 Chris Smith <chris.smith@st.com> * Copyright (C) 2006 Lineo Solutions, Inc. */ #include <linux/kprobes.h> #include <linux/extable.h> #include <linux/ptrace.h> #include <linux/preempt.h> #include <linux/kdebug.h> #inc...
arch/sh/kernel/kprobes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * machine_kexec.c - handle transition of Linux booting another kernel * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com> * * GameCube/ppc32 port Copyright (C) 2004 Albert Herranz * LANDISK/sh4 supported by kogiidena */ #include <linux/mm.h> #include <linux/kex...
arch/sh/kernel/machine_kexec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/machvec.c * * The SuperH machine vector setup handlers, yanked from setup.c * * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2002 - 2007 Paul Mundt */ #include <linux/init.h> #include <linux/string.h> #include <asm/machvec.h> #include <asm/sections.h>...
arch/sh/kernel/machvec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* Kernel module help for SH. SHcompact version by Kaz Kojima and Paul Mundt. SHmedia bits: Copyright 2004 SuperH (UK) Ltd Author: Richard Curnow Based on the sh version, and on code from the sh64-specific parts of modutils, originally written by Richard Curnow and ...
arch/sh/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2007 Atmel Corporation */ #include <linux/delay.h> #include <linux/kdebug.h> #include <linux/notifier.h> #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/hardirq.h> enum nmi_action { NMI_SHOW_STATE = 1 << 0, NMI_SHOW_REGS = 1 << 1, NMI_...
arch/sh/kernel/nmi_debug.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Performance event callchain support - SuperH architecture code * * Copyright (C) 2009 Paul Mundt */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/perf_event.h> #include <linux/percpu.h> #include <asm/unwinder.h> #include <asm/ptrace.h> static void call...
arch/sh/kernel/perf_callchain.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Performance event support framework for SuperH hardware counters. * * Copyright (C) 2009 Paul Mundt * * Heavily based on the x86 and PowerPC implementations. * * x86: * Copyright (C) 2008 Linutronix GmbH, Thomas Gleixner <tglx@kernel.org> * Copyright (C) 2008-2009 R...
arch/sh/kernel/perf_event.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/mm.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/sched/signal.h> #include <linux/sched/task_stack.h> #include <linux/export.h> #include <linux/stackprotector.h> #include <asm/fpu.h> #include <asm/ptrace.h> struct kmem_cache *task_xstate_cachep ...
arch/sh/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/process.c * * This file handles the architecture-dependent parts of process handling.. * * Copyright (C) 1995 Linus Torvalds * * SuperH version: Copyright (C) 1999, 2000 Niibe Yutaka & Kaz Kojima * Copyright (C) 2006 Lineo Solutions Inc. support...
arch/sh/kernel/process_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/ptrace.h> /** * regs_query_register_offset() - query register offset from its name * @name: the name of a register * * regs_query_register_offset() returns the offset of a register in struct * pt_regs from its name. If the name is invalid, this returns -EINVAL; ...
arch/sh/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SuperH process tracing * * Copyright (C) 1999, 2000 Kaz Kojima & Niibe Yutaka * Copyright (C) 2002 - 2009 Paul Mundt * * Audit support by Yuichi Nakamura <ynakam@hitachisoft.jp> */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #i...
arch/sh/kernel/ptrace_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/pm.h> #include <linux/kexec.h> #include <linux/kernel.h> #include <linux/reboot.h> #include <linux/module.h> #include <asm/watchdog.h> #include <asm/addrspace.h> #include <asm/reboot.h> #include <asm/tlbflush.h> #include <asm/traps.h> void (*pm_power_off)(void); EXPO...
arch/sh/kernel/reboot.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * relocate_kernel.S - put the kernel image in place to boot * 2005.9.17 kogiidena@eggplant.ddo.jp * * LANDISK/sh4 is supported. Maybe, SH archtecture works well. * * 2009-03-18 Magnus Damm - Added Kexec Jump support */ #include <linux/linkage.h> #include <asm/addrspace.h> #...
arch/sh/kernel/relocate_kernel.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/return_address.c * * Copyright (C) 2009 Matt Fleming * Copyright (C) 2009 Paul Mundt */ #include <linux/kernel.h> #include <linux/module.h> #include <asm/dwarf.h> #include <asm/ftrace.h> #ifdef CONFIG_DWARF_UNWINDER void *return_address(unsigned int dept...
arch/sh/kernel/return_address.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/setup.c * * This file handles the architecture-dependent parts of initialization * * Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2002 - 2010 Paul Mundt */ #include <linux/ioport.h> #include <linux/init.h> #include <linux/initrd.h> #include <linux/con...
arch/sh/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * C interface for trapping into the standard LinuxSH BIOS. * * Copyright (C) 2000 Greg Banks, Mitch Davis * Copyright (C) 1999, 2000 Niibe Yutaka * Copyright (C) 2002 M. R. Brown * Copyright (C) 2004 - 2010 Paul Mundt */ #include <linux/module.h> #include <linux/con...
arch/sh/kernel/sh_bios.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/string.h> #include <linux/uaccess.h> #include <linux/delay.h> #include <linux/mm.h> #include <asm/checksum.h> #include <asm/sections.h> EXPORT_SYMBOL(memchr); EXPORT_SYMBOL(memcpy); EXPORT_SYMBOL(memset); EXPORT_SYMBOL(memmove); EXPORT_SYMBO...
arch/sh/kernel/sh_ksyms_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sh/kernel/signal.c * * Copyright (C) 1991, 1992 Linus Torvalds * * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson * * SuperH version: Copyright (C) 1999, 2000 Niibe Yutaka & Kaz Kojima * */ #include <linux/sched.h> #include <linux/sched...
arch/sh/kernel/signal_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/smp.c * * SMP support for the SuperH processors. * * Copyright (C) 2002 - 2010 Paul Mundt * Copyright (C) 2006 - 2007 Akio Idehara */ #include <linux/err.h> #include <linux/cache.h> #include <linux/cpumask.h> #include <linux/delay.h> #include <linux/init.h>...
arch/sh/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/stacktrace.c * * Stack trace management functions * * Copyright (C) 2006 - 2008 Paul Mundt */ #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/stacktrace.h> #include <linux/thread_info.h> #include <linux/module.h> #include <asm/unwin...
arch/sh/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * swsusp.c - SuperH hibernation support * * Copyright (C) 2009 Magnus Damm */ #include <linux/mm.h> #include <linux/sched.h> #include <linux/suspend.h> #include <asm/suspend.h> #include <asm/sections.h> #include <asm/tlbflush.h> #include <asm/page.h> #include <asm/fpu.h> str...
arch/sh/kernel/swsusp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sh/kernel/sys_sh.c * * This file contains various random system calls that * have a non-standard calling sequence on the Linux/SuperH * platform. * * Taken from i386 version. */ #include <linux/errno.h> #include <linux/sched.h> #include <linux/mm.h> #include <...
arch/sh/kernel/sys_sh.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/errno.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/sem.h> #include <linux/msg.h> #include <linux/shm.h> #include <linux/stat.h> #include <linux/syscalls.h> #include <linux/mman.h> #include...
arch/sh/kernel/sys_sh32.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * arch/sh/kernel/syscalls.S * * System call table for SuperH * * Copyright (C) 1999, 2000, 2002 Niibe Yutaka * Copyright (C) 2003 Paul Mundt */ #include <linux/sys.h> #include <linux/linkage.h> #define __SYSCALL(nr, entry) .long entry .data ENTRY(sys_call_table) #incl...
arch/sh/kernel/syscalls_32.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/time.c * * Copyright (C) 1999 Tetsuya Okada & Niibe Yutaka * Copyright (C) 2000 Philipp Rumpf <prumpf@tux.org> * Copyright (C) 2002 - 2009 Paul Mundt * Copyright (C) 2002 M. R. Brown <mrbrown@linux-sh.org> */ #include <linux/kernel.h> #include <li...
arch/sh/kernel/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/topology.c * * Copyright (C) 2007 Paul Mundt */ #include <linux/cpu.h> #include <linux/cpumask.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/topology.h> #include <linux/node.h> #include <linux/nodemask.h> #include <linux/export.h> sta...
arch/sh/kernel/topology.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/bug.h> #include <linux/io.h> #include <linux/types.h> #include <linux/kdebug.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/sched/task_stack.h> #include <linux/uaccess.h> #include <linux/hardirq.h> #include <linux/...
arch/sh/kernel/traps.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * 'traps.c' handles hardware traps and faults after we have saved some * state in 'entry.S'. * * SuperH version: Copyright (C) 1999 Niibe Yutaka * Copyright (C) 2000 Philipp Rumpf * Copyright (C) 2000 David Howells * Copyr...
arch/sh/kernel/traps_32.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2009 Matt Fleming * * Based, in part, on kernel/time/clocksource.c. * * This file provides arbitration code for stack unwinders. * * Multiple stack unwinders can be available on a system, usually with * the most accurate unwinder being the currently active...
arch/sh/kernel/unwinder.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/vmcore_info.h> #include <linux/mm.h> void arch_crash_save_vmcoreinfo(void) { #ifdef CONFIG_NUMA VMCOREINFO_SYMBOL(node_data); VMCOREINFO_LENGTH(node_data, MAX_NUMNODES); #endif #ifdef CONFIG_X2TLB VMCOREINFO_CONFIG(X2TLB); #endif }
arch/sh/kernel/vmcore_info.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * ld script to make SuperH Linux kernel * Written by Niibe Yutaka and Paul Mundt */ OUTPUT_ARCH(sh) #define RUNTIME_DISCARD_EXIT #include <asm/thread_info.h> #include <asm/cache.h> #include <asm/vmlinux.lds.h> #ifdef CONFIG_PMB #define MEMORY_OFFSET 0 #else #define MEMORY...
arch/sh/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sh/kernel/adc.c -- SH3 on-chip ADC support * * Copyright (C) 2004 Andriy Skulysh <askulysh@image.kiev.ua> */ #include <linux/module.h> #include <asm/adc.h> #include <asm/io.h> int adc_single(unsigned int channel) { int off; unsigned char csr; if (channel ...
arch/sh/kernel/cpu/adc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/clk.h> #include <linux/compiler.h> #include <linux/slab.h> #include <linux/io.h> #include <linux/clkdev.h> #include <asm/clock.h> static struct clk master_clk = { .flags = CLK_ENABLE_ON_INIT, .rate = CONFIG_SH_PCLK_FREQ, }; static struct clk peripheral_clk = { ...
arch/sh/kernel/cpu/clock-cpg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/cpu/clock.c - SuperH clock framework * * Copyright (C) 2005 - 2009 Paul Mundt * * This clock framework is derived from the OMAP version by: * * Copyright (C) 2004 - 2008 Nokia Corporation * Written by Tuukka Tikkanen <tuukka.tikkanen@elektrobit.com> * ...
arch/sh/kernel/cpu/clock.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/sched/signal.h> #include <linux/sched/task.h> #include <linux/sched/task_stack.h> #include <linux/slab.h> #include <asm/processor.h> #include <asm/fpu.h> #include <asm/traps.h> #include <asm/ptrace.h> int init_fpu(struct task_struct *tsk) { if (tsk_used_math(tsk)) {...
arch/sh/kernel/cpu/fpu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/cpu/init.c * * CPU init code * * Copyright (C) 2002 - 2009 Paul Mundt * Copyright (C) 2003 Richard Curnow */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/log2.h> #include <asm/mmu_context.h> #include <asm/process...
arch/sh/kernel/cpu/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SH Pin Function Control Initialization * * Copyright (C) 2012 Renesas Solutions Corp. */ #include <linux/init.h> #include <linux/platform_device.h> #include <cpu/pfc.h> static struct platform_device sh_pfc_device = { .id = -1, }; int __init sh_pfc_register(const char ...
arch/sh/kernel/cpu/pfc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/seq_file.h> #include <linux/kernel.h> #include <linux/module.h> #include <asm/machvec.h> #include <asm/processor.h> static const char *cpu_name[] = { [CPU_SH7201] = "SH7201", [CPU_SH7203] = "SH7203", [CPU_SH7263] = "SH7263", [CPU_SH7264] = "SH7264", [CPU_SH7269] =...
arch/sh/kernel/cpu/proc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/cpu/irq/imask.c * * Copyright (C) 1999, 2000 Niibe Yutaka * * Simple interrupt handling using IMASK of SR register. * */ /* NOTE: Will not work on level 15 */ #include <linux/ptrace.h> #include <linux/errno.h> #include <linux/kernel_stat.h> #include <linux...
arch/sh/kernel/cpu/irq/imask.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Interrupt handling for IPR-based IRQ. * * Copyright (C) 1999 Niibe Yutaka & Takeshi Yaegashi * Copyright (C) 2000 Kazumoto Kojima * Copyright (C) 2003 Takashi Kusuda <kusuda-takashi@hitachi-ul.co.jp> * Copyright (C) 2006 Paul Mundt * * Supported system: * On-chip su...
arch/sh/kernel/cpu/irq/ipr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/kernel/cpu/sh2/clock-sh7619.c * * SH7619 support for the clock framework * * Copyright (C) 2006 Yoshinori Sato * * Based on clock-sh4.c * Copyright (C) 2005 Paul Mundt */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/io.h> #include <asm/c...
arch/sh/kernel/cpu/sh2/clock-sh7619.c
null
null
null
null
null