Merge "added headers for SuperH which automatically generate by update_all.py"
This commit is contained in:
commit
716e06071a
174 changed files with 7188 additions and 0 deletions
14
libc/kernel/arch-sh/asm/adc.h
Normal file
14
libc/kernel/arch-sh/asm/adc.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_ADC_H
|
||||
#define __ASM_ADC_H
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/addrspace.h
Normal file
15
libc/kernel/arch-sh/asm/addrspace.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ADDRSPACE_H
|
||||
#define __ASM_SH_ADDRSPACE_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/atomic-grb.h
Normal file
15
libc/kernel/arch-sh/asm/atomic-grb.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ATOMIC_GRB_H
|
||||
#define __ASM_SH_ATOMIC_GRB_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/atomic-irq.h
Normal file
15
libc/kernel/arch-sh/asm/atomic-irq.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ATOMIC_IRQ_H
|
||||
#define __ASM_SH_ATOMIC_IRQ_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/atomic-llsc.h
Normal file
15
libc/kernel/arch-sh/asm/atomic-llsc.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ATOMIC_LLSC_H
|
||||
#define __ASM_SH_ATOMIC_LLSC_H
|
||||
|
||||
#endif
|
47
libc/kernel/arch-sh/asm/atomic.h
Normal file
47
libc/kernel/arch-sh/asm/atomic.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ATOMIC_H
|
||||
#define __ASM_SH_ATOMIC_H
|
||||
|
||||
typedef struct { volatile int counter; } atomic_t;
|
||||
|
||||
#define ATOMIC_INIT(i) ( (atomic_t) { (i) } )
|
||||
|
||||
#define atomic_read(v) ((v)->counter)
|
||||
#define atomic_set(v,i) ((v)->counter = (i))
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <asm/system.h>
|
||||
|
||||
#include <asm/atomic-llsc.h>
|
||||
|
||||
#define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0)
|
||||
|
||||
#define atomic_dec_return(v) atomic_sub_return(1,(v))
|
||||
#define atomic_inc_return(v) atomic_add_return(1,(v))
|
||||
|
||||
#define atomic_inc_and_test(v) (atomic_inc_return(v) == 0)
|
||||
|
||||
#define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0)
|
||||
#define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0)
|
||||
|
||||
#define atomic_inc(v) atomic_add(1,(v))
|
||||
#define atomic_dec(v) atomic_sub(1,(v))
|
||||
|
||||
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
|
||||
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
|
||||
#define smp_mb__before_atomic_dec() barrier()
|
||||
#define smp_mb__after_atomic_dec() barrier()
|
||||
#define smp_mb__before_atomic_inc() barrier()
|
||||
#define smp_mb__after_atomic_inc() barrier()
|
||||
#include <asm-generic/atomic.h>
|
||||
#endif
|
23
libc/kernel/arch-sh/asm/auxvec.h
Normal file
23
libc/kernel/arch-sh/asm/auxvec.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_AUXVEC_H
|
||||
#define __ASM_SH_AUXVEC_H
|
||||
|
||||
#define AT_FPUCW 18
|
||||
|
||||
#define AT_SYSINFO_EHDR 33
|
||||
|
||||
#define AT_L1I_CACHESHAPE 34
|
||||
#define AT_L1D_CACHESHAPE 35
|
||||
#define AT_L2_CACHESHAPE 36
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/bitops-grb.h
Normal file
15
libc/kernel/arch-sh/asm/bitops-grb.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BITOPS_GRB_H
|
||||
#define __ASM_SH_BITOPS_GRB_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/bitops-irq.h
Normal file
15
libc/kernel/arch-sh/asm/bitops-irq.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BITOPS_IRQ_H
|
||||
#define __ASM_SH_BITOPS_IRQ_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/bitops.h
Normal file
15
libc/kernel/arch-sh/asm/bitops.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BITOPS_H
|
||||
#define __ASM_SH_BITOPS_H
|
||||
|
||||
#endif
|
30
libc/kernel/arch-sh/asm/bug.h
Normal file
30
libc/kernel/arch-sh/asm/bug.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BUG_H
|
||||
#define __ASM_SH_BUG_H
|
||||
|
||||
#define TRAPA_BUG_OPCODE 0xc33e
|
||||
|
||||
#define HAVE_ARCH_BUG
|
||||
#define HAVE_ARCH_WARN_ON
|
||||
|
||||
#define _EMIT_BUG_ENTRY "\t.pushsection __bug_table,\"a\"\n" "2:\t.long 1b\n" "\t.short %O3\n" "\t.org 2b+%O4\n" "\t.popsection\n"
|
||||
|
||||
#define BUG() do { __asm__ __volatile__ ( "1:\t.short %O0\n" _EMIT_BUG_ENTRY : : "n" (TRAPA_BUG_OPCODE), "i" (__FILE__), "i" (__LINE__), "i" (0), "i" (sizeof(struct bug_entry))); } while (0)
|
||||
|
||||
#define __WARN() do { __asm__ __volatile__ ( "1:\t.short %O0\n" _EMIT_BUG_ENTRY : : "n" (TRAPA_BUG_OPCODE), "i" (__FILE__), "i" (__LINE__), "i" (BUGFLAG_WARNING), "i" (sizeof(struct bug_entry))); } while (0)
|
||||
|
||||
#define WARN_ON(x) ({ int __ret_warn_on = !!(x); if (__builtin_constant_p(__ret_warn_on)) { if (__ret_warn_on) __WARN(); } else { if (unlikely(__ret_warn_on)) __WARN(); } unlikely(__ret_warn_on); })
|
||||
|
||||
#include <asm-generic/bug.h>
|
||||
|
||||
#endif
|
19
libc/kernel/arch-sh/asm/bugs.h
Normal file
19
libc/kernel/arch-sh/asm/bugs.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BUGS_H
|
||||
#define __ASM_SH_BUGS_H
|
||||
|
||||
#include <asm/processor.h>
|
||||
|
||||
#ifndef __LITTLE_ENDIAN__
|
||||
#endif
|
||||
#endif
|
77
libc/kernel/arch-sh/asm/byteorder.h
Normal file
77
libc/kernel/arch-sh/asm/byteorder.h
Normal file
|
@ -0,0 +1,77 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_BYTEORDER_H
|
||||
#define __ASM_SH_BYTEORDER_H
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
static inline __attribute_const__ __u32 ___arch__swab32(__u32 x)
|
||||
{
|
||||
__asm__(
|
||||
#ifdef __SH5__
|
||||
"byterev %0, %0\n\t"
|
||||
"shari %0, 32, %0"
|
||||
#else
|
||||
"swap.b %0, %0\n\t"
|
||||
"swap.w %0, %0\n\t"
|
||||
"swap.b %0, %0"
|
||||
#endif
|
||||
: "=r" (x)
|
||||
: "0" (x));
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
static inline __attribute_const__ __u16 ___arch__swab16(__u16 x)
|
||||
{
|
||||
__asm__(
|
||||
#ifdef __SH5__
|
||||
"byterev %0, %0\n\t"
|
||||
"shari %0, 32, %0"
|
||||
#else
|
||||
"swap.b %0, %0"
|
||||
#endif
|
||||
: "=r" (x)
|
||||
: "0" (x));
|
||||
|
||||
return x;
|
||||
}
|
||||
|
||||
static inline __u64 ___arch__swab64(__u64 val)
|
||||
{
|
||||
union {
|
||||
struct { __u32 a,b; } s;
|
||||
__u64 u;
|
||||
} v, w;
|
||||
v.u = val;
|
||||
w.s.b = ___arch__swab32(v.s.a);
|
||||
w.s.a = ___arch__swab32(v.s.b);
|
||||
return w.u;
|
||||
}
|
||||
|
||||
#define __arch__swab64(x) ___arch__swab64(x)
|
||||
#define __arch__swab32(x) ___arch__swab32(x)
|
||||
#define __arch__swab16(x) ___arch__swab16(x)
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
#define __BYTEORDER_HAS_U64__
|
||||
#define __SWAB_64_THRU_32__
|
||||
#endif
|
||||
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#include <linux/byteorder/little_endian.h>
|
||||
#else
|
||||
#include <linux/byteorder/big_endian.h>
|
||||
#endif
|
||||
|
||||
#endif
|
14
libc/kernel/arch-sh/asm/cache.h
Normal file
14
libc/kernel/arch-sh/asm/cache.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CACHE_H
|
||||
#define __ASM_SH_CACHE_H
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/cacheflush.h
Normal file
15
libc/kernel/arch-sh/asm/cacheflush.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CACHEFLUSH_H
|
||||
#define __ASM_SH_CACHEFLUSH_H
|
||||
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/checksum.h
Normal file
12
libc/kernel/arch-sh/asm/checksum.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include "checksum_32.h"
|
22
libc/kernel/arch-sh/asm/checksum_32.h
Normal file
22
libc/kernel/arch-sh/asm/checksum_32.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CHECKSUM_H
|
||||
#define __ASM_SH_CHECKSUM_H
|
||||
|
||||
#include <linux/in6.h>
|
||||
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#else
|
||||
#endif
|
||||
#define _HAVE_ARCH_IPV6_CSUM
|
||||
#define HAVE_CSUM_COPY_USER
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/checksum_64.h
Normal file
15
libc/kernel/arch-sh/asm/checksum_64.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CHECKSUM_64_H
|
||||
#define __ASM_SH_CHECKSUM_64_H
|
||||
|
||||
#endif
|
70
libc/kernel/arch-sh/asm/clock.h
Normal file
70
libc/kernel/arch-sh/asm/clock.h
Normal file
|
@ -0,0 +1,70 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CLOCK_H
|
||||
#define __ASM_SH_CLOCK_H
|
||||
|
||||
#include <linux/kref.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/clk.h>
|
||||
#include <linux/err.h>
|
||||
|
||||
struct clk;
|
||||
|
||||
struct clk_ops {
|
||||
void (*init)(struct clk *clk);
|
||||
void (*enable)(struct clk *clk);
|
||||
void (*disable)(struct clk *clk);
|
||||
void (*recalc)(struct clk *clk);
|
||||
int (*set_rate)(struct clk *clk, unsigned long rate, int algo_id);
|
||||
long (*round_rate)(struct clk *clk, unsigned long rate);
|
||||
};
|
||||
|
||||
struct clk {
|
||||
struct list_head node;
|
||||
const char *name;
|
||||
int id;
|
||||
struct module *owner;
|
||||
|
||||
struct clk *parent;
|
||||
struct clk_ops *ops;
|
||||
|
||||
struct kref kref;
|
||||
|
||||
unsigned long rate;
|
||||
unsigned long flags;
|
||||
unsigned long arch_flags;
|
||||
};
|
||||
|
||||
#define CLK_ALWAYS_ENABLED (1 << 0)
|
||||
#define CLK_RATE_PROPAGATES (1 << 1)
|
||||
|
||||
enum clk_sh_algo_id {
|
||||
NO_CHANGE = 0,
|
||||
|
||||
IUS_N1_N1,
|
||||
IUS_322,
|
||||
IUS_522,
|
||||
IUS_N11,
|
||||
|
||||
SB_N1,
|
||||
|
||||
SB3_N1,
|
||||
SB3_32,
|
||||
SB3_43,
|
||||
SB3_54,
|
||||
|
||||
BP_N1,
|
||||
|
||||
IP_N1,
|
||||
};
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/cmpxchg-grb.h
Normal file
15
libc/kernel/arch-sh/asm/cmpxchg-grb.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CMPXCHG_GRB_H
|
||||
#define __ASM_SH_CMPXCHG_GRB_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/cmpxchg-irq.h
Normal file
15
libc/kernel/arch-sh/asm/cmpxchg-irq.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CMPXCHG_IRQ_H
|
||||
#define __ASM_SH_CMPXCHG_IRQ_H
|
||||
|
||||
#endif
|
25
libc/kernel/arch-sh/asm/cpu-features.h
Normal file
25
libc/kernel/arch-sh/asm/cpu-features.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CPU_FEATURES_H
|
||||
#define __ASM_SH_CPU_FEATURES_H
|
||||
|
||||
#define CPU_HAS_FPU 0x0001
|
||||
#define CPU_HAS_P2_FLUSH_BUG 0x0002
|
||||
#define CPU_HAS_MMU_PAGE_ASSOC 0x0004
|
||||
#define CPU_HAS_DSP 0x0008
|
||||
#define CPU_HAS_PERF_COUNTER 0x0010
|
||||
#define CPU_HAS_PTEA 0x0020
|
||||
#define CPU_HAS_LLSC 0x0040
|
||||
#define CPU_HAS_L2_CACHE 0x0080
|
||||
#define CPU_HAS_OP32 0x0100
|
||||
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/cputime.h
Normal file
17
libc/kernel/arch-sh/asm/cputime.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __SH_CPUTIME_H
|
||||
#define __SH_CPUTIME_H
|
||||
|
||||
#include <asm-generic/cputime.h>
|
||||
|
||||
#endif
|
20
libc/kernel/arch-sh/asm/current.h
Normal file
20
libc/kernel/arch-sh/asm/current.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_CURRENT_H
|
||||
#define __ASM_SH_CURRENT_H
|
||||
|
||||
#include <linux/thread_info.h>
|
||||
|
||||
struct task_struct;
|
||||
|
||||
#define current get_current()
|
||||
#endif
|
19
libc/kernel/arch-sh/asm/delay.h
Normal file
19
libc/kernel/arch-sh/asm/delay.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_DELAY_H
|
||||
#define __ASM_SH_DELAY_H
|
||||
|
||||
#define udelay(n) (__builtin_constant_p(n) ? ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : __udelay(n))
|
||||
|
||||
#define ndelay(n) (__builtin_constant_p(n) ? ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : __ndelay(n))
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/device.h
Normal file
15
libc/kernel/arch-sh/asm/device.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/device.h>
|
||||
|
||||
struct platform_device;
|
||||
|
12
libc/kernel/arch-sh/asm/div64.h
Normal file
12
libc/kernel/arch-sh/asm/div64.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/div64.h>
|
31
libc/kernel/arch-sh/asm/dma-mapping.h
Normal file
31
libc/kernel/arch-sh/asm/dma-mapping.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_DMA_MAPPING_H
|
||||
#define __ASM_SH_DMA_MAPPING_H
|
||||
|
||||
#include <linux/mm.h>
|
||||
#include <linux/scatterlist.h>
|
||||
#include <asm/cacheflush.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm-generic/dma-coherent.h>
|
||||
|
||||
#define dma_supported(dev, mask) (1)
|
||||
|
||||
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
|
||||
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
|
||||
#define dma_is_consistent(d, h) (1)
|
||||
|
||||
#define dma_unmap_single(dev, addr, size, dir) do { } while (0)
|
||||
#define dma_unmap_sg(dev, sg, nents, dir) do { } while (0)
|
||||
#define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY
|
||||
|
||||
#endif
|
14
libc/kernel/arch-sh/asm/dma.h
Normal file
14
libc/kernel/arch-sh/asm/dma.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_DMA_H
|
||||
#define __ASM_SH_DMA_H
|
||||
#endif
|
26
libc/kernel/arch-sh/asm/dmabrg.h
Normal file
26
libc/kernel/arch-sh/asm/dmabrg.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _DMABRG_H_
|
||||
#define _DMABRG_H_
|
||||
|
||||
#define DMABRGIRQ_USBDMA 0
|
||||
#define DMABRGIRQ_USBDMAERR 1
|
||||
#define DMABRGIRQ_A0TXF 2
|
||||
#define DMABRGIRQ_A0TXH 3
|
||||
#define DMABRGIRQ_A0RXF 4
|
||||
#define DMABRGIRQ_A0RXH 5
|
||||
#define DMABRGIRQ_A1TXF 6
|
||||
#define DMABRGIRQ_A1TXH 7
|
||||
#define DMABRGIRQ_A1RXF 8
|
||||
#define DMABRGIRQ_A1RXH 9
|
||||
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/edosk7705.h
Normal file
17
libc/kernel/arch-sh/asm/edosk7705.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_EDOSK7705_IO_H
|
||||
#define __ASM_SH_EDOSK7705_IO_H
|
||||
|
||||
#include <asm/io_generic.h>
|
||||
|
||||
#endif
|
92
libc/kernel/arch-sh/asm/elf.h
Normal file
92
libc/kernel/arch-sh/asm/elf.h
Normal file
|
@ -0,0 +1,92 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ELF_H
|
||||
#define __ASM_SH_ELF_H
|
||||
|
||||
#include <linux/utsname.h>
|
||||
#include <asm/auxvec.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/user.h>
|
||||
|
||||
#define EF_SH_PIC 0x100
|
||||
#define EF_SH_FDPIC 0x8000
|
||||
|
||||
#define R_SH_NONE 0
|
||||
#define R_SH_DIR32 1
|
||||
#define R_SH_REL32 2
|
||||
#define R_SH_DIR8WPN 3
|
||||
#define R_SH_IND12W 4
|
||||
#define R_SH_DIR8WPL 5
|
||||
#define R_SH_DIR8WPZ 6
|
||||
#define R_SH_DIR8BP 7
|
||||
#define R_SH_DIR8W 8
|
||||
#define R_SH_DIR8L 9
|
||||
#define R_SH_SWITCH16 25
|
||||
#define R_SH_SWITCH32 26
|
||||
#define R_SH_USES 27
|
||||
#define R_SH_COUNT 28
|
||||
#define R_SH_ALIGN 29
|
||||
#define R_SH_CODE 30
|
||||
#define R_SH_DATA 31
|
||||
#define R_SH_LABEL 32
|
||||
#define R_SH_SWITCH8 33
|
||||
#define R_SH_GNU_VTINHERIT 34
|
||||
#define R_SH_GNU_VTENTRY 35
|
||||
#define R_SH_TLS_GD_32 144
|
||||
#define R_SH_TLS_LD_32 145
|
||||
#define R_SH_TLS_LDO_32 146
|
||||
#define R_SH_TLS_IE_32 147
|
||||
#define R_SH_TLS_LE_32 148
|
||||
#define R_SH_TLS_DTPMOD32 149
|
||||
#define R_SH_TLS_DTPOFF32 150
|
||||
#define R_SH_TLS_TPOFF32 151
|
||||
#define R_SH_GOT32 160
|
||||
#define R_SH_PLT32 161
|
||||
#define R_SH_COPY 162
|
||||
#define R_SH_GLOB_DAT 163
|
||||
#define R_SH_JMP_SLOT 164
|
||||
#define R_SH_RELATIVE 165
|
||||
#define R_SH_GOTOFF 166
|
||||
#define R_SH_GOTPC 167
|
||||
|
||||
#define R_SH_GOT20 70
|
||||
#define R_SH_GOTOFF20 71
|
||||
#define R_SH_GOTFUNCDESC 72
|
||||
#define R_SH_GOTFUNCDESC20 73
|
||||
#define R_SH_GOTOFFFUNCDESC 74
|
||||
#define R_SH_GOTOFFFUNCDESC20 75
|
||||
#define R_SH_FUNCDESC 76
|
||||
#define R_SH_FUNCDESC_VALUE 77
|
||||
|
||||
#define R_SH_IMM_LOW16 246
|
||||
#define R_SH_IMM_LOW16_PCREL 247
|
||||
#define R_SH_IMM_MEDLOW16 248
|
||||
#define R_SH_IMM_MEDLOW16_PCREL 249
|
||||
|
||||
#define R_SH_NUM 256
|
||||
|
||||
typedef unsigned long elf_greg_t;
|
||||
|
||||
#define ELF_NGREG (sizeof (struct pt_regs) / sizeof(elf_greg_t))
|
||||
typedef elf_greg_t elf_gregset_t[ELF_NGREG];
|
||||
|
||||
typedef struct user_fpu_struct elf_fpregset_t;
|
||||
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
#ifdef __LITTLE_ENDIAN__
|
||||
#define ELF_DATA ELFDATA2LSB
|
||||
#else
|
||||
#define ELF_DATA ELFDATA2MSB
|
||||
#endif
|
||||
#define ELF_ARCH EM_SH
|
||||
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/emergency-restart.h
Normal file
17
libc/kernel/arch-sh/asm/emergency-restart.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_EMERGENCY_RESTART_H
|
||||
#define _ASM_EMERGENCY_RESTART_H
|
||||
|
||||
#include <asm-generic/emergency-restart.h>
|
||||
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/errno.h
Normal file
17
libc/kernel/arch-sh/asm/errno.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_ERRNO_H
|
||||
#define __ASM_SH_ERRNO_H
|
||||
|
||||
#include <asm-generic/errno.h>
|
||||
|
||||
#endif
|
19
libc/kernel/arch-sh/asm/fb.h
Normal file
19
libc/kernel/arch-sh/asm/fb.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_FB_H_
|
||||
#define _ASM_FB_H_
|
||||
|
||||
#include <linux/fb.h>
|
||||
#include <linux/fs.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/fcntl.h
Normal file
12
libc/kernel/arch-sh/asm/fcntl.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/fcntl.h>
|
37
libc/kernel/arch-sh/asm/fixmap.h
Normal file
37
libc/kernel/arch-sh/asm/fixmap.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_FIXMAP_H
|
||||
#define _ASM_FIXMAP_H
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
enum fixed_addresses {
|
||||
#define FIX_N_COLOURS 16
|
||||
FIX_CMAP_BEGIN,
|
||||
FIX_CMAP_END = FIX_CMAP_BEGIN + FIX_N_COLOURS,
|
||||
FIX_UNCACHED,
|
||||
__end_of_fixed_addresses
|
||||
};
|
||||
|
||||
#define set_fixmap(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL)
|
||||
|
||||
#define set_fixmap_nocache(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
|
||||
|
||||
#define FIXADDR_TOP (P4SEG - PAGE_SIZE)
|
||||
#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
|
||||
#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
|
||||
|
||||
#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
|
||||
#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
|
||||
|
||||
#endif
|
26
libc/kernel/arch-sh/asm/flat.h
Normal file
26
libc/kernel/arch-sh/asm/flat.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_FLAT_H
|
||||
#define __ASM_SH_FLAT_H
|
||||
|
||||
#define flat_stack_align(sp)
|
||||
#define flat_argvp_envp_on_stack() 0
|
||||
#define flat_old_ram_flag(flags) (flags)
|
||||
#define flat_reloc_valid(reloc, size) ((reloc) <= (size))
|
||||
#define flat_get_addr_from_rp(rp, relval, flags, p) get_unaligned(rp)
|
||||
#define flat_put_addr_at_rp(rp, val, relval) put_unaligned(val,rp)
|
||||
#define flat_get_relocate_addr(rel) (rel)
|
||||
#define flat_set_persistent(relval, p) ({ (void)p; 0; })
|
||||
|
||||
#define FLAT_PLAT_INIT(_r) do { _r->regs[0]=0; _r->regs[1]=0; _r->regs[2]=0; _r->regs[3]=0; _r->regs[4]=0; _r->regs[5]=0; _r->regs[6]=0; _r->regs[7]=0; _r->regs[8]=0; _r->regs[9]=0; _r->regs[10]=0; _r->regs[11]=0; _r->regs[12]=0; _r->regs[13]=0; _r->regs[14]=0; _r->sr = SR_FD; } while (0)
|
||||
|
||||
#endif
|
20
libc/kernel/arch-sh/asm/fpu.h
Normal file
20
libc/kernel/arch-sh/asm/fpu.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_FPU_H
|
||||
#define __ASM_SH_FPU_H
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <linux/preempt.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
#endif
|
||||
#endif
|
14
libc/kernel/arch-sh/asm/freq.h
Normal file
14
libc/kernel/arch-sh/asm/freq.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_FREQ_H
|
||||
#define __ASM_SH_FREQ_H
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/futex-irq.h
Normal file
17
libc/kernel/arch-sh/asm/futex-irq.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_FUTEX_IRQ_H
|
||||
#define __ASM_SH_FUTEX_IRQ_H
|
||||
|
||||
#include <asm/system.h>
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/futex.h
Normal file
15
libc/kernel/arch-sh/asm/futex.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_FUTEX_H
|
||||
#define __ASM_SH_FUTEX_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/gpio.h
Normal file
15
libc/kernel/arch-sh/asm/gpio.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_GPIO_H
|
||||
#define __ASM_SH_GPIO_H
|
||||
|
||||
#endif
|
24
libc/kernel/arch-sh/asm/hardirq.h
Normal file
24
libc/kernel/arch-sh/asm/hardirq.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_HARDIRQ_H
|
||||
#define __ASM_SH_HARDIRQ_H
|
||||
|
||||
#include <linux/threads.h>
|
||||
#include <linux/irq.h>
|
||||
|
||||
typedef struct {
|
||||
unsigned int __softirq_pending;
|
||||
} ____cacheline_aligned irq_cpustat_t;
|
||||
|
||||
#include <linux/irq_cpustat.h>
|
||||
|
||||
#endif
|
216
libc/kernel/arch-sh/asm/hd64461.h
Normal file
216
libc/kernel/arch-sh/asm/hd64461.h
Normal file
|
@ -0,0 +1,216 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_HD64461
|
||||
#define __ASM_SH_HD64461
|
||||
|
||||
#define HD64461_PCC_WINDOW 0x01000000
|
||||
|
||||
#define HD64461_PCC0_BASE (CONFIG_HD64461_IOBASE + 0x8000000)
|
||||
#define HD64461_PCC0_ATTR (HD64461_PCC0_BASE)
|
||||
#define HD64461_PCC0_COMM (HD64461_PCC0_BASE+HD64461_PCC_WINDOW)
|
||||
#define HD64461_PCC0_IO (HD64461_PCC0_BASE+2*HD64461_PCC_WINDOW)
|
||||
|
||||
#define HD64461_PCC1_BASE (CONFIG_HD64461_IOBASE + 0x4000000)
|
||||
#define HD64461_PCC1_ATTR (HD64461_PCC1_BASE)
|
||||
#define HD64461_PCC1_COMM (HD64461_PCC1_BASE+HD64461_PCC_WINDOW)
|
||||
|
||||
#define HD64461_STBCR CONFIG_HD64461_IOBASE
|
||||
#define HD64461_STBCR_CKIO_STBY 0x2000
|
||||
#define HD64461_STBCR_SAFECKE_IST 0x1000
|
||||
#define HD64461_STBCR_SLCKE_IST 0x0800
|
||||
#define HD64461_STBCR_SAFECKE_OST 0x0400
|
||||
#define HD64461_STBCR_SLCKE_OST 0x0200
|
||||
#define HD64461_STBCR_SMIAST 0x0100
|
||||
#define HD64461_STBCR_SLCDST 0x0080
|
||||
#define HD64461_STBCR_SPC0ST 0x0040
|
||||
#define HD64461_STBCR_SPC1ST 0x0020
|
||||
#define HD64461_STBCR_SAFEST 0x0010
|
||||
#define HD64461_STBCR_STM0ST 0x0008
|
||||
#define HD64461_STBCR_STM1ST 0x0004
|
||||
#define HD64461_STBCR_SIRST 0x0002
|
||||
#define HD64461_STBCR_SURTST 0x0001
|
||||
|
||||
#define HD64461_SYSCR (CONFIG_HD64461_IOBASE + 0x02)
|
||||
|
||||
#define HD64461_SCPUCR (CONFIG_HD64461_IOBASE + 0x04)
|
||||
|
||||
#define HD64461_LCDCBAR (CONFIG_HD64461_IOBASE + 0x1000)
|
||||
|
||||
#define HD64461_LCDCLOR (CONFIG_HD64461_IOBASE + 0x1002)
|
||||
|
||||
#define HD64461_LCDCCR (CONFIG_HD64461_IOBASE + 0x1004)
|
||||
|
||||
#define HD64461_LCDCCR_STBACK 0x0400
|
||||
#define HD64461_LCDCCR_STREQ 0x0100
|
||||
#define HD64461_LCDCCR_MOFF 0x0080
|
||||
#define HD64461_LCDCCR_REFSEL 0x0040
|
||||
#define HD64461_LCDCCR_EPON 0x0020
|
||||
#define HD64461_LCDCCR_SPON 0x0010
|
||||
|
||||
#define HD64461_LDR1 (CONFIG_HD64461_IOBASE + 0x1010)
|
||||
#define HD64461_LDR1_DON 0x01
|
||||
#define HD64461_LDR1_DINV 0x80
|
||||
|
||||
#define HD64461_LDR2 (CONFIG_HD64461_IOBASE + 0x1012)
|
||||
#define HD64461_LDHNCR (CONFIG_HD64461_IOBASE + 0x1014)
|
||||
#define HD64461_LDHNSR (CONFIG_HD64461_IOBASE + 0x1016)
|
||||
#define HD64461_LDVNTR (CONFIG_HD64461_IOBASE + 0x1018)
|
||||
#define HD64461_LDVNDR (CONFIG_HD64461_IOBASE + 0x101a)
|
||||
#define HD64461_LDVSPR (CONFIG_HD64461_IOBASE + 0x101c)
|
||||
|
||||
#define HD64461_LDR3 (CONFIG_HD64461_IOBASE + 0x101e)
|
||||
|
||||
#define HD64461_CPTWAR (CONFIG_HD64461_IOBASE + 0x1030)
|
||||
#define HD64461_CPTWDR (CONFIG_HD64461_IOBASE + 0x1032)
|
||||
#define HD64461_CPTRAR (CONFIG_HD64461_IOBASE + 0x1034)
|
||||
#define HD64461_CPTRDR (CONFIG_HD64461_IOBASE + 0x1036)
|
||||
|
||||
#define HD64461_GRDOR (CONFIG_HD64461_IOBASE + 0x1040)
|
||||
#define HD64461_GRSCR (CONFIG_HD64461_IOBASE + 0x1042)
|
||||
#define HD64461_GRCFGR (CONFIG_HD64461_IOBASE + 0x1044)
|
||||
|
||||
#define HD64461_GRCFGR_ACCSTATUS 0x10
|
||||
#define HD64461_GRCFGR_ACCRESET 0x08
|
||||
#define HD64461_GRCFGR_ACCSTART_BITBLT 0x06
|
||||
#define HD64461_GRCFGR_ACCSTART_LINE 0x04
|
||||
#define HD64461_GRCFGR_COLORDEPTH16 0x01
|
||||
#define HD64461_GRCFGR_COLORDEPTH8 0x01
|
||||
|
||||
#define HD64461_LNSARH (CONFIG_HD64461_IOBASE + 0x1046)
|
||||
#define HD64461_LNSARL (CONFIG_HD64461_IOBASE + 0x1048)
|
||||
#define HD64461_LNAXLR (CONFIG_HD64461_IOBASE + 0x104a)
|
||||
#define HD64461_LNDGR (CONFIG_HD64461_IOBASE + 0x104c)
|
||||
#define HD64461_LNAXR (CONFIG_HD64461_IOBASE + 0x104e)
|
||||
#define HD64461_LNERTR (CONFIG_HD64461_IOBASE + 0x1050)
|
||||
#define HD64461_LNMDR (CONFIG_HD64461_IOBASE + 0x1052)
|
||||
|
||||
#define HD64461_BBTSSARH (CONFIG_HD64461_IOBASE + 0x1054)
|
||||
#define HD64461_BBTSSARL (CONFIG_HD64461_IOBASE + 0x1056)
|
||||
#define HD64461_BBTDSARH (CONFIG_HD64461_IOBASE + 0x1058)
|
||||
#define HD64461_BBTDSARL (CONFIG_HD64461_IOBASE + 0x105a)
|
||||
#define HD64461_BBTDWR (CONFIG_HD64461_IOBASE + 0x105c)
|
||||
#define HD64461_BBTDHR (CONFIG_HD64461_IOBASE + 0x105e)
|
||||
#define HD64461_BBTPARH (CONFIG_HD64461_IOBASE + 0x1060)
|
||||
#define HD64461_BBTPARL (CONFIG_HD64461_IOBASE + 0x1062)
|
||||
#define HD64461_BBTMARH (CONFIG_HD64461_IOBASE + 0x1064)
|
||||
#define HD64461_BBTMARL (CONFIG_HD64461_IOBASE + 0x1066)
|
||||
#define HD64461_BBTROPR (CONFIG_HD64461_IOBASE + 0x1068)
|
||||
#define HD64461_BBTMDR (CONFIG_HD64461_IOBASE + 0x106a)
|
||||
|
||||
#define HD64461_PCC0ISR (CONFIG_HD64461_IOBASE + 0x2000)
|
||||
#define HD64461_PCC0GCR (CONFIG_HD64461_IOBASE + 0x2002)
|
||||
#define HD64461_PCC0CSCR (CONFIG_HD64461_IOBASE + 0x2004)
|
||||
#define HD64461_PCC0CSCIER (CONFIG_HD64461_IOBASE + 0x2006)
|
||||
#define HD64461_PCC0SCR (CONFIG_HD64461_IOBASE + 0x2008)
|
||||
|
||||
#define HD64461_PCC1ISR (CONFIG_HD64461_IOBASE + 0x2010)
|
||||
#define HD64461_PCC1GCR (CONFIG_HD64461_IOBASE + 0x2012)
|
||||
#define HD64461_PCC1CSCR (CONFIG_HD64461_IOBASE + 0x2014)
|
||||
#define HD64461_PCC1CSCIER (CONFIG_HD64461_IOBASE + 0x2016)
|
||||
#define HD64461_PCC1SCR (CONFIG_HD64461_IOBASE + 0x2018)
|
||||
|
||||
#define HD64461_PCCISR_READY 0x80
|
||||
#define HD64461_PCCISR_MWP 0x40
|
||||
#define HD64461_PCCISR_VS2 0x20
|
||||
#define HD64461_PCCISR_VS1 0x10
|
||||
#define HD64461_PCCISR_CD2 0x08
|
||||
#define HD64461_PCCISR_CD1 0x04
|
||||
#define HD64461_PCCISR_BVD2 0x02
|
||||
#define HD64461_PCCISR_BVD1 0x01
|
||||
|
||||
#define HD64461_PCCISR_PCD_MASK 0x0c
|
||||
#define HD64461_PCCISR_BVD_MASK 0x03
|
||||
#define HD64461_PCCISR_BVD_BATGOOD 0x03
|
||||
#define HD64461_PCCISR_BVD_BATWARN 0x01
|
||||
#define HD64461_PCCISR_BVD_BATDEAD1 0x02
|
||||
#define HD64461_PCCISR_BVD_BATDEAD2 0x00
|
||||
|
||||
#define HD64461_PCCGCR_DRVE 0x80
|
||||
#define HD64461_PCCGCR_PCCR 0x40
|
||||
#define HD64461_PCCGCR_PCCT 0x20
|
||||
#define HD64461_PCCGCR_VCC0 0x10
|
||||
#define HD64461_PCCGCR_PMMOD 0x08
|
||||
#define HD64461_PCCGCR_PA25 0x04
|
||||
#define HD64461_PCCGCR_PA24 0x02
|
||||
#define HD64461_PCCGCR_REG 0x01
|
||||
|
||||
#define HD64461_PCCCSCR_SCDI 0x80
|
||||
#define HD64461_PCCCSCR_SRV1 0x40
|
||||
#define HD64461_PCCCSCR_IREQ 0x20
|
||||
#define HD64461_PCCCSCR_SC 0x10
|
||||
#define HD64461_PCCCSCR_CDC 0x08
|
||||
#define HD64461_PCCCSCR_RC 0x04
|
||||
#define HD64461_PCCCSCR_BW 0x02
|
||||
#define HD64461_PCCCSCR_BD 0x01
|
||||
|
||||
#define HD64461_PCCCSCIER_CRE 0x80
|
||||
#define HD64461_PCCCSCIER_IREQE_MASK 0x60
|
||||
#define HD64461_PCCCSCIER_IREQE_DISABLED 0x00
|
||||
#define HD64461_PCCCSCIER_IREQE_LEVEL 0x20
|
||||
#define HD64461_PCCCSCIER_IREQE_FALLING 0x40
|
||||
#define HD64461_PCCCSCIER_IREQE_RISING 0x60
|
||||
|
||||
#define HD64461_PCCCSCIER_SCE 0x10
|
||||
#define HD64461_PCCCSCIER_CDE 0x08
|
||||
#define HD64461_PCCCSCIER_RE 0x04
|
||||
#define HD64461_PCCCSCIER_BWE 0x02
|
||||
#define HD64461_PCCCSCIER_BDE 0x01
|
||||
|
||||
#define HD64461_PCCSCR_VCC1 0x02
|
||||
#define HD64461_PCCSCR_SWP 0x01
|
||||
|
||||
#define HD64461_P0OCR (CONFIG_HD64461_IOBASE + 0x202a)
|
||||
|
||||
#define HD64461_P1OCR (CONFIG_HD64461_IOBASE + 0x202c)
|
||||
|
||||
#define HD64461_PGCR (CONFIG_HD64461_IOBASE + 0x202e)
|
||||
|
||||
#define HD64461_GPACR (CONFIG_HD64461_IOBASE + 0x4000)
|
||||
#define HD64461_GPBCR (CONFIG_HD64461_IOBASE + 0x4002)
|
||||
#define HD64461_GPCCR (CONFIG_HD64461_IOBASE + 0x4004)
|
||||
#define HD64461_GPDCR (CONFIG_HD64461_IOBASE + 0x4006)
|
||||
|
||||
#define HD64461_GPADR (CONFIG_HD64461_IOBASE + 0x4010)
|
||||
#define HD64461_GPBDR (CONFIG_HD64461_IOBASE + 0x4012)
|
||||
#define HD64461_GPCDR (CONFIG_HD64461_IOBASE + 0x4014)
|
||||
#define HD64461_GPDDR (CONFIG_HD64461_IOBASE + 0x4016)
|
||||
|
||||
#define HD64461_GPAICR (CONFIG_HD64461_IOBASE + 0x4020)
|
||||
#define HD64461_GPBICR (CONFIG_HD64461_IOBASE + 0x4022)
|
||||
#define HD64461_GPCICR (CONFIG_HD64461_IOBASE + 0x4024)
|
||||
#define HD64461_GPDICR (CONFIG_HD64461_IOBASE + 0x4026)
|
||||
|
||||
#define HD64461_GPAISR (CONFIG_HD64461_IOBASE + 0x4040)
|
||||
#define HD64461_GPBISR (CONFIG_HD64461_IOBASE + 0x4042)
|
||||
#define HD64461_GPCISR (CONFIG_HD64461_IOBASE + 0x4044)
|
||||
#define HD64461_GPDISR (CONFIG_HD64461_IOBASE + 0x4046)
|
||||
|
||||
#define HD64461_NIRR (CONFIG_HD64461_IOBASE + 0x5000)
|
||||
#define HD64461_NIMR (CONFIG_HD64461_IOBASE + 0x5002)
|
||||
|
||||
#define HD64461_IRQBASE OFFCHIP_IRQ_BASE
|
||||
#define OFFCHIP_IRQ_BASE 64
|
||||
#define HD64461_IRQ_NUM 16
|
||||
|
||||
#define HD64461_IRQ_UART (HD64461_IRQBASE+5)
|
||||
#define HD64461_IRQ_IRDA (HD64461_IRQBASE+6)
|
||||
#define HD64461_IRQ_TMU1 (HD64461_IRQBASE+9)
|
||||
#define HD64461_IRQ_TMU0 (HD64461_IRQBASE+10)
|
||||
#define HD64461_IRQ_GPIO (HD64461_IRQBASE+11)
|
||||
#define HD64461_IRQ_AFE (HD64461_IRQBASE+12)
|
||||
#define HD64461_IRQ_PCC1 (HD64461_IRQBASE+13)
|
||||
#define HD64461_IRQ_PCC0 (HD64461_IRQBASE+14)
|
||||
|
||||
#define __IO_PREFIX hd64461
|
||||
#include <asm/io_generic.h>
|
||||
|
||||
#endif
|
27
libc/kernel/arch-sh/asm/hd64465/gpio.h
Normal file
27
libc/kernel/arch-sh/asm/hd64465/gpio.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_HD64465_GPIO_
|
||||
#define _ASM_SH_HD64465_GPIO_ 1
|
||||
|
||||
#include <asm/hd64465.h>
|
||||
|
||||
#define HD64465_GPIO_PORTPIN(port,pin) (((port)-'A')<<3|(pin))
|
||||
|
||||
#define HD64465_GPIO_FUNCTION2 0
|
||||
#define HD64465_GPIO_OUT 1
|
||||
#define HD64465_GPIO_IN_PULLUP 2
|
||||
#define HD64465_GPIO_IN 3
|
||||
|
||||
#define HD64465_GPIO_FALLING 0
|
||||
#define HD64465_GPIO_RISING 1
|
||||
|
||||
#endif
|
210
libc/kernel/arch-sh/asm/hd64465/hd64465.h
Normal file
210
libc/kernel/arch-sh/asm/hd64465/hd64465.h
Normal file
|
@ -0,0 +1,210 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_HD64465_
|
||||
#define _ASM_SH_HD64465_ 1
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <asm/irq.h>
|
||||
|
||||
#define HD64465_REG_SRR 0x1000c
|
||||
#define HD64465_REG_SDID 0x10010
|
||||
#define HD64465_SDID 0x8122
|
||||
|
||||
#define HD64465_REG_SMSCR 0x10000
|
||||
#define HD64465_SMSCR_PS2ST 0x4000
|
||||
#define HD64465_SMSCR_ADCST 0x1000
|
||||
#define HD64465_SMSCR_UARTST 0x0800
|
||||
#define HD64465_SMSCR_SCDIST 0x0200
|
||||
#define HD64465_SMSCR_PPST 0x0100
|
||||
#define HD64465_SMSCR_PC0ST 0x0040
|
||||
#define HD64465_SMSCR_PC1ST 0x0020
|
||||
#define HD64465_SMSCR_AFEST 0x0010
|
||||
#define HD64465_SMSCR_TM0ST 0x0008
|
||||
#define HD64465_SMSCR_TM1ST 0x0004
|
||||
#define HD64465_SMSCR_IRDAST 0x0002
|
||||
#define HD64465_SMSCR_KBCST 0x0001
|
||||
|
||||
#define HD64465_REG_NIRR 0x15000
|
||||
#define HD64465_REG_NIMR 0x15002
|
||||
#define HD64465_REG_NITR 0x15004
|
||||
|
||||
#define HD64465_REG_TCVR1 0x16000
|
||||
#define HD64465_REG_TCVR0 0x16002
|
||||
#define HD64465_REG_TRVR1 0x16004
|
||||
#define HD64465_REG_TRVR0 0x16006
|
||||
#define HD64465_REG_TCR1 0x16008
|
||||
#define HD64465_REG_TCR0 0x1600A
|
||||
#define HD64465_TCR_EADT 0x10
|
||||
#define HD64465_TCR_ETMO 0x08
|
||||
#define HD64465_TCR_PST_MASK 0x06
|
||||
#define HD64465_TCR_PST_1 0x06
|
||||
#define HD64465_TCR_PST_4 0x04
|
||||
#define HD64465_TCR_PST_8 0x02
|
||||
#define HD64465_TCR_PST_16 0x00
|
||||
#define HD64465_TCR_TSTP 0x01
|
||||
#define HD64465_REG_TIRR 0x1600C
|
||||
#define HD64465_REG_TIDR 0x1600E
|
||||
#define HD64465_REG_PWM1CS 0x16010
|
||||
#define HD64465_REG_PWM1LPC 0x16012
|
||||
#define HD64465_REG_PWM1HPC 0x16014
|
||||
#define HD64465_REG_PWM0CS 0x16018
|
||||
#define HD64465_REG_PWM0LPC 0x1601A
|
||||
#define HD64465_REG_PWM0HPC 0x1601C
|
||||
|
||||
#define HD64465_REG_ADDRA 0x1E000
|
||||
#define HD64465_REG_ADDRB 0x1E002
|
||||
#define HD64465_REG_ADDRC 0x1E004
|
||||
#define HD64465_REG_ADDRD 0x1E006
|
||||
#define HD64465_REG_ADCSR 0x1E008
|
||||
#define HD64465_ADCSR_ADF 0x80
|
||||
#define HD64465_ADCSR_ADST 0x40
|
||||
#define HD64465_ADCSR_ADIS 0x20
|
||||
#define HD64465_ADCSR_TRGE 0x10
|
||||
#define HD64465_ADCSR_ADIE 0x08
|
||||
#define HD64465_ADCSR_SCAN 0x04
|
||||
#define HD64465_ADCSR_CH_MASK 0x03
|
||||
#define HD64465_REG_ADCALCR 0x1E00A
|
||||
#define HD64465_REG_ADCAL 0x1E00C
|
||||
|
||||
#define HD64465_REG_GPACR 0x14000
|
||||
#define HD64465_REG_GPBCR 0x14002
|
||||
#define HD64465_REG_GPCCR 0x14004
|
||||
#define HD64465_REG_GPDCR 0x14006
|
||||
#define HD64465_REG_GPECR 0x14008
|
||||
#define HD64465_REG_GPADR 0x14010
|
||||
#define HD64465_REG_GPBDR 0x14012
|
||||
#define HD64465_REG_GPCDR 0x14014
|
||||
#define HD64465_REG_GPDDR 0x14016
|
||||
#define HD64465_REG_GPEDR 0x14018
|
||||
#define HD64465_REG_GPAICR 0x14020
|
||||
#define HD64465_REG_GPBICR 0x14022
|
||||
#define HD64465_REG_GPCICR 0x14024
|
||||
#define HD64465_REG_GPDICR 0x14026
|
||||
#define HD64465_REG_GPEICR 0x14028
|
||||
#define HD64465_REG_GPAISR 0x14040
|
||||
#define HD64465_REG_GPBISR 0x14042
|
||||
#define HD64465_REG_GPCISR 0x14044
|
||||
#define HD64465_REG_GPDISR 0x14046
|
||||
#define HD64465_REG_GPEISR 0x14048
|
||||
|
||||
#define HD64465_REG_PCC0ISR 0x12000
|
||||
#define HD64465_PCCISR_PREADY 0x80
|
||||
#define HD64465_PCCISR_PIREQ 0x80
|
||||
#define HD64465_PCCISR_PMWP 0x40
|
||||
#define HD64465_PCCISR_PVS2 0x20
|
||||
#define HD64465_PCCISR_PVS1 0x10
|
||||
#define HD64465_PCCISR_PCD_MASK 0x0c
|
||||
#define HD64465_PCCISR_PBVD_MASK 0x03
|
||||
#define HD64465_PCCISR_PBVD_BATGOOD 0x03
|
||||
#define HD64465_PCCISR_PBVD_BATWARN 0x01
|
||||
#define HD64465_PCCISR_PBVD_BATDEAD1 0x02
|
||||
#define HD64465_PCCISR_PBVD_BATDEAD2 0x00
|
||||
#define HD64465_REG_PCC0GCR 0x12002
|
||||
#define HD64465_PCCGCR_PDRV 0x80
|
||||
#define HD64465_PCCGCR_PCCR 0x40
|
||||
#define HD64465_PCCGCR_PCCT 0x20
|
||||
#define HD64465_PCCGCR_PVCC0 0x10
|
||||
#define HD64465_PCCGCR_PMMOD 0x08
|
||||
#define HD64465_PCCGCR_PPA25 0x04
|
||||
#define HD64465_PCCGCR_PPA24 0x02
|
||||
#define HD64465_PCCGCR_PREG 0x01
|
||||
#define HD64465_REG_PCC0CSCR 0x12004
|
||||
#define HD64465_PCCCSCR_PSCDI 0x80
|
||||
#define HD64465_PCCCSCR_PSWSEL 0x40
|
||||
#define HD64465_PCCCSCR_PIREQ 0x20
|
||||
#define HD64465_PCCCSCR_PSC 0x10
|
||||
#define HD64465_PCCCSCR_PCDC 0x08
|
||||
#define HD64465_PCCCSCR_PRC 0x04
|
||||
#define HD64465_PCCCSCR_PBW 0x02
|
||||
#define HD64465_PCCCSCR_PBD 0x01
|
||||
#define HD64465_REG_PCC0CSCIER 0x12006
|
||||
#define HD64465_PCCCSCIER_PCRE 0x80
|
||||
#define HD64465_PCCCSCIER_PIREQE_MASK 0x60
|
||||
#define HD64465_PCCCSCIER_PIREQE_DISABLED 0x00
|
||||
#define HD64465_PCCCSCIER_PIREQE_LEVEL 0x20
|
||||
#define HD64465_PCCCSCIER_PIREQE_FALLING 0x40
|
||||
#define HD64465_PCCCSCIER_PIREQE_RISING 0x60
|
||||
#define HD64465_PCCCSCIER_PSCE 0x10
|
||||
#define HD64465_PCCCSCIER_PCDE 0x08
|
||||
#define HD64465_PCCCSCIER_PRE 0x04
|
||||
#define HD64465_PCCCSCIER_PBWE 0x02
|
||||
#define HD64465_PCCCSCIER_PBDE 0x01
|
||||
#define HD64465_REG_PCC0SCR 0x12008
|
||||
#define HD64465_PCCSCR_SHDN 0x10
|
||||
#define HD64465_PCCSCR_SWP 0x01
|
||||
#define HD64465_REG_PCCPSR 0x1200A
|
||||
#define HD64465_REG_PCC1ISR 0x12010
|
||||
#define HD64465_REG_PCC1GCR 0x12012
|
||||
#define HD64465_REG_PCC1CSCR 0x12014
|
||||
#define HD64465_REG_PCC1CSCIER 0x12016
|
||||
#define HD64465_REG_PCC1SCR 0x12018
|
||||
|
||||
#define HD64465_REG_KBCSR 0x1dc00
|
||||
#define HD64465_KBCSR_KBCIE 0x8000
|
||||
#define HD64465_KBCSR_KBCOE 0x4000
|
||||
#define HD64465_KBCSR_KBDOE 0x2000
|
||||
#define HD64465_KBCSR_KBCD 0x1000
|
||||
#define HD64465_KBCSR_KBDD 0x0800
|
||||
#define HD64465_KBCSR_KBCS 0x0400
|
||||
#define HD64465_KBCSR_KBDS 0x0200
|
||||
#define HD64465_KBCSR_KBDP 0x0100
|
||||
#define HD64465_KBCSR_KBD_MASK 0x00ff
|
||||
#define HD64465_REG_KBISR 0x1dc04
|
||||
#define HD64465_KBISR_KBRDF 0x0001
|
||||
#define HD64465_REG_MSCSR 0x1dc10
|
||||
#define HD64465_REG_MSISR 0x1dc14
|
||||
|
||||
#define CONFIG_HD64465_IOBASE 0xb0000000
|
||||
|
||||
#define CONFIG_HD64465_IRQ 5
|
||||
|
||||
#define _HD64465_IO_MASK 0xf8000000
|
||||
#define is_hd64465_addr(addr) ((addr & _HD64465_IO_MASK) == (CONFIG_HD64465_IOBASE & _HD64465_IO_MASK))
|
||||
|
||||
#define HD64465_IRQ_BASE OFFCHIP_IRQ_BASE
|
||||
#define HD64465_IRQ_NUM 16
|
||||
#define HD64465_IRQ_ADC (HD64465_IRQ_BASE+0)
|
||||
#define HD64465_IRQ_USB (HD64465_IRQ_BASE+1)
|
||||
#define HD64465_IRQ_SCDI (HD64465_IRQ_BASE+2)
|
||||
#define HD64465_IRQ_PARALLEL (HD64465_IRQ_BASE+3)
|
||||
|
||||
#define HD64465_IRQ_UART (HD64465_IRQ_BASE+5)
|
||||
#define HD64465_IRQ_IRDA (HD64465_IRQ_BASE+6)
|
||||
#define HD64465_IRQ_PS2MOUSE (HD64465_IRQ_BASE+7)
|
||||
#define HD64465_IRQ_KBC (HD64465_IRQ_BASE+8)
|
||||
#define HD64465_IRQ_TIMER1 (HD64465_IRQ_BASE+9)
|
||||
#define HD64465_IRQ_TIMER0 (HD64465_IRQ_BASE+10)
|
||||
#define HD64465_IRQ_GPIO (HD64465_IRQ_BASE+11)
|
||||
#define HD64465_IRQ_AFE (HD64465_IRQ_BASE+12)
|
||||
#define HD64465_IRQ_PCMCIA1 (HD64465_IRQ_BASE+13)
|
||||
#define HD64465_IRQ_PCMCIA0 (HD64465_IRQ_BASE+14)
|
||||
#define HD64465_IRQ_PS2KBD (HD64465_IRQ_BASE+15)
|
||||
|
||||
#define HD64465_PCC_WINDOW 0x01000000
|
||||
|
||||
#define HD64465_PCC0_BASE 0xb8000000
|
||||
#define HD64465_PCC0_ATTR (HD64465_PCC0_BASE)
|
||||
#define HD64465_PCC0_COMM (HD64465_PCC0_BASE+HD64465_PCC_WINDOW)
|
||||
#define HD64465_PCC0_IO (HD64465_PCC0_BASE+2*HD64465_PCC_WINDOW)
|
||||
|
||||
#define HD64465_PCC1_BASE 0xb4000000
|
||||
#define HD64465_PCC1_ATTR (HD64465_PCC1_BASE)
|
||||
#define HD64465_PCC1_COMM (HD64465_PCC1_BASE+HD64465_PCC_WINDOW)
|
||||
#define HD64465_PCC1_IO (HD64465_PCC1_BASE+2*HD64465_PCC_WINDOW)
|
||||
|
||||
#define HD64465_USB_BASE (CONFIG_HD64465_IOBASE+0xb000)
|
||||
#define HD64465_USB_LEN 0x1000
|
||||
|
||||
#define HD64465_SRAM_BASE (CONFIG_HD64465_IOBASE+0x9000)
|
||||
#define HD64465_SRAM_LEN 0x1000
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/hd64465/io.h
Normal file
15
libc/kernel/arch-sh/asm/hd64465/io.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_IO_HD64465_H
|
||||
#define _ASM_SH_IO_HD64465_H
|
||||
|
||||
#endif
|
28
libc/kernel/arch-sh/asm/heartbeat.h
Normal file
28
libc/kernel/arch-sh/asm/heartbeat.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_HEARTBEAT_H
|
||||
#define __ASM_SH_HEARTBEAT_H
|
||||
|
||||
#include <linux/timer.h>
|
||||
|
||||
#define HEARTBEAT_INVERTED (1 << 0)
|
||||
|
||||
struct heartbeat_data {
|
||||
void __iomem *base;
|
||||
unsigned char *bit_pos;
|
||||
unsigned int nr_bits;
|
||||
struct timer_list timer;
|
||||
unsigned int regsize;
|
||||
unsigned long flags;
|
||||
};
|
||||
|
||||
#endif
|
60
libc/kernel/arch-sh/asm/hp6xx.h
Normal file
60
libc/kernel/arch-sh/asm/hp6xx.h
Normal file
|
@ -0,0 +1,60 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_HP6XX_H
|
||||
#define __ASM_SH_HP6XX_H
|
||||
|
||||
#define HP680_BTN_IRQ 32
|
||||
#define HP680_TS_IRQ 35
|
||||
#define HP680_HD64461_IRQ 36
|
||||
|
||||
#define DAC_LCD_BRIGHTNESS 0
|
||||
#define DAC_SPEAKER_VOLUME 1
|
||||
|
||||
#define PGDR_OPENED 0x01
|
||||
#define PGDR_MAIN_BATTERY_OUT 0x04
|
||||
#define PGDR_PLAY_BUTTON 0x08
|
||||
#define PGDR_REWIND_BUTTON 0x10
|
||||
#define PGDR_RECORD_BUTTON 0x20
|
||||
|
||||
#define PHDR_TS_PEN_DOWN 0x08
|
||||
|
||||
#define PJDR_LED_BLINK 0x02
|
||||
|
||||
#define PKDR_LED_GREEN 0x10
|
||||
|
||||
#define SCPDR_TS_SCAN_ENABLE 0x20
|
||||
#define SCPDR_TS_SCAN_Y 0x02
|
||||
#define SCPDR_TS_SCAN_X 0x01
|
||||
|
||||
#define SCPCR_TS_ENABLE 0x405
|
||||
#define SCPCR_TS_MASK 0xc0f
|
||||
|
||||
#define ADC_CHANNEL_TS_Y 1
|
||||
#define ADC_CHANNEL_TS_X 2
|
||||
#define ADC_CHANNEL_BATTERY 3
|
||||
#define ADC_CHANNEL_BACKUP 4
|
||||
#define ADC_CHANNEL_CHARGE 5
|
||||
|
||||
#define HD64461_GPADR_SPEAKER 0x01
|
||||
#define HD64461_GPADR_PCMCIA0 (0x02|0x08)
|
||||
|
||||
#define HD64461_GPBDR_LCDOFF 0x01
|
||||
#define HD64461_GPBDR_LCD_CONTRAST_MASK 0x78
|
||||
#define HD64461_GPBDR_LED_RED 0x80
|
||||
|
||||
#include <asm/hd64461.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#define PJDR 0xa4000130
|
||||
#define PKDR 0xa4000132
|
||||
|
||||
#endif
|
17
libc/kernel/arch-sh/asm/hugetlb.h
Normal file
17
libc/kernel/arch-sh/asm/hugetlb.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_HUGETLB_H
|
||||
#define _ASM_SH_HUGETLB_H
|
||||
|
||||
#include <asm/page.h>
|
||||
|
||||
#endif
|
92
libc/kernel/arch-sh/asm/hw_irq.h
Normal file
92
libc/kernel/arch-sh/asm/hw_irq.h
Normal file
|
@ -0,0 +1,92 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_HW_IRQ_H
|
||||
#define __ASM_SH_HW_IRQ_H
|
||||
|
||||
#include <linux/init.h>
|
||||
#include <asm/atomic.h>
|
||||
|
||||
struct ipr_data {
|
||||
unsigned char irq;
|
||||
unsigned char ipr_idx;
|
||||
unsigned char shift;
|
||||
unsigned char priority;
|
||||
};
|
||||
|
||||
struct ipr_desc {
|
||||
unsigned long *ipr_offsets;
|
||||
unsigned int nr_offsets;
|
||||
struct ipr_data *ipr_data;
|
||||
unsigned int nr_irqs;
|
||||
struct irq_chip chip;
|
||||
};
|
||||
|
||||
typedef unsigned char intc_enum;
|
||||
|
||||
struct intc_vect {
|
||||
intc_enum enum_id;
|
||||
unsigned short vect;
|
||||
};
|
||||
|
||||
#define INTC_VECT(enum_id, vect) { enum_id, vect }
|
||||
#define INTC_IRQ(enum_id, irq) INTC_VECT(enum_id, irq2evt(irq))
|
||||
|
||||
struct intc_group {
|
||||
intc_enum enum_id;
|
||||
intc_enum enum_ids[32];
|
||||
};
|
||||
|
||||
#define INTC_GROUP(enum_id, ids...) { enum_id, { ids } }
|
||||
|
||||
struct intc_mask_reg {
|
||||
unsigned long set_reg, clr_reg, reg_width;
|
||||
intc_enum enum_ids[32];
|
||||
};
|
||||
|
||||
struct intc_prio_reg {
|
||||
unsigned long set_reg, clr_reg, reg_width, field_width;
|
||||
intc_enum enum_ids[16];
|
||||
};
|
||||
|
||||
struct intc_sense_reg {
|
||||
unsigned long reg, reg_width, field_width;
|
||||
intc_enum enum_ids[16];
|
||||
};
|
||||
|
||||
#define INTC_SMP(stride, nr)
|
||||
|
||||
struct intc_desc {
|
||||
struct intc_vect *vectors;
|
||||
unsigned int nr_vectors;
|
||||
struct intc_group *groups;
|
||||
unsigned int nr_groups;
|
||||
struct intc_mask_reg *mask_regs;
|
||||
unsigned int nr_mask_regs;
|
||||
struct intc_prio_reg *prio_regs;
|
||||
unsigned int nr_prio_regs;
|
||||
struct intc_sense_reg *sense_regs;
|
||||
unsigned int nr_sense_regs;
|
||||
char *name;
|
||||
struct intc_mask_reg *ack_regs;
|
||||
unsigned int nr_ack_regs;
|
||||
};
|
||||
|
||||
#define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a)
|
||||
#define DECLARE_INTC_DESC(symbol, chipname, vectors, groups, mask_regs, prio_regs, sense_regs) struct intc_desc symbol __initdata = { _INTC_ARRAY(vectors), _INTC_ARRAY(groups), _INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), _INTC_ARRAY(sense_regs), chipname, }
|
||||
|
||||
#define DECLARE_INTC_DESC_ACK(symbol, chipname, vectors, groups, mask_regs, prio_regs, sense_regs, ack_regs) struct intc_desc symbol __initdata = { _INTC_ARRAY(vectors), _INTC_ARRAY(groups), _INTC_ARRAY(mask_regs), _INTC_ARRAY(prio_regs), _INTC_ARRAY(sense_regs), chipname, _INTC_ARRAY(ack_regs), }
|
||||
|
||||
enum { IRQ_MODE_IRQ, IRQ_MODE_IRQ7654, IRQ_MODE_IRQ3210,
|
||||
IRQ_MODE_IRL7654_MASK, IRQ_MODE_IRL3210_MASK,
|
||||
IRQ_MODE_IRL7654, IRQ_MODE_IRL3210 };
|
||||
|
||||
#endif
|
29
libc/kernel/arch-sh/asm/i2c-sh7760.h
Normal file
29
libc/kernel/arch-sh/asm/i2c-sh7760.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _I2C_SH7760_H_
|
||||
#define _I2C_SH7760_H_
|
||||
|
||||
#define SH7760_I2C_DEVNAME "sh7760-i2c"
|
||||
|
||||
#define SH7760_I2C0_MMIO 0xFE140000
|
||||
#define SH7760_I2C0_MMIOEND 0xFE14003B
|
||||
#define SH7760_I2C0_IRQ 62
|
||||
|
||||
#define SH7760_I2C1_MMIO 0xFE150000
|
||||
#define SH7760_I2C1_MMIOEND 0xFE15003B
|
||||
#define SH7760_I2C1_IRQ 63
|
||||
|
||||
struct sh7760_i2c_platdata {
|
||||
unsigned int speed_khz;
|
||||
};
|
||||
|
||||
#endif
|
42
libc/kernel/arch-sh/asm/ilsel.h
Normal file
42
libc/kernel/arch-sh/asm/ilsel.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#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_FPGA0,
|
||||
ILSEL_FPGA1,
|
||||
ILSEL_EX1,
|
||||
ILSEL_EX2,
|
||||
ILSEL_EX3,
|
||||
ILSEL_EX4,
|
||||
|
||||
ILSEL_FPGA2 = ILSEL_FPGA0,
|
||||
ILSEL_FPGA3 = ILSEL_FPGA1,
|
||||
ILSEL_EX5 = ILSEL_EX1,
|
||||
ILSEL_EX6 = ILSEL_EX2,
|
||||
ILSEL_EX7 = ILSEL_EX3,
|
||||
ILSEL_EX8 = ILSEL_EX4,
|
||||
} ilsel_source_t;
|
||||
|
||||
#endif
|
22
libc/kernel/arch-sh/asm/io.h
Normal file
22
libc/kernel/arch-sh/asm/io.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IO_H
|
||||
#define __ASM_SH_IO_H
|
||||
|
||||
#include <asm/cache.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/addrspace.h>
|
||||
#include <asm/machvec.h>
|
||||
#include <asm/pgtable.h>
|
||||
#include <asm-generic/iomap.h>
|
||||
|
||||
#endif
|
19
libc/kernel/arch-sh/asm/io_generic.h
Normal file
19
libc/kernel/arch-sh/asm/io_generic.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#define IO_CONCAT(a,b) _IO_CONCAT(a,b)
|
||||
#define _IO_CONCAT(a,b) a ## _ ## b
|
||||
|
||||
#ifndef __IO_PREFIX
|
||||
#error "Don't include this header without a valid system prefix"
|
||||
#endif
|
||||
|
||||
#undef __IO_PREFIX
|
35
libc/kernel/arch-sh/asm/io_trapped.h
Normal file
35
libc/kernel/arch-sh/asm/io_trapped.h
Normal file
|
@ -0,0 +1,35 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IO_TRAPPED_H
|
||||
#define __ASM_SH_IO_TRAPPED_H
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#define IO_TRAPPED_MAGIC 0xfeedbeef
|
||||
|
||||
struct trapped_io {
|
||||
unsigned int magic;
|
||||
struct resource *resource;
|
||||
unsigned int num_resources;
|
||||
unsigned int minimum_bus_width;
|
||||
struct list_head list;
|
||||
void __iomem *virt_base;
|
||||
} __aligned(PAGE_SIZE);
|
||||
|
||||
#define register_trapped_io(tiop) (-1)
|
||||
#define handle_trapped_io(tiop, address) 0
|
||||
#define __ioremap_trapped(offset, size) NULL
|
||||
#define __ioport_map_trapped(offset, size) NULL
|
||||
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/ioctl.h
Normal file
12
libc/kernel/arch-sh/asm/ioctl.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/ioctl.h>
|
113
libc/kernel/arch-sh/asm/ioctls.h
Normal file
113
libc/kernel/arch-sh/asm/ioctls.h
Normal file
|
@ -0,0 +1,113 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#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 TIOCINQ FIONREAD
|
||||
#define FIOQSIZE _IOR('f', 128, loff_t)
|
||||
|
||||
#define TCGETS 0x5401
|
||||
#define TCSETS 0x5402
|
||||
#define TCSETSW 0x5403
|
||||
#define TCSETSF 0x5404
|
||||
|
||||
#define TCGETA 0x80127417
|
||||
#define TCSETA 0x40127418
|
||||
#define TCSETAW 0x40127419
|
||||
#define TCSETAF 0x4012741C
|
||||
|
||||
#define TCSBRK _IO('t', 29)
|
||||
#define TCXONC _IO('t', 30)
|
||||
#define TCFLSH _IO('t', 31)
|
||||
|
||||
#define TIOCSWINSZ 0x40087467
|
||||
#define TIOCGWINSZ 0x80087468
|
||||
#define TIOCSTART _IO('t', 110)
|
||||
#define TIOCSTOP _IO('t', 111)
|
||||
#define TIOCOUTQ _IOR('t', 115, int)
|
||||
|
||||
#define TIOCSPGRP _IOW('t', 118, int)
|
||||
#define TIOCGPGRP _IOR('t', 119, int)
|
||||
|
||||
#define TIOCEXCL _IO('T', 12)
|
||||
#define TIOCNXCL _IO('T', 13)
|
||||
#define TIOCSCTTY _IO('T', 14)
|
||||
|
||||
#define TIOCSTI _IOW('T', 18, char)
|
||||
#define TIOCMGET _IOR('T', 21, unsigned int)
|
||||
#define TIOCMBIS _IOW('T', 22, unsigned int)
|
||||
#define TIOCMBIC _IOW('T', 23, unsigned int)
|
||||
#define TIOCMSET _IOW('T', 24, unsigned int)
|
||||
#define TIOCM_LE 0x001
|
||||
#define TIOCM_DTR 0x002
|
||||
#define TIOCM_RTS 0x004
|
||||
#define TIOCM_ST 0x008
|
||||
#define TIOCM_SR 0x010
|
||||
#define TIOCM_CTS 0x020
|
||||
#define TIOCM_CAR 0x040
|
||||
#define TIOCM_RNG 0x080
|
||||
#define TIOCM_DSR 0x100
|
||||
#define TIOCM_CD TIOCM_CAR
|
||||
#define TIOCM_RI TIOCM_RNG
|
||||
|
||||
#define TIOCGSOFTCAR _IOR('T', 25, unsigned int)
|
||||
#define TIOCSSOFTCAR _IOW('T', 26, unsigned int)
|
||||
#define TIOCLINUX _IOW('T', 28, char)
|
||||
#define TIOCCONS _IO('T', 29)
|
||||
#define TIOCGSERIAL 0x803C541E
|
||||
#define TIOCSSERIAL 0x403C541F
|
||||
#define TIOCPKT _IOW('T', 32, int)
|
||||
#define TIOCPKT_DATA 0
|
||||
#define TIOCPKT_FLUSHREAD 1
|
||||
#define TIOCPKT_FLUSHWRITE 2
|
||||
#define TIOCPKT_STOP 4
|
||||
#define TIOCPKT_START 8
|
||||
#define TIOCPKT_NOSTOP 16
|
||||
#define TIOCPKT_DOSTOP 32
|
||||
|
||||
#define TIOCNOTTY _IO('T', 34)
|
||||
#define TIOCSETD _IOW('T', 35, int)
|
||||
#define TIOCGETD _IOR('T', 36, int)
|
||||
#define TCSBRKP _IOW('T', 37, int)
|
||||
#define TIOCSBRK _IO('T', 39)
|
||||
#define TIOCCBRK _IO('T', 40)
|
||||
#define TIOCGSID _IOR('T', 41, pid_t)
|
||||
#define TCGETS2 _IOR('T', 42, struct termios2)
|
||||
#define TCSETS2 _IOW('T', 43, struct termios2)
|
||||
#define TCSETSW2 _IOW('T', 44, struct termios2)
|
||||
#define TCSETSF2 _IOW('T', 45, struct termios2)
|
||||
#define TIOCGPTN _IOR('T',0x30, unsigned int)
|
||||
#define TIOCSPTLCK _IOW('T',0x31, int)
|
||||
|
||||
#define TIOCSERCONFIG _IO('T', 83)
|
||||
#define TIOCSERGWILD _IOR('T', 84, int)
|
||||
#define TIOCSERSWILD _IOW('T', 85, int)
|
||||
#define TIOCGLCKTRMIOS 0x5456
|
||||
#define TIOCSLCKTRMIOS 0x5457
|
||||
#define TIOCSERGSTRUCT 0x80d85458
|
||||
#define TIOCSERGETLSR _IOR('T', 89, unsigned int)
|
||||
|
||||
#define TIOCSER_TEMT 0x01
|
||||
#define TIOCSERGETMULTI 0x80A8545A
|
||||
#define TIOCSERSETMULTI 0x40A8545B
|
||||
|
||||
#define TIOCMIWAIT _IO('T', 92)
|
||||
#define TIOCGICOUNT 0x545D
|
||||
|
||||
#endif
|
30
libc/kernel/arch-sh/asm/ipcbuf.h
Normal file
30
libc/kernel/arch-sh/asm/ipcbuf.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IPCBUF_H__
|
||||
#define __ASM_SH_IPCBUF_H__
|
||||
|
||||
struct ipc64_perm
|
||||
{
|
||||
__kernel_key_t key;
|
||||
__kernel_uid32_t uid;
|
||||
__kernel_gid32_t gid;
|
||||
__kernel_uid32_t cuid;
|
||||
__kernel_gid32_t cgid;
|
||||
__kernel_mode_t mode;
|
||||
unsigned short __pad1;
|
||||
unsigned short seq;
|
||||
unsigned short __pad2;
|
||||
unsigned long __unused1;
|
||||
unsigned long __unused2;
|
||||
};
|
||||
|
||||
#endif
|
26
libc/kernel/arch-sh/asm/irq.h
Normal file
26
libc/kernel/arch-sh/asm/irq.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IRQ_H
|
||||
#define __ASM_SH_IRQ_H
|
||||
|
||||
#include <asm/machvec.h>
|
||||
|
||||
#define NR_IRQS 256
|
||||
|
||||
#define evt2irq(evt) (((evt) >> 5) - 16)
|
||||
#define irq2evt(irq) (((irq) + 16) << 5)
|
||||
|
||||
#define irq_canonicalize(irq) (irq)
|
||||
#define irq_demux(irq) sh_mv.mv_irq_demux(irq)
|
||||
#define irq_ctx_init(cpu) do { } while (0)
|
||||
#define irq_ctx_exit(cpu) do { } while (0)
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/irq_regs.h
Normal file
12
libc/kernel/arch-sh/asm/irq_regs.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/irq_regs.h>
|
20
libc/kernel/arch-sh/asm/irqflags.h
Normal file
20
libc/kernel/arch-sh/asm/irqflags.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IRQFLAGS_H
|
||||
#define __ASM_SH_IRQFLAGS_H
|
||||
|
||||
#include "irqflags_32.h"
|
||||
|
||||
#define raw_local_save_flags(flags) do { (flags) = __raw_local_save_flags(); } while (0)
|
||||
|
||||
#define raw_local_irq_save(flags) do { (flags) = __raw_local_irq_save(); } while (0)
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/irqflags_32.h
Normal file
15
libc/kernel/arch-sh/asm/irqflags_32.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IRQFLAGS_32_H
|
||||
#define __ASM_SH_IRQFLAGS_32_H
|
||||
|
||||
#endif
|
20
libc/kernel/arch-sh/asm/irqflags_64.h
Normal file
20
libc/kernel/arch-sh/asm/irqflags_64.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_IRQFLAGS_64_H
|
||||
#define __ASM_SH_IRQFLAGS_64_H
|
||||
|
||||
#include <cpu/registers.h>
|
||||
|
||||
#define SR_MASK_LL 0x00000000000000f0LL
|
||||
#define SR_BL_LL 0x0000000010000000LL
|
||||
|
||||
#endif
|
19
libc/kernel/arch-sh/asm/kdebug.h
Normal file
19
libc/kernel/arch-sh/asm/kdebug.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_KDEBUG_H
|
||||
#define __ASM_SH_KDEBUG_H
|
||||
|
||||
enum die_val {
|
||||
DIE_TRAP,
|
||||
};
|
||||
|
||||
#endif
|
28
libc/kernel/arch-sh/asm/kexec.h
Normal file
28
libc/kernel/arch-sh/asm/kexec.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_KEXEC_H
|
||||
#define __ASM_SH_KEXEC_H
|
||||
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/string.h>
|
||||
|
||||
#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
|
||||
|
||||
#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
|
||||
|
||||
#define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
||||
|
||||
#define KEXEC_CONTROL_PAGE_SIZE 4096
|
||||
|
||||
#define KEXEC_ARCH KEXEC_ARCH_SH
|
||||
|
||||
#endif
|
38
libc/kernel/arch-sh/asm/kgdb.h
Normal file
38
libc/kernel/arch-sh/asm/kgdb.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __KGDB_H
|
||||
#define __KGDB_H
|
||||
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
struct kgdb_regs {
|
||||
unsigned long regs[16];
|
||||
unsigned long pc;
|
||||
unsigned long pr;
|
||||
unsigned long sr;
|
||||
unsigned long gbr;
|
||||
unsigned long mach;
|
||||
unsigned long macl;
|
||||
unsigned long vbr;
|
||||
};
|
||||
|
||||
typedef void (kgdb_debug_hook_t)(struct pt_regs *regs);
|
||||
typedef void (kgdb_bus_error_hook_t)(void);
|
||||
|
||||
struct console;
|
||||
|
||||
#define _JBLEN 9
|
||||
typedef int jmp_buf[_JBLEN];
|
||||
|
||||
#define breakpoint() __asm__ __volatile__("trapa #0x3c")
|
||||
|
||||
#endif
|
36
libc/kernel/arch-sh/asm/kmap_types.h
Normal file
36
libc/kernel/arch-sh/asm/kmap_types.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __SH_KMAP_TYPES_H
|
||||
#define __SH_KMAP_TYPES_H
|
||||
|
||||
#define D(n)
|
||||
|
||||
enum km_type {
|
||||
D(0) KM_BOUNCE_READ,
|
||||
D(1) KM_SKB_SUNRPC_DATA,
|
||||
D(2) KM_SKB_DATA_SOFTIRQ,
|
||||
D(3) KM_USER0,
|
||||
D(4) KM_USER1,
|
||||
D(5) KM_BIO_SRC_IRQ,
|
||||
D(6) KM_BIO_DST_IRQ,
|
||||
D(7) KM_PTE0,
|
||||
D(8) KM_PTE1,
|
||||
D(9) KM_IRQ0,
|
||||
D(10) KM_IRQ1,
|
||||
D(11) KM_SOFTIRQ0,
|
||||
D(12) KM_SOFTIRQ1,
|
||||
D(13) KM_TYPE_NR
|
||||
};
|
||||
|
||||
#undef D
|
||||
|
||||
#endif
|
25
libc/kernel/arch-sh/asm/lboxre2.h
Normal file
25
libc/kernel/arch-sh/asm/lboxre2.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_LBOXRE2_H
|
||||
#define __ASM_SH_LBOXRE2_H
|
||||
|
||||
#define IRQ_CF1 9
|
||||
#define IRQ_CF0 10
|
||||
#define IRQ_INTD 11
|
||||
#define IRQ_ETH1 12
|
||||
#define IRQ_ETH0 13
|
||||
#define IRQ_INTA 14
|
||||
|
||||
#define __IO_PREFIX lboxre2
|
||||
#include <asm/io_generic.h>
|
||||
|
||||
#endif
|
18
libc/kernel/arch-sh/asm/linkage.h
Normal file
18
libc/kernel/arch-sh/asm/linkage.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_LINKAGE_H
|
||||
#define __ASM_LINKAGE_H
|
||||
|
||||
#define __ALIGN .balign 4
|
||||
#define __ALIGN_STR ".balign 4"
|
||||
|
||||
#endif
|
18
libc/kernel/arch-sh/asm/local.h
Normal file
18
libc/kernel/arch-sh/asm/local.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_LOCAL_H
|
||||
#define __ASM_SH_LOCAL_H
|
||||
|
||||
#include <asm-generic/local.h>
|
||||
|
||||
#endif
|
||||
|
69
libc/kernel/arch-sh/asm/machvec.h
Normal file
69
libc/kernel/arch-sh/asm/machvec.h
Normal file
|
@ -0,0 +1,69 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_MACHVEC_H
|
||||
#define _ASM_SH_MACHVEC_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <linux/time.h>
|
||||
#include <asm/machtypes.h>
|
||||
|
||||
struct device;
|
||||
|
||||
struct sh_machine_vector {
|
||||
void (*mv_setup)(char **cmdline_p);
|
||||
const char *mv_name;
|
||||
int mv_nr_irqs;
|
||||
|
||||
u8 (*mv_inb)(unsigned long);
|
||||
u16 (*mv_inw)(unsigned long);
|
||||
u32 (*mv_inl)(unsigned long);
|
||||
void (*mv_outb)(u8, unsigned long);
|
||||
void (*mv_outw)(u16, unsigned long);
|
||||
void (*mv_outl)(u32, unsigned long);
|
||||
|
||||
u8 (*mv_inb_p)(unsigned long);
|
||||
u16 (*mv_inw_p)(unsigned long);
|
||||
u32 (*mv_inl_p)(unsigned long);
|
||||
void (*mv_outb_p)(u8, unsigned long);
|
||||
void (*mv_outw_p)(u16, unsigned long);
|
||||
void (*mv_outl_p)(u32, unsigned long);
|
||||
|
||||
void (*mv_insb)(unsigned long, void *dst, unsigned long count);
|
||||
void (*mv_insw)(unsigned long, void *dst, unsigned long count);
|
||||
void (*mv_insl)(unsigned long, void *dst, unsigned long count);
|
||||
void (*mv_outsb)(unsigned long, const void *src, unsigned long count);
|
||||
void (*mv_outsw)(unsigned long, const void *src, unsigned long count);
|
||||
void (*mv_outsl)(unsigned long, const void *src, unsigned long count);
|
||||
|
||||
u8 (*mv_readb)(void __iomem *);
|
||||
u16 (*mv_readw)(void __iomem *);
|
||||
u32 (*mv_readl)(void __iomem *);
|
||||
void (*mv_writeb)(u8, void __iomem *);
|
||||
void (*mv_writew)(u16, void __iomem *);
|
||||
void (*mv_writel)(u32, void __iomem *);
|
||||
|
||||
int (*mv_irq_demux)(int irq);
|
||||
|
||||
void (*mv_init_irq)(void);
|
||||
void (*mv_init_pci)(void);
|
||||
|
||||
void (*mv_heartbeat)(void);
|
||||
|
||||
void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
|
||||
void (*mv_ioport_unmap)(void __iomem *);
|
||||
};
|
||||
|
||||
#define get_system_type() sh_mv.mv_name
|
||||
|
||||
#define __initmv __used __section(.machvec.init)
|
||||
|
||||
#endif
|
57
libc/kernel/arch-sh/asm/magicpanelr2.h
Normal file
57
libc/kernel/arch-sh/asm/magicpanelr2.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MAGICPANELR2_H
|
||||
#define __ASM_SH_MAGICPANELR2_H
|
||||
|
||||
#include <asm/gpio.h>
|
||||
|
||||
#define __IO_PREFIX mpr2
|
||||
#include <asm/io_generic.h>
|
||||
|
||||
#define SETBITS_OUTB(mask, reg) ctrl_outb(ctrl_inb(reg) | mask, reg)
|
||||
#define SETBITS_OUTW(mask, reg) ctrl_outw(ctrl_inw(reg) | mask, reg)
|
||||
#define SETBITS_OUTL(mask, reg) ctrl_outl(ctrl_inl(reg) | mask, reg)
|
||||
#define CLRBITS_OUTB(mask, reg) ctrl_outb(ctrl_inb(reg) & ~mask, reg)
|
||||
#define CLRBITS_OUTW(mask, reg) ctrl_outw(ctrl_inw(reg) & ~mask, reg)
|
||||
#define CLRBITS_OUTL(mask, reg) ctrl_outl(ctrl_inl(reg) & ~mask, reg)
|
||||
|
||||
#define PA_LED PORT_PADR
|
||||
|
||||
#define CMNCR 0xA4FD0000UL
|
||||
#define CS0BCR 0xA4FD0004UL
|
||||
#define CS2BCR 0xA4FD0008UL
|
||||
#define CS3BCR 0xA4FD000CUL
|
||||
#define CS4BCR 0xA4FD0010UL
|
||||
#define CS5ABCR 0xA4FD0014UL
|
||||
#define CS5BBCR 0xA4FD0018UL
|
||||
#define CS6ABCR 0xA4FD001CUL
|
||||
#define CS6BBCR 0xA4FD0020UL
|
||||
#define CS0WCR 0xA4FD0024UL
|
||||
#define CS2WCR 0xA4FD0028UL
|
||||
#define CS3WCR 0xA4FD002CUL
|
||||
#define CS4WCR 0xA4FD0030UL
|
||||
#define CS5AWCR 0xA4FD0034UL
|
||||
#define CS5BWCR 0xA4FD0038UL
|
||||
#define CS6AWCR 0xA4FD003CUL
|
||||
#define CS6BWCR 0xA4FD0040UL
|
||||
|
||||
#define PORT_UTRCTL 0xA405012CUL
|
||||
#define PORT_UCLKCR_W 0xA40A0008UL
|
||||
|
||||
#define INTC_ICR0 0xA414FEE0UL
|
||||
#define INTC_ICR1 0xA4140010UL
|
||||
#define INTC_ICR2 0xA4140012UL
|
||||
|
||||
#define MPR2_MTD_BOOTLOADER_SIZE 0x00060000UL
|
||||
#define MPR2_MTD_KERNEL_SIZE 0x00200000UL
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/mc146818rtc.h
Normal file
15
libc/kernel/arch-sh/asm/mc146818rtc.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_MC146818RTC_H
|
||||
#define _ASM_MC146818RTC_H
|
||||
|
||||
#endif
|
51
libc/kernel/arch-sh/asm/microdev.h
Normal file
51
libc/kernel/arch-sh/asm/microdev.h
Normal file
|
@ -0,0 +1,51 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MICRODEV_H
|
||||
#define __ASM_SH_MICRODEV_H
|
||||
|
||||
#define MICRODEV_FPGA_INTC_BASE 0xa6110000ul
|
||||
#define MICRODEV_FPGA_INTENB_REG (MICRODEV_FPGA_INTC_BASE+0ul)
|
||||
#define MICRODEV_FPGA_INTDSB_REG (MICRODEV_FPGA_INTC_BASE+8ul)
|
||||
#define MICRODEV_FPGA_INTC_MASK(n) (1ul<<(n))
|
||||
#define MICRODEV_FPGA_INTPRI_REG(n) (MICRODEV_FPGA_INTC_BASE+0x10+((n)/8)*8)
|
||||
#define MICRODEV_FPGA_INTPRI_LEVEL(n,x) ((x)<<(((n)%8)*4))
|
||||
#define MICRODEV_FPGA_INTPRI_MASK(n) (MICRODEV_FPGA_INTPRI_LEVEL((n),0xful))
|
||||
#define MICRODEV_FPGA_INTSRC_REG (MICRODEV_FPGA_INTC_BASE+0x30ul)
|
||||
#define MICRODEV_FPGA_INTREQ_REG (MICRODEV_FPGA_INTC_BASE+0x38ul)
|
||||
|
||||
#define MICRODEV_LINUX_IRQ_KEYBOARD 1
|
||||
#define MICRODEV_LINUX_IRQ_SERIAL1 2
|
||||
#define MICRODEV_LINUX_IRQ_ETHERNET 3
|
||||
#define MICRODEV_LINUX_IRQ_SERIAL2 4
|
||||
#define MICRODEV_LINUX_IRQ_USB_HC 7
|
||||
#define MICRODEV_LINUX_IRQ_MOUSE 12
|
||||
#define MICRODEV_LINUX_IRQ_IDE2 13
|
||||
#define MICRODEV_LINUX_IRQ_IDE1 14
|
||||
|
||||
#define MICRODEV_FPGA_IRQ_KEYBOARD 1
|
||||
#define MICRODEV_FPGA_IRQ_SERIAL1 3
|
||||
#define MICRODEV_FPGA_IRQ_SERIAL2 4
|
||||
#define MICRODEV_FPGA_IRQ_MOUSE 12
|
||||
#define MICRODEV_FPGA_IRQ_IDE1 14
|
||||
#define MICRODEV_FPGA_IRQ_IDE2 15
|
||||
#define MICRODEV_FPGA_IRQ_USB_HC 16
|
||||
#define MICRODEV_FPGA_IRQ_ETHERNET 18
|
||||
|
||||
#define MICRODEV_IRQ_PCI_INTA 8
|
||||
#define MICRODEV_IRQ_PCI_INTB 9
|
||||
#define MICRODEV_IRQ_PCI_INTC 10
|
||||
#define MICRODEV_IRQ_PCI_INTD 11
|
||||
|
||||
#define __IO_PREFIX microdev
|
||||
#include <asm/io_generic.h>
|
||||
|
||||
#endif
|
57
libc/kernel/arch-sh/asm/migor.h
Normal file
57
libc/kernel/arch-sh/asm/migor.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MIGOR_H
|
||||
#define __ASM_SH_MIGOR_H
|
||||
|
||||
#include <asm/addrspace.h>
|
||||
|
||||
#define PORT_PACR 0xa4050100
|
||||
#define PORT_PDCR 0xa4050106
|
||||
#define PORT_PECR 0xa4050108
|
||||
#define PORT_PHCR 0xa405010e
|
||||
#define PORT_PJCR 0xa4050110
|
||||
#define PORT_PKCR 0xa4050112
|
||||
#define PORT_PLCR 0xa4050114
|
||||
#define PORT_PMCR 0xa4050116
|
||||
#define PORT_PRCR 0xa405011c
|
||||
#define PORT_PTCR 0xa4050140
|
||||
#define PORT_PUCR 0xa4050142
|
||||
#define PORT_PVCR 0xa4050144
|
||||
#define PORT_PWCR 0xa4050146
|
||||
#define PORT_PXCR 0xa4050148
|
||||
#define PORT_PYCR 0xa405014a
|
||||
#define PORT_PZCR 0xa405014c
|
||||
#define PORT_PADR 0xa4050120
|
||||
#define PORT_PHDR 0xa405012e
|
||||
#define PORT_PTDR 0xa4050160
|
||||
#define PORT_PWDR 0xa4050166
|
||||
|
||||
#define PORT_HIZCRA 0xa4050158
|
||||
#define PORT_HIZCRC 0xa405015c
|
||||
|
||||
#define PORT_MSELCRB 0xa4050182
|
||||
|
||||
#define PORT_PSELA 0xa405014e
|
||||
#define PORT_PSELB 0xa4050150
|
||||
#define PORT_PSELC 0xa4050152
|
||||
#define PORT_PSELD 0xa4050154
|
||||
#define PORT_PSELE 0xa4050156
|
||||
|
||||
#define PORT_HIZCRA 0xa4050158
|
||||
#define PORT_HIZCRB 0xa405015a
|
||||
#define PORT_HIZCRC 0xa405015c
|
||||
|
||||
#define BSC_CS6ABCR 0xfec1001c
|
||||
|
||||
#include <asm/sh_mobile_lcdc.h>
|
||||
|
||||
#endif
|
28
libc/kernel/arch-sh/asm/mman.h
Normal file
28
libc/kernel/arch-sh/asm/mman.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MMAN_H
|
||||
#define __ASM_SH_MMAN_H
|
||||
|
||||
#include <asm-generic/mman.h>
|
||||
|
||||
#define MAP_GROWSDOWN 0x0100
|
||||
#define MAP_DENYWRITE 0x0800
|
||||
#define MAP_EXECUTABLE 0x1000
|
||||
#define MAP_LOCKED 0x2000
|
||||
#define MAP_NORESERVE 0x4000
|
||||
#define MAP_POPULATE 0x8000
|
||||
#define MAP_NONBLOCK 0x10000
|
||||
|
||||
#define MCL_CURRENT 1
|
||||
#define MCL_FUTURE 2
|
||||
|
||||
#endif
|
61
libc/kernel/arch-sh/asm/mmu.h
Normal file
61
libc/kernel/arch-sh/asm/mmu.h
Normal file
|
@ -0,0 +1,61 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __MMU_H
|
||||
#define __MMU_H
|
||||
|
||||
typedef unsigned long mm_context_id_t[NR_CPUS];
|
||||
|
||||
typedef struct {
|
||||
mm_context_id_t id;
|
||||
void *vdso;
|
||||
} mm_context_t;
|
||||
|
||||
#define PMB_PASCR 0xff000070
|
||||
#define PMB_IRMCR 0xff000078
|
||||
|
||||
#define PMB_ADDR 0xf6100000
|
||||
#define PMB_DATA 0xf7100000
|
||||
#define PMB_ENTRY_MAX 16
|
||||
#define PMB_E_MASK 0x0000000f
|
||||
#define PMB_E_SHIFT 8
|
||||
|
||||
#define PMB_SZ_16M 0x00000000
|
||||
#define PMB_SZ_64M 0x00000010
|
||||
#define PMB_SZ_128M 0x00000080
|
||||
#define PMB_SZ_512M 0x00000090
|
||||
#define PMB_SZ_MASK PMB_SZ_512M
|
||||
#define PMB_C 0x00000008
|
||||
#define PMB_WT 0x00000001
|
||||
#define PMB_UB 0x00000200
|
||||
#define PMB_V 0x00000100
|
||||
|
||||
#define PMB_NO_ENTRY (-1)
|
||||
|
||||
struct pmb_entry;
|
||||
|
||||
struct pmb_entry {
|
||||
unsigned long vpn;
|
||||
unsigned long ppn;
|
||||
unsigned long flags;
|
||||
|
||||
int entry;
|
||||
|
||||
struct pmb_entry *next;
|
||||
|
||||
struct pmb_entry *link;
|
||||
};
|
||||
|
||||
struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn,
|
||||
unsigned long flags);
|
||||
|
||||
#endif
|
||||
|
15
libc/kernel/arch-sh/asm/mmu_context.h
Normal file
15
libc/kernel/arch-sh/asm/mmu_context.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MMU_CONTEXT_H
|
||||
#define __ASM_SH_MMU_CONTEXT_H
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/mmu_context_32.h
Normal file
15
libc/kernel/arch-sh/asm/mmu_context_32.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MMU_CONTEXT_32_H
|
||||
#define __ASM_SH_MMU_CONTEXT_32_H
|
||||
|
||||
#endif
|
24
libc/kernel/arch-sh/asm/mmu_context_64.h
Normal file
24
libc/kernel/arch-sh/asm/mmu_context_64.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MMU_CONTEXT_64_H
|
||||
#define __ASM_SH_MMU_CONTEXT_64_H
|
||||
|
||||
#include <cpu/registers.h>
|
||||
#include <asm/cacheflush.h>
|
||||
|
||||
#define SR_ASID_MASK 0xffffffffff00ffffULL
|
||||
#define SR_ASID_SHIFT 16
|
||||
|
||||
#define set_TTB(pgd) (mmu_pdtp_cache = (pgd))
|
||||
#define get_TTB() (mmu_pdtp_cache)
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/mmzone.h
Normal file
15
libc/kernel/arch-sh/asm/mmzone.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MMZONE_H
|
||||
#define __ASM_SH_MMZONE_H
|
||||
|
||||
#endif
|
27
libc/kernel/arch-sh/asm/module.h
Normal file
27
libc/kernel/arch-sh/asm/module.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _ASM_SH_MODULE_H
|
||||
#define _ASM_SH_MODULE_H
|
||||
|
||||
struct mod_arch_specific {
|
||||
|
||||
};
|
||||
|
||||
#define Elf_Shdr Elf32_Shdr
|
||||
#define Elf_Sym Elf32_Sym
|
||||
#define Elf_Ehdr Elf32_Ehdr
|
||||
|
||||
#define MODULE_PROC_FAMILY "SH4LE "
|
||||
|
||||
#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
|
||||
|
||||
#endif
|
32
libc/kernel/arch-sh/asm/msgbuf.h
Normal file
32
libc/kernel/arch-sh/asm/msgbuf.h
Normal file
|
@ -0,0 +1,32 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_MSGBUF_H
|
||||
#define __ASM_SH_MSGBUF_H
|
||||
|
||||
struct msqid64_ds {
|
||||
struct ipc64_perm msg_perm;
|
||||
__kernel_time_t msg_stime;
|
||||
unsigned long __unused1;
|
||||
__kernel_time_t msg_rtime;
|
||||
unsigned long __unused2;
|
||||
__kernel_time_t msg_ctime;
|
||||
unsigned long __unused3;
|
||||
unsigned long msg_cbytes;
|
||||
unsigned long msg_qnum;
|
||||
unsigned long msg_qbytes;
|
||||
__kernel_pid_t msg_lspid;
|
||||
__kernel_pid_t msg_lrpid;
|
||||
unsigned long __unused4;
|
||||
unsigned long __unused5;
|
||||
};
|
||||
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/mutex.h
Normal file
12
libc/kernel/arch-sh/asm/mutex.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/mutex-dec.h>
|
71
libc/kernel/arch-sh/asm/page.h
Normal file
71
libc/kernel/arch-sh/asm/page.h
Normal file
|
@ -0,0 +1,71 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PAGE_H
|
||||
#define __ASM_SH_PAGE_H
|
||||
|
||||
#include <linux/const.h>
|
||||
|
||||
#define PAGE_SHIFT 12
|
||||
|
||||
#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
||||
#define PAGE_MASK (~(PAGE_SIZE-1))
|
||||
#define PTE_MASK PAGE_MASK
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
struct page;
|
||||
struct vm_area_struct;
|
||||
|
||||
#define __HAVE_ARCH_COPY_USER_HIGHPAGE
|
||||
|
||||
typedef struct { unsigned long pte_low; } pte_t;
|
||||
typedef struct { unsigned long pgprot; } pgprot_t;
|
||||
typedef struct { unsigned long pgd; } pgd_t;
|
||||
#define pte_val(x) ((x).pte_low)
|
||||
#define __pte(x) ((pte_t) { (x) } )
|
||||
|
||||
#define pgd_val(x) ((x).pgd)
|
||||
#define pgprot_val(x) ((x).pgprot)
|
||||
|
||||
#define __pgd(x) ((pgd_t) { (x) } )
|
||||
#define __pgprot(x) ((pgprot_t) { (x) } )
|
||||
|
||||
typedef struct page *pgtable_t;
|
||||
|
||||
#endif
|
||||
|
||||
#define __MEMORY_START CONFIG_MEMORY_START
|
||||
#define __MEMORY_SIZE CONFIG_MEMORY_SIZE
|
||||
|
||||
#define PAGE_OFFSET CONFIG_PAGE_OFFSET
|
||||
|
||||
#define __pa(x) ((unsigned long)(x)-PAGE_OFFSET)
|
||||
#define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET))
|
||||
|
||||
#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
|
||||
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
|
||||
|
||||
#define PFN_START (__MEMORY_START >> PAGE_SHIFT)
|
||||
#define ARCH_PFN_OFFSET (PFN_START)
|
||||
#define virt_to_page(kaddr) pfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
|
||||
#define pfn_valid(pfn) ((pfn) >= min_low_pfn && (pfn) < max_low_pfn)
|
||||
#define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
|
||||
|
||||
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
|
||||
|
||||
#include <asm-generic/memory_model.h>
|
||||
|
||||
#define __HAVE_ARCH_GATE_AREA
|
||||
|
||||
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
|
||||
|
||||
#endif
|
26
libc/kernel/arch-sh/asm/param.h
Normal file
26
libc/kernel/arch-sh/asm/param.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PARAM_H
|
||||
#define __ASM_SH_PARAM_H
|
||||
|
||||
#ifndef HZ
|
||||
#define HZ 100
|
||||
#endif
|
||||
|
||||
#define EXEC_PAGESIZE 4096
|
||||
|
||||
#ifndef NOGROUP
|
||||
#define NOGROUP (-1)
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/parport.h
Normal file
15
libc/kernel/arch-sh/asm/parport.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PARPORT_H
|
||||
#define __ASM_SH_PARPORT_H
|
||||
|
||||
#endif
|
20
libc/kernel/arch-sh/asm/pci.h
Normal file
20
libc/kernel/arch-sh/asm/pci.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PCI_H
|
||||
#define __ASM_SH_PCI_H
|
||||
|
||||
#include <asm-generic/pci.h>
|
||||
|
||||
#include <asm-generic/pci-dma-compat.h>
|
||||
|
||||
#endif
|
||||
|
17
libc/kernel/arch-sh/asm/percpu.h
Normal file
17
libc/kernel/arch-sh/asm/percpu.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ARCH_SH_PERCPU
|
||||
#define __ARCH_SH_PERCPU
|
||||
|
||||
#include <asm-generic/percpu.h>
|
||||
|
||||
#endif
|
25
libc/kernel/arch-sh/asm/pgalloc.h
Normal file
25
libc/kernel/arch-sh/asm/pgalloc.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PGALLOC_H
|
||||
#define __ASM_SH_PGALLOC_H
|
||||
|
||||
#include <linux/quicklist.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#define QUICK_PGD 0
|
||||
#define QUICK_PT 1
|
||||
|
||||
#define pmd_pgtable(pmd) pmd_page(pmd)
|
||||
#define __pte_free_tlb(tlb,pte) do { pgtable_page_dtor(pte); tlb_remove_page((tlb), (pte)); } while (0)
|
||||
#define pmd_free(mm, x) do { } while (0)
|
||||
#define __pmd_free_tlb(tlb,x) do { } while (0)
|
||||
#endif
|
93
libc/kernel/arch-sh/asm/pgtable.h
Normal file
93
libc/kernel/arch-sh/asm/pgtable.h
Normal file
|
@ -0,0 +1,93 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PGTABLE_H
|
||||
#define __ASM_SH_PGTABLE_H
|
||||
|
||||
#include <asm-generic/pgtable-nopmd.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <asm/addrspace.h>
|
||||
#include <asm/fixmap.h>
|
||||
|
||||
#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page))
|
||||
|
||||
#endif
|
||||
|
||||
#define NEFF 32
|
||||
#define NEFF_SIGN (1LL << (NEFF - 1))
|
||||
#define NEFF_MASK (-1LL << NEFF)
|
||||
|
||||
#define NPHYS 29
|
||||
|
||||
#define NPHYS_SIGN (1LL << (NPHYS - 1))
|
||||
#define NPHYS_MASK (-1LL << NPHYS)
|
||||
|
||||
#define PTE_MAGNITUDE 2
|
||||
#define PTE_SHIFT PAGE_SHIFT
|
||||
#define PTE_BITS (PTE_SHIFT - PTE_MAGNITUDE)
|
||||
|
||||
#define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS)
|
||||
#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
|
||||
#define PGDIR_MASK (~(PGDIR_SIZE-1))
|
||||
|
||||
#define PTRS_PER_PTE (PAGE_SIZE / (1 << PTE_MAGNITUDE))
|
||||
#define PTRS_PER_PGD (PAGE_SIZE / sizeof(pgd_t))
|
||||
|
||||
#define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
||||
#define FIRST_USER_ADDRESS 0
|
||||
|
||||
#define PHYS_ADDR_MASK 0x1fffffff
|
||||
|
||||
#define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK)
|
||||
|
||||
#define VMALLOC_START (P3SEG)
|
||||
#define VMALLOC_END (FIXADDR_START-2*PAGE_SIZE)
|
||||
|
||||
#include <asm/pgtable_32.h>
|
||||
|
||||
#define __P000 PAGE_NONE
|
||||
#define __P001 PAGE_READONLY
|
||||
#define __P010 PAGE_COPY
|
||||
#define __P011 PAGE_COPY
|
||||
#define __P100 PAGE_EXECREAD
|
||||
#define __P101 PAGE_EXECREAD
|
||||
#define __P110 PAGE_COPY
|
||||
#define __P111 PAGE_COPY
|
||||
|
||||
#define __S000 PAGE_NONE
|
||||
#define __S001 PAGE_READONLY
|
||||
#define __S010 PAGE_WRITEONLY
|
||||
#define __S011 PAGE_SHARED
|
||||
#define __S100 PAGE_EXECREAD
|
||||
#define __S101 PAGE_EXECREAD
|
||||
#define __S110 PAGE_RWX
|
||||
#define __S111 PAGE_RWX
|
||||
|
||||
typedef pte_t *pte_addr_t;
|
||||
|
||||
#define kern_addr_valid(addr) (1)
|
||||
|
||||
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) remap_pfn_range(vma, vaddr, pfn, size, prot)
|
||||
|
||||
#define pte_pfn(x) ((unsigned long)(((x).pte_low >> PAGE_SHIFT)))
|
||||
|
||||
#define pgtable_cache_init() do { } while (0)
|
||||
|
||||
struct mm_struct;
|
||||
#define __HAVE_ARCH_PTEP_GET_AND_CLEAR
|
||||
|
||||
struct vm_area_struct;
|
||||
|
||||
#include <asm-generic/pgtable.h>
|
||||
|
||||
#endif
|
152
libc/kernel/arch-sh/asm/pgtable_32.h
Normal file
152
libc/kernel/arch-sh/asm/pgtable_32.h
Normal file
|
@ -0,0 +1,152 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PGTABLE_32_H
|
||||
#define __ASM_SH_PGTABLE_32_H
|
||||
|
||||
#define _PAGE_WT 0x001
|
||||
#define _PAGE_HW_SHARED 0x002
|
||||
#define _PAGE_DIRTY 0x004
|
||||
#define _PAGE_CACHABLE 0x008
|
||||
#define _PAGE_SZ0 0x010
|
||||
#define _PAGE_RW 0x020
|
||||
#define _PAGE_USER 0x040
|
||||
#define _PAGE_SZ1 0x080
|
||||
#define _PAGE_PRESENT 0x100
|
||||
#define _PAGE_PROTNONE 0x200
|
||||
#define _PAGE_ACCESSED 0x400
|
||||
#define _PAGE_FILE _PAGE_WT
|
||||
|
||||
#define _PAGE_SZ_MASK (_PAGE_SZ0 | _PAGE_SZ1)
|
||||
#define _PAGE_PR_MASK (_PAGE_RW | _PAGE_USER)
|
||||
|
||||
#define _PAGE_EXT_ESZ0 0x0010
|
||||
#define _PAGE_EXT_ESZ1 0x0020
|
||||
#define _PAGE_EXT_ESZ2 0x0040
|
||||
#define _PAGE_EXT_ESZ3 0x0080
|
||||
|
||||
#define _PAGE_EXT_USER_EXEC 0x0100
|
||||
#define _PAGE_EXT_USER_WRITE 0x0200
|
||||
#define _PAGE_EXT_USER_READ 0x0400
|
||||
|
||||
#define _PAGE_EXT_KERN_EXEC 0x0800
|
||||
#define _PAGE_EXT_KERN_WRITE 0x1000
|
||||
#define _PAGE_EXT_KERN_READ 0x2000
|
||||
|
||||
#define _PAGE_EXT(x) ((unsigned long long)(x) << 32)
|
||||
|
||||
#define _PAGE_PCC_AREA5 0x00000000
|
||||
#define _PAGE_PCC_AREA6 0x80000000
|
||||
|
||||
#define _PAGE_PCC_IODYN 0x00000001
|
||||
#define _PAGE_PCC_IO8 0x20000000
|
||||
#define _PAGE_PCC_IO16 0x20000001
|
||||
#define _PAGE_PCC_COM8 0x40000000
|
||||
#define _PAGE_PCC_COM16 0x40000001
|
||||
#define _PAGE_PCC_ATR8 0x60000000
|
||||
#define _PAGE_PCC_ATR16 0x60000001
|
||||
|
||||
#define _PAGE_CLEAR_FLAGS (_PAGE_PROTNONE | _PAGE_ACCESSED | _PAGE_FILE)
|
||||
|
||||
#define _PAGE_FLAGS_HARDWARE_MASK (PHYS_ADDR_MASK & ~(_PAGE_CLEAR_FLAGS))
|
||||
|
||||
#define _PAGE_FLAGS_HARD _PAGE_SZ0
|
||||
|
||||
#ifndef _PAGE_SZHUGE
|
||||
#define _PAGE_SZHUGE (_PAGE_FLAGS_HARD)
|
||||
#endif
|
||||
|
||||
#define _PAGE_CHG_MASK (PTE_MASK | _PAGE_ACCESSED | _PAGE_CACHABLE | _PAGE_DIRTY)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_CACHABLE | _PAGE_ACCESSED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_CACHABLE | _PAGE_ACCESSED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | _PAGE_ACCESSED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | _PAGE_ACCESSED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_EXECREAD PAGE_READONLY
|
||||
#define PAGE_RWX PAGE_SHARED
|
||||
#define PAGE_WRITEONLY PAGE_SHARED
|
||||
|
||||
#define PAGE_KERNEL __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_CACHABLE | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_HW_SHARED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_KERNEL_NOCACHE __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_HW_SHARED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_KERNEL_RO __pgprot(_PAGE_PRESENT | _PAGE_CACHABLE | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_HW_SHARED | _PAGE_FLAGS_HARD)
|
||||
|
||||
#define PAGE_KERNEL_PCC(slot, type) __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_FLAGS_HARD | (slot ? _PAGE_PCC_AREA5 : _PAGE_PCC_AREA6) | (type))
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#define set_pte(pteptr, pteval) (*(pteptr) = pteval)
|
||||
|
||||
#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
|
||||
|
||||
#define set_pmd(pmdptr, pmdval) (*(pmdptr) = pmdval)
|
||||
|
||||
#define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << PAGE_SHIFT) | pgprot_val(prot))
|
||||
#define pfn_pmd(pfn, prot) __pmd(((unsigned long long)(pfn) << PAGE_SHIFT) | pgprot_val(prot))
|
||||
|
||||
#define pte_none(x) (!pte_val(x))
|
||||
#define pte_present(x) ((x).pte_low & (_PAGE_PRESENT | _PAGE_PROTNONE))
|
||||
|
||||
#define pte_clear(mm,addr,xp) do { set_pte_at(mm, addr, xp, __pte(0)); } while (0)
|
||||
|
||||
#define pmd_none(x) (!pmd_val(x))
|
||||
#define pmd_present(x) (pmd_val(x))
|
||||
#define pmd_clear(xp) do { set_pmd(xp, __pmd(0)); } while (0)
|
||||
#define pmd_bad(x) (pmd_val(x) & ~PAGE_MASK)
|
||||
|
||||
#define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT))
|
||||
#define pte_page(x) pfn_to_page(pte_pfn(x))
|
||||
|
||||
#define pte_not_present(pte) (!((pte).pte_low & _PAGE_PRESENT))
|
||||
#define pte_dirty(pte) ((pte).pte_low & _PAGE_DIRTY)
|
||||
#define pte_young(pte) ((pte).pte_low & _PAGE_ACCESSED)
|
||||
#define pte_file(pte) ((pte).pte_low & _PAGE_FILE)
|
||||
#define pte_special(pte) (0)
|
||||
|
||||
#define pte_write(pte) ((pte).pte_low & _PAGE_RW)
|
||||
|
||||
#define PTE_BIT_FUNC(h,fn,op) static inline pte_t pte_##fn(pte_t pte) { pte.pte_##h op; return pte; }
|
||||
|
||||
#define pgprot_writecombine(prot) __pgprot(pgprot_val(prot) & ~_PAGE_CACHABLE)
|
||||
#define pgprot_noncached pgprot_writecombine
|
||||
#define mk_pte(page, pgprot) pfn_pte(page_to_pfn(page), (pgprot))
|
||||
#define pmd_page_vaddr(pmd) ((unsigned long)pmd_val(pmd))
|
||||
#define pmd_page(pmd) (virt_to_page(pmd_val(pmd)))
|
||||
#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
|
||||
#define pgd_offset(mm, address) ((mm)->pgd+pgd_index(address))
|
||||
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
|
||||
#define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
|
||||
#define pte_offset_kernel(dir, address) ((pte_t *) pmd_page_vaddr(*(dir)) + pte_index(address))
|
||||
#define pte_offset_map(dir, address) pte_offset_kernel(dir, address)
|
||||
#define pte_offset_map_nested(dir, address) pte_offset_kernel(dir, address)
|
||||
#define pte_unmap(pte) do { } while (0)
|
||||
#define pte_unmap_nested(pte) do { } while (0)
|
||||
#define pte_ERROR(e) printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
|
||||
#define pgd_ERROR(e) printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
|
||||
#define __swp_type(x) ((x).val & 0xff)
|
||||
#define __swp_offset(x) ((x).val >> 10)
|
||||
#define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) <<10})
|
||||
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 1 })
|
||||
#define __swp_entry_to_pte(x) ((pte_t) { (x).val << 1 })
|
||||
#define PTE_FILE_MAX_BITS 29
|
||||
#define pte_to_pgoff(pte) (pte_val(pte) >> 1)
|
||||
#define pgoff_to_pte(off) ((pte_t) { ((off) << 1) | _PAGE_FILE })
|
||||
#endif
|
||||
#endif
|
105
libc/kernel/arch-sh/asm/pgtable_64.h
Normal file
105
libc/kernel/arch-sh/asm/pgtable_64.h
Normal file
|
@ -0,0 +1,105 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PGTABLE_64_H
|
||||
#define __ASM_SH_PGTABLE_64_H
|
||||
|
||||
#include <linux/threads.h>
|
||||
#include <asm/processor.h>
|
||||
#include <asm/page.h>
|
||||
|
||||
#define pte_ERROR(e) printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e))
|
||||
#define pgd_ERROR(e) printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
|
||||
|
||||
#define set_pmd(pmdptr, pmdval) (*(pmdptr) = pmdval)
|
||||
|
||||
#define set_pte_at(mm,addr,ptep,pteval) set_pte(ptep,pteval)
|
||||
#define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1))
|
||||
#define __pgd_offset(address) pgd_index(address)
|
||||
#define pgd_offset(mm, address) ((mm)->pgd+pgd_index(address))
|
||||
#define pgd_offset_k(address) pgd_offset(&init_mm, address)
|
||||
#define _PMD_EMPTY 0x0
|
||||
#define pmd_present(pmd_entry) (pmd_val(pmd_entry) & _PAGE_PRESENT)
|
||||
#define pmd_clear(pmd_entry_p) (set_pmd((pmd_entry_p), __pmd(_PMD_EMPTY)))
|
||||
#define pmd_none(pmd_entry) (pmd_val((pmd_entry)) == _PMD_EMPTY)
|
||||
#define pmd_bad(pmd_entry) ((pmd_val(pmd_entry) & (~PAGE_MASK & ~_PAGE_USER)) != _KERNPG_TABLE)
|
||||
#define pmd_page_vaddr(pmd_entry) ((unsigned long) __va(pmd_val(pmd_entry) & PAGE_MASK))
|
||||
#define pmd_page(pmd) (virt_to_page(pmd_val(pmd)))
|
||||
#define pte_index(address) ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
|
||||
#define pte_offset_kernel(dir, addr) ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr)))
|
||||
#define pte_offset_map(dir,addr) pte_offset_kernel(dir, addr)
|
||||
#define pte_offset_map_nested(dir,addr) pte_offset_kernel(dir, addr)
|
||||
#define pte_unmap(pte) do { } while (0)
|
||||
#define pte_unmap_nested(pte) do { } while (0)
|
||||
#ifndef __ASSEMBLY__
|
||||
#define IOBASE_VADDR 0xff000000
|
||||
#define IOBASE_END 0xffffffff
|
||||
#define _PAGE_WT 0x001
|
||||
#define _PAGE_DEVICE 0x001
|
||||
#define _PAGE_CACHABLE 0x002
|
||||
#define _PAGE_PRESENT 0x004
|
||||
#define _PAGE_FILE 0x004
|
||||
#define _PAGE_SIZE0 0x008
|
||||
#define _PAGE_SIZE1 0x010
|
||||
#define _PAGE_SHARED 0x020
|
||||
#define _PAGE_READ 0x040
|
||||
#define _PAGE_EXECUTE 0x080
|
||||
#define _PAGE_WRITE 0x100
|
||||
#define _PAGE_USER 0x200
|
||||
#define _PAGE_DIRTY 0x400
|
||||
#define _PAGE_ACCESSED 0x800
|
||||
#define _PAGE_FLAGS_HARDWARE_MASK 0xfffffffffffff3dbLL
|
||||
#ifndef _PAGE_SZHUGE
|
||||
#define _PAGE_SZHUGE (0)
|
||||
#endif
|
||||
#define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_EXECUTE | _PAGE_CACHABLE | _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_SHARED)
|
||||
#define _PAGE_TABLE (_KERNPG_TABLE | _PAGE_USER)
|
||||
#define _PAGE_CHG_MASK (PTE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
|
||||
#define _PAGE_COMMON (_PAGE_PRESENT | _PAGE_USER | _PAGE_CACHABLE | _PAGE_ACCESSED)
|
||||
#define PAGE_NONE __pgprot(_PAGE_CACHABLE | _PAGE_ACCESSED)
|
||||
#define PAGE_SHARED __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_WRITE | _PAGE_SHARED)
|
||||
#define PAGE_EXECREAD __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_EXECUTE)
|
||||
#define PAGE_COPY PAGE_EXECREAD
|
||||
#define PAGE_READONLY __pgprot(_PAGE_COMMON | _PAGE_READ)
|
||||
#define PAGE_WRITEONLY __pgprot(_PAGE_COMMON | _PAGE_WRITE)
|
||||
#define PAGE_RWX __pgprot(_PAGE_COMMON | _PAGE_READ | _PAGE_WRITE | _PAGE_EXECUTE)
|
||||
#define PAGE_KERNEL __pgprot(_KERNPG_TABLE)
|
||||
#define PAGE_KERNEL_NOCACHE __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | _PAGE_EXECUTE | _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_SHARED)
|
||||
#define pgprot_noncached(x) __pgprot(((x).pgprot & ~(_PAGE_CACHABLE)) | _PAGE_DEVICE)
|
||||
#define pgprot_writecombine(prot) __pgprot(pgprot_val(prot) & ~_PAGE_CACHABLE)
|
||||
|
||||
#define __handle_bad_pmd(x) __handle_bad_pmd_kernel(x)
|
||||
|
||||
#define _PTE_EMPTY 0x0
|
||||
#define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
|
||||
#define pte_clear(mm,addr,xp) (set_pte_at(mm, addr, xp, __pte(_PTE_EMPTY)))
|
||||
#define pte_none(x) (pte_val(x) == _PTE_EMPTY)
|
||||
|
||||
#define pte_pagenr(x) (((unsigned long) (pte_val(x)) - __MEMORY_START) >> PAGE_SHIFT)
|
||||
|
||||
#define pte_page(x) (mem_map + pte_pagenr(x))
|
||||
|
||||
#define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT))
|
||||
|
||||
#define mk_pte(page,pgprot) ({ pte_t __pte; set_pte(&__pte, __pte((((page)-mem_map) << PAGE_SHIFT) | __MEMORY_START | pgprot_val((pgprot)))); __pte; })
|
||||
#define mk_pte_phys(physpage, pgprot) ({ pte_t __pte; set_pte(&__pte, __pte(physpage | pgprot_val(pgprot))); __pte; })
|
||||
#define __swp_type(x) (((x).val & 3) + (((x).val >> 1) & 0x3c))
|
||||
#define __swp_offset(x) ((x).val >> 8)
|
||||
#define __swp_entry(type, offset) ((swp_entry_t) { ((offset << 8) + ((type & 0x3c) << 1) + (type & 3)) })
|
||||
#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
||||
#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
|
||||
#define PTE_FILE_MAX_BITS 29
|
||||
#define pte_to_pgoff(pte) (pte_val(pte))
|
||||
#define pgoff_to_pte(off) ((pte_t) { (off) | _PAGE_FILE })
|
||||
#endif
|
||||
#define pfn_pte(pfn, prot) __pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
|
||||
#define pfn_pmd(pfn, prot) __pmd(((pfn) << PAGE_SHIFT) | pgprot_val(prot))
|
||||
#endif
|
15
libc/kernel/arch-sh/asm/pm.h
Normal file
15
libc/kernel/arch-sh/asm/pm.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_PM_H
|
||||
#define __ASM_SH_PM_H
|
||||
|
||||
#endif
|
12
libc/kernel/arch-sh/asm/poll.h
Normal file
12
libc/kernel/arch-sh/asm/poll.h
Normal file
|
@ -0,0 +1,12 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#include <asm-generic/poll.h>
|
16
libc/kernel/arch-sh/asm/posix_types.h
Normal file
16
libc/kernel/arch-sh/asm/posix_types.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifdef __SH5__
|
||||
#include "posix_types_64.h"
|
||||
#else
|
||||
#include "posix_types_32.h"
|
||||
#endif
|
122
libc/kernel/arch-sh/asm/posix_types_32.h
Normal file
122
libc/kernel/arch-sh/asm/posix_types_32.h
Normal file
|
@ -0,0 +1,122 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH_POSIX_TYPES_H
|
||||
#define __ASM_SH_POSIX_TYPES_H
|
||||
|
||||
typedef unsigned long __kernel_ino_t;
|
||||
typedef unsigned short __kernel_mode_t;
|
||||
typedef unsigned short __kernel_nlink_t;
|
||||
typedef long __kernel_off_t;
|
||||
typedef int __kernel_pid_t;
|
||||
typedef unsigned short __kernel_ipc_pid_t;
|
||||
typedef unsigned short __kernel_uid_t;
|
||||
typedef unsigned short __kernel_gid_t;
|
||||
typedef unsigned int __kernel_size_t;
|
||||
typedef int __kernel_ssize_t;
|
||||
typedef int __kernel_ptrdiff_t;
|
||||
typedef long __kernel_time_t;
|
||||
typedef long __kernel_suseconds_t;
|
||||
typedef long __kernel_clock_t;
|
||||
typedef int __kernel_timer_t;
|
||||
typedef int __kernel_clockid_t;
|
||||
typedef int __kernel_daddr_t;
|
||||
typedef char * __kernel_caddr_t;
|
||||
typedef unsigned short __kernel_uid16_t;
|
||||
typedef unsigned short __kernel_gid16_t;
|
||||
typedef unsigned int __kernel_uid32_t;
|
||||
typedef unsigned int __kernel_gid32_t;
|
||||
|
||||
typedef unsigned short __kernel_old_uid_t;
|
||||
typedef unsigned short __kernel_old_gid_t;
|
||||
typedef unsigned short __kernel_old_dev_t;
|
||||
|
||||
#ifdef __GNUC__
|
||||
typedef long long __kernel_loff_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#ifdef __USE_ALL
|
||||
int val[2];
|
||||
#else
|
||||
int __val[2];
|
||||
#endif
|
||||
} __kernel_fsid_t;
|
||||
|
||||
#if !defined(__GLIBC__) || __GLIBC__ < 2
|
||||
|
||||
#undef __FD_SET
|
||||
static __inline__ void __FD_SET(unsigned long __fd, __kernel_fd_set *__fdsetp)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
__fdsetp->fds_bits[__tmp] |= (1UL<<__rem);
|
||||
}
|
||||
|
||||
#undef __FD_CLR
|
||||
static __inline__ void __FD_CLR(unsigned long __fd, __kernel_fd_set *__fdsetp)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
__fdsetp->fds_bits[__tmp] &= ~(1UL<<__rem);
|
||||
}
|
||||
|
||||
#undef __FD_ISSET
|
||||
static __inline__ int __FD_ISSET(unsigned long __fd, const __kernel_fd_set *__p)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
return (__p->fds_bits[__tmp] & (1UL<<__rem)) != 0;
|
||||
}
|
||||
|
||||
#undef __FD_ZERO
|
||||
static __inline__ void __FD_ZERO(__kernel_fd_set *__p)
|
||||
{
|
||||
unsigned long *__tmp = __p->fds_bits;
|
||||
int __i;
|
||||
|
||||
if (__builtin_constant_p(__FDSET_LONGS)) {
|
||||
switch (__FDSET_LONGS) {
|
||||
case 16:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
__tmp[ 4] = 0; __tmp[ 5] = 0;
|
||||
__tmp[ 6] = 0; __tmp[ 7] = 0;
|
||||
__tmp[ 8] = 0; __tmp[ 9] = 0;
|
||||
__tmp[10] = 0; __tmp[11] = 0;
|
||||
__tmp[12] = 0; __tmp[13] = 0;
|
||||
__tmp[14] = 0; __tmp[15] = 0;
|
||||
return;
|
||||
|
||||
case 8:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
__tmp[ 4] = 0; __tmp[ 5] = 0;
|
||||
__tmp[ 6] = 0; __tmp[ 7] = 0;
|
||||
return;
|
||||
|
||||
case 4:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
__i = __FDSET_LONGS;
|
||||
while (__i) {
|
||||
__i--;
|
||||
*__tmp = 0;
|
||||
__tmp++;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
122
libc/kernel/arch-sh/asm/posix_types_64.h
Normal file
122
libc/kernel/arch-sh/asm/posix_types_64.h
Normal file
|
@ -0,0 +1,122 @@
|
|||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef __ASM_SH64_POSIX_TYPES_H
|
||||
#define __ASM_SH64_POSIX_TYPES_H
|
||||
|
||||
typedef unsigned long __kernel_ino_t;
|
||||
typedef unsigned short __kernel_mode_t;
|
||||
typedef unsigned short __kernel_nlink_t;
|
||||
typedef long __kernel_off_t;
|
||||
typedef int __kernel_pid_t;
|
||||
typedef unsigned short __kernel_ipc_pid_t;
|
||||
typedef unsigned short __kernel_uid_t;
|
||||
typedef unsigned short __kernel_gid_t;
|
||||
typedef long unsigned int __kernel_size_t;
|
||||
typedef int __kernel_ssize_t;
|
||||
typedef int __kernel_ptrdiff_t;
|
||||
typedef long __kernel_time_t;
|
||||
typedef long __kernel_suseconds_t;
|
||||
typedef long __kernel_clock_t;
|
||||
typedef int __kernel_timer_t;
|
||||
typedef int __kernel_clockid_t;
|
||||
typedef int __kernel_daddr_t;
|
||||
typedef char * __kernel_caddr_t;
|
||||
typedef unsigned short __kernel_uid16_t;
|
||||
typedef unsigned short __kernel_gid16_t;
|
||||
typedef unsigned int __kernel_uid32_t;
|
||||
typedef unsigned int __kernel_gid32_t;
|
||||
|
||||
typedef unsigned short __kernel_old_uid_t;
|
||||
typedef unsigned short __kernel_old_gid_t;
|
||||
typedef unsigned short __kernel_old_dev_t;
|
||||
|
||||
#ifdef __GNUC__
|
||||
typedef long long __kernel_loff_t;
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
#ifdef __USE_ALL
|
||||
int val[2];
|
||||
#else
|
||||
int __val[2];
|
||||
#endif
|
||||
} __kernel_fsid_t;
|
||||
|
||||
#if !defined(__GLIBC__) || __GLIBC__ < 2
|
||||
|
||||
#undef __FD_SET
|
||||
static __inline__ void __FD_SET(unsigned long __fd, __kernel_fd_set *__fdsetp)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
__fdsetp->fds_bits[__tmp] |= (1UL<<__rem);
|
||||
}
|
||||
|
||||
#undef __FD_CLR
|
||||
static __inline__ void __FD_CLR(unsigned long __fd, __kernel_fd_set *__fdsetp)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
__fdsetp->fds_bits[__tmp] &= ~(1UL<<__rem);
|
||||
}
|
||||
|
||||
#undef __FD_ISSET
|
||||
static __inline__ int __FD_ISSET(unsigned long __fd, const __kernel_fd_set *__p)
|
||||
{
|
||||
unsigned long __tmp = __fd / __NFDBITS;
|
||||
unsigned long __rem = __fd % __NFDBITS;
|
||||
return (__p->fds_bits[__tmp] & (1UL<<__rem)) != 0;
|
||||
}
|
||||
|
||||
#undef __FD_ZERO
|
||||
static __inline__ void __FD_ZERO(__kernel_fd_set *__p)
|
||||
{
|
||||
unsigned long *__tmp = __p->fds_bits;
|
||||
int __i;
|
||||
|
||||
if (__builtin_constant_p(__FDSET_LONGS)) {
|
||||
switch (__FDSET_LONGS) {
|
||||
case 16:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
__tmp[ 4] = 0; __tmp[ 5] = 0;
|
||||
__tmp[ 6] = 0; __tmp[ 7] = 0;
|
||||
__tmp[ 8] = 0; __tmp[ 9] = 0;
|
||||
__tmp[10] = 0; __tmp[11] = 0;
|
||||
__tmp[12] = 0; __tmp[13] = 0;
|
||||
__tmp[14] = 0; __tmp[15] = 0;
|
||||
return;
|
||||
|
||||
case 8:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
__tmp[ 4] = 0; __tmp[ 5] = 0;
|
||||
__tmp[ 6] = 0; __tmp[ 7] = 0;
|
||||
return;
|
||||
|
||||
case 4:
|
||||
__tmp[ 0] = 0; __tmp[ 1] = 0;
|
||||
__tmp[ 2] = 0; __tmp[ 3] = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
__i = __FDSET_LONGS;
|
||||
while (__i) {
|
||||
__i--;
|
||||
*__tmp = 0;
|
||||
__tmp++;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue