Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
0f652859
Commit
0f652859
authored
Jun 13, 2009
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Blackfin: convert types to asm-generic
Signed-off-by:
Mike Frysinger
<
vapier@gentoo.org
>
parent
d5ce528c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
81 deletions
+12
-81
arch/blackfin/include/asm/posix_types.h
arch/blackfin/include/asm/posix_types.h
+11
-45
arch/blackfin/include/asm/types.h
arch/blackfin/include/asm/types.h
+1
-36
No files found.
arch/blackfin/include/asm/posix_types.h
View file @
0f652859
#ifndef __ARCH_BFIN_POSIX_TYPES_H
#define __ARCH_BFIN_POSIX_TYPES_H
/*
* This file is generally used by user-level software, so you need to
* be a little careful about namespace pollution etc. Also, we cannot
* assume GCC is being used.
*/
typedef
unsigned
long
__kernel_ino_t
;
typedef
unsigned
short
__kernel_mode_t
;
#define __kernel_mode_t __kernel_mode_t
typedef
unsigned
short
__kernel_nlink_t
;
typedef
long
__kernel_off_t
;
typedef
int
__kernel_pid_t
;
#define __kernel_nlink_t __kernel_nlink_t
typedef
unsigned
int
__kernel_ipc_pid_t
;
typedef
unsigned
int
__kernel_uid_t
;
typedef
unsigned
int
__kernel_gid_t
;
#define __kernel_ipc_pid_t __kernel_ipc_pid_t
typedef
unsigned
long
__kernel_size_t
;
typedef
long
__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
;
#define __kernel_size_t __kernel_size_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
#define __kernel_old_uid_t __kernel_old_uid_t
typedef
struct
{
int
val
[
2
];
}
__kernel_fsid_t
;
#if defined(__KERNEL__)
#undef __FD_SET
#define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d))
#undef __FD_CLR
#define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d))
#undef __FD_ISSET
#define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d))
#undef __FD_ZERO
#define __FD_ZERO(fdsetp) (memset (fdsetp, 0, sizeof(*(fd_set *)fdsetp)))
typedef
unsigned
short
__kernel_old_dev_t
;
#define __kernel_old_dev_t __kernel_old_dev_t
#
endif
/* defined(__KERNEL__) */
#
include <asm-generic/posix_types.h>
#endif
arch/blackfin/include/asm/types.h
View file @
0f652859
#ifndef _BFIN_TYPES_H
#define _BFIN_TYPES_H
/*
* This file is never included by application software unless
* explicitly requested (e.g., via linux/types.h) in which case the
* application is Linux specific so (user-) name space pollution is
* not a major issue. However, for interoperability, libraries still
* need to be careful to avoid a name clashes.
*/
#include <asm-generic/int-ll64.h>
#ifndef __ASSEMBLY__
typedef
unsigned
short
umode_t
;
#endif
/* __ASSEMBLY__ */
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
#define BITS_PER_LONG 32
#ifndef __ASSEMBLY__
/* Dma addresses are 32-bits wide. */
typedef
u32
dma_addr_t
;
typedef
u64
dma64_addr_t
;
#endif
/* __ASSEMBLY__ */
#endif
/* __KERNEL__ */
#endif
/* _BFIN_TYPES_H */
#include <asm-generic/types.h>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment