Commit 094167be authored by Mike Frysinger's avatar Mike Frysinger

Blackfin: convert simple headers to asm-generic

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 3be5646c
#ifndef __ASMBFIN_AUXVEC_H #include <asm-generic/auxvec.h>
#define __ASMBFIN_AUXVEC_H
#endif
/* #include <asm-generic/bugs.h>
* include/asm-blackfin/bugs.h
*
* Copyright (C) 1994 Linus Torvalds
*/
/*
* This is included by init/main.c to check for architecture-dependent bugs.
*
* Needs:
* void check_bugs(void);
*/
static void check_bugs(void)
{
}
#ifndef __BLACKFIN_CPUTIME_H
#define __BLACKFIN_CPUTIME_H
#include <asm-generic/cputime.h> #include <asm-generic/cputime.h>
#endif /* __BLACKFIN_CPUTIME_H */
#ifndef _BLACKFIN_CURRENT_H #include <asm-generic/current.h>
#define _BLACKFIN_CURRENT_H
/*
* current.h
* (C) Copyright 2000, Lineo, David McCullough <davidm@lineo.com>
*
* rather than dedicate a register (as the m68k source does), we
* just keep a global, we should probably just change it all to be
* current and lose _current_task.
*/
#include <linux/thread_info.h>
struct task_struct;
static inline struct task_struct *get_current(void) __attribute__ ((__const__));
static inline struct task_struct *get_current(void)
{
return (current_thread_info()->task);
}
#define current (get_current())
#endif /* _BLACKFIN_CURRENT_H */
/*
* Arch specific extensions to struct device
*
* This file is released under the GPLv2
*/
#include <asm-generic/device.h> #include <asm-generic/device.h>
#ifndef _ASM_EMERGENCY_RESTART_H
#define _ASM_EMERGENCY_RESTART_H
#include <asm-generic/emergency-restart.h> #include <asm-generic/emergency-restart.h>
#endif /* _ASM_EMERGENCY_RESTART_H */
#ifndef _BFIN_ERRNO_H #include <asm-generic/errno.h>
#define _BFIN_ERRNO_H
#include<asm-generic/errno.h>
#endif /* _BFIN_ERRNO_H */
#ifndef _ASM_FB_H_ #include <asm-generic/fb.h>
#define _ASM_FB_H_
#include <linux/fb.h>
#define fb_pgprotect(...) do {} while (0)
static inline int fb_is_primary_device(struct fb_info *info)
{
return 0;
}
#endif /* _ASM_FB_H_ */
#ifndef _ASM_FUTEX_H
#define _ASM_FUTEX_H
#include <asm-generic/futex.h> #include <asm-generic/futex.h>
#endif
#ifndef __ASM_BFIN_HW_IRQ_H #include <asm-generic/hw_irq.h>
#define __ASM_BFIN_HW_IRQ_H
/* Dummy include. */
#endif
#ifndef _ASM_KMAP_TYPES_H
#define _ASM_KMAP_TYPES_H
#include <asm-generic/kmap_types.h> #include <asm-generic/kmap_types.h>
#endif
#ifndef __BLACKFIN_LOCAL_H
#define __BLACKFIN_LOCAL_H
#include <asm-generic/local.h> #include <asm-generic/local.h>
#endif /* __BLACKFIN_LOCAL_H */
#ifndef _BLACKFIN_PARAM_H #include <asm-generic/param.h>
#define _BLACKFIN_PARAM_H
#ifdef __KERNEL__
#define HZ CONFIG_HZ
#define USER_HZ 100
#define CLOCKS_PER_SEC (USER_HZ)
#endif
#ifndef HZ
#define HZ 100
#endif
#define EXEC_PAGESIZE 4096
#ifndef NOGROUP
#define NOGROUP (-1)
#endif
#define MAXHOSTNAMELEN 64 /* max length of hostname */
#endif /* _BLACKFIN_PARAM_H */
#ifndef __ARCH_BLACKFIN_PERCPU__
#define __ARCH_BLACKFIN_PERCPU__
#include <asm-generic/percpu.h> #include <asm-generic/percpu.h>
#endif /* __ARCH_BLACKFIN_PERCPU__ */
#ifndef _BLACKFIN_PGALLOC_H #include <asm-generic/pgalloc.h>
#define _BLACKFIN_PGALLOC_H
#include <asm/setup.h>
#define check_pgt_cache() do { } while (0)
#endif /* _BLACKFIN_PGALLOC_H */
#ifndef _BFIN_RESOURCE_H
#define _BFIN_RESOURCE_H
#include <asm-generic/resource.h> #include <asm-generic/resource.h>
#endif /* _BFIN_RESOURCE_H */
/* #include <asm-generic/serial.h>
* include/asm-blackfin/serial.h
*/
#define SERIAL_EXTRA_IRQ_FLAGS IRQF_TRIGGER_HIGH #define SERIAL_EXTRA_IRQ_FLAGS IRQF_TRIGGER_HIGH
#define BASE_BAUD (1843200 / 16)
/* #include <asm-generic/setup.h>
** asm/setup.h -- Definition of the Linux/bfin setup information
**
** This file is subject to the terms and conditions of the GNU General Public
** License. See the file COPYING in the main directory of this archive
** for more details.
**
** Copyright Lineo, Inc 2001 Tony Kou
**
*/
#ifndef _BFIN_SETUP_H
#define _BFIN_SETUP_H
#define COMMAND_LINE_SIZE 512
#endif /* _BFIN_SETUP_H */
#ifndef _BFIN_STATFS_H
#define _BFIN_STATFS_H
#include <asm-generic/statfs.h> #include <asm-generic/statfs.h>
#endif /* _BFIN_STATFS_H */
#ifndef _ASM_BLACKFIN_TOPOLOGY_H
#define _ASM_BLACKFIN_TOPOLOGY_H
#include <asm-generic/topology.h> #include <asm-generic/topology.h>
#endif /* _ASM_BLACKFIN_TOPOLOGY_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment