-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 143032 b: refs/heads/master c: 6d9c3f2 h: refs/heads/master v: v3
- Loading branch information
Michal Simek
committed
Mar 27, 2009
1 parent
ac6d9a0
commit 022e267
Showing
3 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 8c4f92fe02394f7bc4c079d0ab943d4aea893f14 | ||
refs/heads/master: 6d9c3f20858039d98da30074b487f2059450a9b1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Copyright (C) 2006 Atmark Techno, Inc. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_POSIX_TYPES_H | ||
#define _ASM_MICROBLAZE_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 int __kernel_mode_t; | ||
typedef unsigned int __kernel_nlink_t; | ||
typedef long __kernel_off_t; | ||
typedef int __kernel_pid_t; | ||
typedef unsigned int __kernel_ipc_pid_t; | ||
typedef unsigned int __kernel_uid_t; | ||
typedef unsigned int __kernel_gid_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; | ||
|
||
typedef unsigned int __kernel_old_uid_t; | ||
typedef unsigned int __kernel_old_gid_t; | ||
typedef unsigned int __kernel_old_dev_t; | ||
|
||
#ifdef __GNUC__ | ||
typedef long long __kernel_loff_t; | ||
#endif | ||
|
||
typedef struct { | ||
#if defined(__KERNEL__) || defined(__USE_ALL) | ||
int val[2]; | ||
#else /* !defined(__KERNEL__) && !defined(__USE_ALL) */ | ||
int __val[2]; | ||
#endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */ | ||
} __kernel_fsid_t; | ||
|
||
#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) | ||
|
||
#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))) | ||
|
||
#endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */ | ||
|
||
#endif /* _ASM_MICROBLAZE_POSIX_TYPES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (C) Atmark Techno, Inc. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#ifndef _ASM_MICROBLAZE_TYPES_H | ||
#define _ASM_MICROBLAZE_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; | ||
|
||
/* | ||
* These aren't exported outside the kernel to avoid name space clashes | ||
*/ | ||
# ifdef __KERNEL__ | ||
# define BITS_PER_LONG 32 | ||
|
||
/* Dma addresses are 32-bits wide. */ | ||
|
||
typedef u32 dma_addr_t; | ||
|
||
# endif/* __KERNEL__ */ | ||
# endif /* __ASSEMBLY__ */ | ||
#endif /* _ASM_MICROBLAZE_TYPES_H */ |