Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: fall back on generic header files for the ABI

Almost all of the ABI relevant header files now have generic
versions, so use those now in order to reduce the amount
of architecture specific code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michal Simek <monstr@monstr.eu>

authored by

Arnd Bergmann and committed by
Michal Simek
81d8279e 8e4a718f

+16 -887
+1 -91
arch/microblaze/include/asm/ioctls.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_IOCTLS_H 10 - #define _ASM_MICROBLAZE_IOCTLS_H 11 - 12 - #include <linux/ioctl.h> 13 - 14 - /* 0x54 is just a magic number to make these relatively unique ('T') */ 15 - 16 - #define TCGETS 0x5401 17 - #define TCSETS 0x5402 18 - #define TCSETSW 0x5403 19 - #define TCSETSF 0x5404 20 - #define TCGETA 0x5405 21 - #define TCSETA 0x5406 22 - #define TCSETAW 0x5407 23 - #define TCSETAF 0x5408 24 - #define TCSBRK 0x5409 25 - #define TCXONC 0x540A 26 - #define TCFLSH 0x540B 27 - #define TIOCEXCL 0x540C 28 - #define TIOCNXCL 0x540D 29 - #define TIOCSCTTY 0x540E 30 - #define TIOCGPGRP 0x540F 31 - #define TIOCSPGRP 0x5410 32 - #define TIOCOUTQ 0x5411 33 - #define TIOCSTI 0x5412 34 - #define TIOCGWINSZ 0x5413 35 - #define TIOCSWINSZ 0x5414 36 - #define TIOCMGET 0x5415 37 - #define TIOCMBIS 0x5416 38 - #define TIOCMBIC 0x5417 39 - #define TIOCMSET 0x5418 40 - #define TIOCGSOFTCAR 0x5419 41 - #define TIOCSSOFTCAR 0x541A 42 - #define FIONREAD 0x541B 43 - #define TIOCINQ FIONREAD 44 - #define TIOCLINUX 0x541C 45 - #define TIOCCONS 0x541D 46 - #define TIOCGSERIAL 0x541E 47 - #define TIOCSSERIAL 0x541F 48 - #define TIOCPKT 0x5420 49 - #define FIONBIO 0x5421 50 - #define TIOCNOTTY 0x5422 51 - #define TIOCSETD 0x5423 52 - #define TIOCGETD 0x5424 53 - #define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ 54 - #define TIOCTTYGSTRUCT 0x5426 /* For debugging only */ 55 - #define TIOCSBRK 0x5427 /* BSD compatibility */ 56 - #define TIOCCBRK 0x5428 /* BSD compatibility */ 57 - #define TIOCGSID 0x5429 /* Return the session ID of FD */ 58 - /* Get Pty Number (of pty-mux device) */ 59 - #define TIOCGPTN _IOR('T', 0x30, unsigned int) 60 - #define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */ 61 - 62 - #define FIONCLEX 0x5450 /* these numbers need to be adjusted. */ 63 - #define FIOCLEX 0x5451 64 - #define FIOASYNC 0x5452 65 - #define TIOCSERCONFIG 0x5453 66 - #define TIOCSERGWILD 0x5454 67 - #define TIOCSERSWILD 0x5455 68 - #define TIOCGLCKTRMIOS 0x5456 69 - #define TIOCSLCKTRMIOS 0x5457 70 - #define TIOCSERGSTRUCT 0x5458 /* For debugging only */ 71 - #define TIOCSERGETLSR 0x5459 /* Get line status register */ 72 - #define TIOCSERGETMULTI 0x545A /* Get multiport config */ 73 - #define TIOCSERSETMULTI 0x545B /* Set multiport config */ 74 - 75 - #define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ 76 - #define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ 77 - 78 - #define FIOQSIZE 0x545E 79 - 80 - /* Used for packet mode */ 81 - #define TIOCPKT_DATA 0 82 - #define TIOCPKT_FLUSHREAD 1 83 - #define TIOCPKT_FLUSHWRITE 2 84 - #define TIOCPKT_STOP 4 85 - #define TIOCPKT_START 8 86 - #define TIOCPKT_NOSTOP 16 87 - #define TIOCPKT_DOSTOP 32 88 - 89 - #define TIOCSER_TEMT 0x01 /* Transmitter physically empty */ 90 - 91 - #endif /* _ASM_MICROBLAZE_IOCTLS_H */ 1 + #include <asm-generic/ioctls.h>
+1 -36
arch/microblaze/include/asm/ipcbuf.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_IPCBUF_H 10 - #define _ASM_MICROBLAZE_IPCBUF_H 11 - 12 - /* 13 - * The user_ipc_perm structure for microblaze architecture. 14 - * Note extra padding because this structure is passed back and forth 15 - * between kernel and user space. 16 - * 17 - * Pad space is left for: 18 - * - 32-bit mode_t and seq 19 - * - 2 miscellaneous 32-bit values 20 - */ 21 - 22 - struct ipc64_perm { 23 - __kernel_key_t key; 24 - __kernel_uid32_t uid; 25 - __kernel_gid32_t gid; 26 - __kernel_uid32_t cuid; 27 - __kernel_gid32_t cgid; 28 - __kernel_mode_t mode; 29 - unsigned short __pad1; 30 - unsigned short seq; 31 - unsigned short __pad2; 32 - unsigned long __unused1; 33 - unsigned long __unused2; 34 - }; 35 - 36 - #endif /* _ASM_MICROBLAZE_IPCBUF_H */ 1 + #include <asm-generic/ipcbuf.h>
-24
arch/microblaze/include/asm/mman.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_MMAN_H 10 - #define _ASM_MICROBLAZE_MMAN_H 11 - 12 1 #include <asm-generic/mman.h> 13 - 14 - #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 15 - #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 16 - #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 17 - #define MAP_LOCKED 0x2000 /* pages are locked */ 18 - #define MAP_NORESERVE 0x4000 /* don't check for reservations */ 19 - #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ 20 - #define MAP_NONBLOCK 0x10000 /* do not block on IO */ 21 - 22 - #define MCL_CURRENT 1 /* lock all current mappings */ 23 - #define MCL_FUTURE 2 /* lock all future mappings */ 24 - 25 - #endif /* _ASM_MICROBLAZE_MMAN_H */
+1 -31
arch/microblaze/include/asm/msgbuf.h
··· 1 - #ifndef _ASM_MICROBLAZE_MSGBUF_H 2 - #define _ASM_MICROBLAZE_MSGBUF_H 3 - 4 - /* 5 - * The msqid64_ds structure for microblaze architecture. 6 - * Note extra padding because this structure is passed back and forth 7 - * between kernel and user space. 8 - * 9 - * Pad space is left for: 10 - * - 64-bit time_t to solve y2038 problem 11 - * - 2 miscellaneous 32-bit values 12 - */ 13 - 14 - struct msqid64_ds { 15 - struct ipc64_perm msg_perm; 16 - __kernel_time_t msg_stime; /* last msgsnd time */ 17 - unsigned long __unused1; 18 - __kernel_time_t msg_rtime; /* last msgrcv time */ 19 - unsigned long __unused2; 20 - __kernel_time_t msg_ctime; /* last change time */ 21 - unsigned long __unused3; 22 - unsigned long msg_cbytes; /* current number of bytes on queue */ 23 - unsigned long msg_qnum; /* number of messages in queue */ 24 - unsigned long msg_qbytes; /* max number of bytes on queue */ 25 - __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 26 - __kernel_pid_t msg_lrpid; /* last receive pid */ 27 - unsigned long __unused4; 28 - unsigned long __unused5; 29 - }; 30 - 31 - #endif /* _ASM_MICROBLAZE_MSGBUF_H */ 1 + #include <asm-generic/msgbuf.h>
+1 -30
arch/microblaze/include/asm/param.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_PARAM_H 10 - #define _ASM_MICROBLAZE_PARAM_H 11 - 12 - #ifdef __KERNEL__ 13 - #define HZ CONFIG_HZ /* internal kernel timer frequency */ 14 - #define USER_HZ 100 /* for user interfaces in "ticks" */ 15 - #define CLOCKS_PER_SEC (USER_HZ) /* frequency at which times() counts */ 16 - #endif /* __KERNEL__ */ 17 - 18 - #ifndef HZ 19 - #define HZ 100 20 - #endif 21 - 22 - #define EXEC_PAGESIZE 4096 23 - 24 - #ifndef NOGROUP 25 - #define NOGROUP (-1) 26 - #endif 27 - 28 - #define MAXHOSTNAMELEN 64 /* max length of hostname */ 29 - 30 - #endif /* _ASM_MICROBLAZE_PARAM_H */ 1 + #include <asm-generic/param.h>
+2 -66
arch/microblaze/include/asm/posix_types.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 1 #ifndef _ASM_MICROBLAZE_POSIX_TYPES_H 10 2 #define _ASM_MICROBLAZE_POSIX_TYPES_H 11 3 12 - /* 13 - * This file is generally used by user-level software, so you need to 14 - * be a little careful about namespace pollution etc. Also, we cannot 15 - * assume GCC is being used. 16 - */ 17 - 18 - typedef unsigned long __kernel_ino_t; 19 4 typedef unsigned short __kernel_mode_t; 20 - typedef unsigned int __kernel_nlink_t; 21 - typedef long __kernel_off_t; 22 - typedef int __kernel_pid_t; 23 - typedef unsigned int __kernel_ipc_pid_t; 24 - typedef unsigned int __kernel_uid_t; 25 - typedef unsigned int __kernel_gid_t; 26 - typedef unsigned long __kernel_size_t; 27 - typedef long __kernel_ssize_t; 28 - typedef int __kernel_ptrdiff_t; 29 - typedef long __kernel_time_t; 30 - typedef long __kernel_suseconds_t; 31 - typedef long __kernel_clock_t; 32 - typedef int __kernel_timer_t; 33 - typedef int __kernel_clockid_t; 34 - typedef int __kernel_daddr_t; 35 - typedef char *__kernel_caddr_t; 36 - typedef unsigned short __kernel_uid16_t; 37 - typedef unsigned short __kernel_gid16_t; 38 - typedef unsigned int __kernel_uid32_t; 39 - typedef unsigned int __kernel_gid32_t; 5 + #define __kernel_mode_t __kernel_mode_t 40 6 41 - typedef unsigned int __kernel_old_uid_t; 42 - typedef unsigned int __kernel_old_gid_t; 43 - typedef unsigned int __kernel_old_dev_t; 44 - 45 - #ifdef __GNUC__ 46 - typedef long long __kernel_loff_t; 47 - #endif 48 - 49 - typedef struct { 50 - #if defined(__KERNEL__) || defined(__USE_ALL) 51 - int val[2]; 52 - #else /* !defined(__KERNEL__) && !defined(__USE_ALL) */ 53 - int __val[2]; 54 - #endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */ 55 - } __kernel_fsid_t; 56 - 57 - #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) 58 - 59 - #undef __FD_SET 60 - #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) 61 - 62 - #undef __FD_CLR 63 - #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) 64 - 65 - #undef __FD_ISSET 66 - #define __FD_ISSET(d, set) (!!((set)->fds_bits[__FDELT(d)] & __FDMASK(d))) 67 - 68 - #undef __FD_ZERO 69 - #define __FD_ZERO(fdsetp) (memset(fdsetp, 0, sizeof(*(fd_set *)fdsetp))) 70 - 71 - #endif /* defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) */ 7 + #include <asm-generic/posix_types.h> 72 8 73 9 #endif /* _ASM_MICROBLAZE_POSIX_TYPES_H */
+1 -34
arch/microblaze/include/asm/sembuf.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_SEMBUF_H 10 - #define _ASM_MICROBLAZE_SEMBUF_H 11 - 12 - /* 13 - * The semid64_ds structure for microblaze architecture. 14 - * Note extra padding because this structure is passed back and forth 15 - * between kernel and user space. 16 - * 17 - * Pad space is left for: 18 - * - 64-bit time_t to solve y2038 problem 19 - * - 2 miscellaneous 32-bit values 20 - */ 21 - 22 - struct semid64_ds { 23 - struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 24 - __kernel_time_t sem_otime; /* last semop time */ 25 - unsigned long __unused1; 26 - __kernel_time_t sem_ctime; /* last change time */ 27 - unsigned long __unused2; 28 - unsigned long sem_nsems; /* no. of semaphores in array */ 29 - unsigned long __unused3; 30 - unsigned long __unused4; 31 - }; 32 - 33 - 34 - #endif /* _ASM_MICROBLAZE_SEMBUF_H */ 1 + #include <asm-generic/sembuf.h>
+1 -42
arch/microblaze/include/asm/shmbuf.h
··· 1 - #ifndef _ASM_MICROBLAZE_SHMBUF_H 2 - #define _ASM_MICROBLAZE_SHMBUF_H 3 - 4 - /* 5 - * The shmid64_ds structure for microblaze architecture. 6 - * Note extra padding because this structure is passed back and forth 7 - * between kernel and user space. 8 - * 9 - * Pad space is left for: 10 - * - 64-bit time_t to solve y2038 problem 11 - * - 2 miscellaneous 32-bit values 12 - */ 13 - 14 - struct shmid64_ds { 15 - struct ipc64_perm shm_perm; /* operation perms */ 16 - size_t shm_segsz; /* size of segment (bytes) */ 17 - __kernel_time_t shm_atime; /* last attach time */ 18 - unsigned long __unused1; 19 - __kernel_time_t shm_dtime; /* last detach time */ 20 - unsigned long __unused2; 21 - __kernel_time_t shm_ctime; /* last change time */ 22 - unsigned long __unused3; 23 - __kernel_pid_t shm_cpid; /* pid of creator */ 24 - __kernel_pid_t shm_lpid; /* pid of last operator */ 25 - unsigned long shm_nattch; /* no. of current attaches */ 26 - unsigned long __unused4; 27 - unsigned long __unused5; 28 - }; 29 - 30 - struct shminfo64 { 31 - unsigned long shmmax; 32 - unsigned long shmmin; 33 - unsigned long shmmni; 34 - unsigned long shmseg; 35 - unsigned long shmall; 36 - unsigned long __unused1; 37 - unsigned long __unused2; 38 - unsigned long __unused3; 39 - unsigned long __unused4; 40 - }; 41 - 42 - #endif /* _ASM_MICROBLAZE_SHMBUF_H */ 1 + #include <asm-generic/shmbuf.h>
-14
arch/microblaze/include/asm/siginfo.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_SIGINFO_H 10 - #define _ASM_MICROBLAZE_SIGINFO_H 11 - 12 - #include <linux/types.h> 13 1 #include <asm-generic/siginfo.h> 14 - 15 - #endif /* _ASM_MICROBLAZE_SIGINFO_H */
+1 -69
arch/microblaze/include/asm/socket.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_SOCKET_H 10 - #define _ASM_MICROBLAZE_SOCKET_H 11 - 12 - #include <asm/sockios.h> 13 - 14 - /* For setsockoptions(2) */ 15 - #define SOL_SOCKET 1 16 - 17 - #define SO_DEBUG 1 18 - #define SO_REUSEADDR 2 19 - #define SO_TYPE 3 20 - #define SO_ERROR 4 21 - #define SO_DONTROUTE 5 22 - #define SO_BROADCAST 6 23 - #define SO_SNDBUF 7 24 - #define SO_RCVBUF 8 25 - #define SO_SNDBUFFORCE 32 26 - #define SO_RCVBUFFORCE 33 27 - #define SO_KEEPALIVE 9 28 - #define SO_OOBINLINE 10 29 - #define SO_NO_CHECK 11 30 - #define SO_PRIORITY 12 31 - #define SO_LINGER 13 32 - #define SO_BSDCOMPAT 14 33 - /* To add :#define SO_REUSEPORT 15 */ 34 - #define SO_PASSCRED 16 35 - #define SO_PEERCRED 17 36 - #define SO_RCVLOWAT 18 37 - #define SO_SNDLOWAT 19 38 - #define SO_RCVTIMEO 20 39 - #define SO_SNDTIMEO 21 40 - 41 - /* Security levels - as per NRL IPv6 - don't actually do anything */ 42 - #define SO_SECURITY_AUTHENTICATION 22 43 - #define SO_SECURITY_ENCRYPTION_TRANSPORT 23 44 - #define SO_SECURITY_ENCRYPTION_NETWORK 24 45 - 46 - #define SO_BINDTODEVICE 25 47 - 48 - /* Socket filtering */ 49 - #define SO_ATTACH_FILTER 26 50 - #define SO_DETACH_FILTER 27 51 - 52 - #define SO_PEERNAME 28 53 - #define SO_TIMESTAMP 29 54 - #define SCM_TIMESTAMP SO_TIMESTAMP 55 - 56 - #define SO_ACCEPTCONN 30 57 - 58 - #define SO_PEERSEC 31 59 - #define SO_PASSSEC 34 60 - 61 - #define SO_TIMESTAMPNS 35 62 - #define SCM_TIMESTAMPNS SO_TIMESTAMPNS 63 - 64 - #define SO_MARK 36 65 - 66 - #define SO_TIMESTAMPING 37 67 - #define SCM_TIMESTAMPING SO_TIMESTAMPING 68 - 69 - #endif /* _ASM_MICROBLAZE_SOCKET_H */ 1 + #include <asm-generic/socket.h>
+1 -23
arch/microblaze/include/asm/sockios.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_SOCKIOS_H 10 - #define _ASM_MICROBLAZE_SOCKIOS_H 11 - 12 - #include <linux/ioctl.h> 13 - 14 - /* Socket-level I/O control calls. */ 15 - #define FIOSETOWN 0x8901 16 - #define SIOCSPGRP 0x8902 17 - #define FIOGETOWN 0x8903 18 - #define SIOCGPGRP 0x8904 19 - #define SIOCATMARK 0x8905 20 - #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ 21 - #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ 22 - 23 - #endif /* _ASM_MICROBLAZE_SOCKIOS_H */ 1 + #include <asm-generic/sockios.h>
+1 -68
arch/microblaze/include/asm/stat.h
··· 1 - /* 2 - * Microblaze stat structure 3 - * 4 - * Copyright (C) 2001,02,03 NEC Electronics Corporation 5 - * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org> 6 - * 7 - * This file is subject to the terms and conditions of the GNU General 8 - * Public License. See the file COPYING in the main directory of this 9 - * archive for more details. 10 - * 11 - * Written by Miles Bader <miles@gnu.org> 12 - */ 13 - 14 - #ifndef _ASM_MICROBLAZE_STAT_H 15 - #define _ASM_MICROBLAZE_STAT_H 16 - 17 - #include <linux/posix_types.h> 18 - 19 - #define STAT_HAVE_NSEC 1 20 - 21 - struct stat { 22 - unsigned long st_dev; 23 - unsigned long st_ino; 24 - unsigned int st_mode; 25 - unsigned int st_nlink; 26 - unsigned int st_uid; 27 - unsigned int st_gid; 28 - unsigned long st_rdev; 29 - unsigned long __pad1; 30 - long st_size; 31 - int st_blksize; 32 - int __pad2; 33 - long st_blocks; 34 - int st_atime; 35 - unsigned int st_atime_nsec; 36 - int st_mtime; 37 - unsigned int st_mtime_nsec; 38 - int st_ctime; 39 - unsigned int st_ctime_nsec; 40 - unsigned long __unused4; 41 - unsigned long __unused5; 42 - }; 43 - 44 - struct stat64 { 45 - unsigned long long st_dev; /* Device. */ 46 - unsigned long long st_ino; /* File serial number. */ 47 - unsigned int st_mode; /* File mode. */ 48 - unsigned int st_nlink; /* Link count. */ 49 - unsigned int st_uid; /* User ID of the file's owner. */ 50 - unsigned int st_gid; /* Group ID of the file's group. */ 51 - unsigned long long st_rdev; /* Device number, if device. */ 52 - unsigned long long __pad1; 53 - long long st_size; /* Size of file, in bytes. */ 54 - int st_blksize; /* Optimal block size for I/O. */ 55 - int __pad2; 56 - long long st_blocks; /* Number 512-byte blocks allocated. */ 57 - int st_atime; /* Time of last access. */ 58 - unsigned int st_atime_nsec; 59 - int st_mtime; /* Time of last modification. */ 60 - unsigned int st_mtime_nsec; 61 - int st_ctime; /* Time of last status change. */ 62 - unsigned int st_ctime_nsec; 63 - unsigned int __unused4; 64 - unsigned int __unused5; 65 - }; 66 - 67 - #endif /* _ASM_MICROBLAZE_STAT_H */ 68 - 1 + #include <asm-generic/stat.h>
+1 -8
arch/microblaze/include/asm/swab.h
··· 1 - #ifndef _ASM_MICROBLAZE_SWAB_H 2 - #define _ASM_MICROBLAZE_SWAB_H 3 - 4 - #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 5 - #define __SWAB_64_THRU_32__ 6 - #endif 7 - 8 - #endif /* _ASM_MICROBLAZE_SWAB_H */ 1 + #include <asm-generic/swab.h>
+1 -203
arch/microblaze/include/asm/termbits.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_TERMBITS_H 10 - #define _ASM_MICROBLAZE_TERMBITS_H 11 - 12 - #include <linux/posix_types.h> 13 - 14 - typedef unsigned char cc_t; 15 - typedef unsigned int speed_t; 16 - typedef unsigned int tcflag_t; 17 - 18 - #define NCCS 19 19 - struct termios { 20 - tcflag_t c_iflag; /* input mode flags */ 21 - tcflag_t c_oflag; /* output mode flags */ 22 - tcflag_t c_cflag; /* control mode flags */ 23 - tcflag_t c_lflag; /* local mode flags */ 24 - cc_t c_line; /* line discipline */ 25 - cc_t c_cc[NCCS]; /* control characters */ 26 - }; 27 - 28 - struct ktermios { 29 - tcflag_t c_iflag; /* input mode flags */ 30 - tcflag_t c_oflag; /* output mode flags */ 31 - tcflag_t c_cflag; /* control mode flags */ 32 - tcflag_t c_lflag; /* local mode flags */ 33 - cc_t c_line; /* line discipline */ 34 - cc_t c_cc[NCCS]; /* control characters */ 35 - speed_t c_ispeed; /* input speed */ 36 - speed_t c_ospeed; /* output speed */ 37 - }; 38 - 39 - /* c_cc characters */ 40 - 41 - #define VINTR 0 42 - #define VQUIT 1 43 - #define VERASE 2 44 - #define VKILL 3 45 - #define VEOF 4 46 - #define VTIME 5 47 - #define VMIN 6 48 - #define VSWTC 7 49 - #define VSTART 8 50 - #define VSTOP 9 51 - #define VSUSP 10 52 - #define VEOL 11 53 - #define VREPRINT 12 54 - #define VDISCARD 13 55 - #define VWERASE 14 56 - #define VLNEXT 15 57 - #define VEOL2 16 58 - 59 - /* c_iflag bits */ 60 - 61 - #define IGNBRK 0000001 62 - #define BRKINT 0000002 63 - #define IGNPAR 0000004 64 - #define PARMRK 0000010 65 - #define INPCK 0000020 66 - #define ISTRIP 0000040 67 - #define INLCR 0000100 68 - #define IGNCR 0000200 69 - #define ICRNL 0000400 70 - #define IUCLC 0001000 71 - #define IXON 0002000 72 - #define IXANY 0004000 73 - #define IXOFF 0010000 74 - #define IMAXBEL 0020000 75 - #define IUTF8 0040000 76 - 77 - /* c_oflag bits */ 78 - 79 - #define OPOST 0000001 80 - #define OLCUC 0000002 81 - #define ONLCR 0000004 82 - #define OCRNL 0000010 83 - #define ONOCR 0000020 84 - #define ONLRET 0000040 85 - #define OFILL 0000100 86 - #define OFDEL 0000200 87 - #define NLDLY 0000400 88 - #define NL0 0000000 89 - #define NL1 0000400 90 - #define CRDLY 0003000 91 - #define CR0 0000000 92 - #define CR1 0001000 93 - #define CR2 0002000 94 - #define CR3 0003000 95 - #define TABDLY 0014000 96 - #define TAB0 0000000 97 - #define TAB1 0004000 98 - #define TAB2 0010000 99 - #define TAB3 0014000 100 - #define XTABS 0014000 101 - #define BSDLY 0020000 102 - #define BS0 0000000 103 - #define BS1 0020000 104 - #define VTDLY 0040000 105 - #define VT0 0000000 106 - #define VT1 0040000 107 - #define FFDLY 0100000 108 - #define FF0 0000000 109 - #define FF1 0100000 110 - 111 - /* c_cflag bit meaning */ 112 - 113 - #define CBAUD 0010017 114 - #define B0 0000000 /* hang up */ 115 - #define B50 0000001 116 - #define B75 0000002 117 - #define B110 0000003 118 - #define B134 0000004 119 - #define B150 0000005 120 - #define B200 0000006 121 - #define B300 0000007 122 - #define B600 0000010 123 - #define B1200 0000011 124 - #define B1800 0000012 125 - #define B2400 0000013 126 - #define B4800 0000014 127 - #define B9600 0000015 128 - #define B19200 0000016 129 - #define B38400 0000017 130 - #define EXTA B19200 131 - #define EXTB B38400 132 - #define CSIZE 0000060 133 - #define CS5 0000000 134 - #define CS6 0000020 135 - #define CS7 0000040 136 - #define CS8 0000060 137 - #define CSTOPB 0000100 138 - #define CREAD 0000200 139 - #define PARENB 0000400 140 - #define PARODD 0001000 141 - #define HUPCL 0002000 142 - #define CLOCAL 0004000 143 - #define CBAUDEX 0010000 144 - #define B57600 0010001 145 - #define B115200 0010002 146 - #define B230400 0010003 147 - #define B460800 0010004 148 - #define B500000 0010005 149 - #define B576000 0010006 150 - #define B921600 0010007 151 - #define BOTHER 0010000 152 - #define B1000000 0010010 153 - #define B1152000 0010011 154 - #define B1500000 0010012 155 - #define B2000000 0010013 156 - #define B2500000 0010014 157 - #define B3000000 0010015 158 - #define B3500000 0010016 159 - #define B4000000 0010017 160 - #define CIBAUD 002003600000 /* input baud rate (not used) */ 161 - #define CMSPAR 010000000000 /* mark or space (stick) parity */ 162 - #define CRTSCTS 020000000000 /* flow control */ 163 - 164 - #define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */ 165 - 166 - /* c_lflag bits */ 167 - 168 - #define ISIG 0000001 169 - #define ICANON 0000002 170 - #define XCASE 0000004 171 - #define ECHO 0000010 172 - #define ECHOE 0000020 173 - #define ECHOK 0000040 174 - #define ECHONL 0000100 175 - #define NOFLSH 0000200 176 - #define TOSTOP 0000400 177 - #define ECHOCTL 0001000 178 - #define ECHOPRT 0002000 179 - #define ECHOKE 0004000 180 - #define FLUSHO 0010000 181 - #define PENDIN 0040000 182 - #define IEXTEN 0100000 183 - 184 - /* tcflow() and TCXONC use these */ 185 - 186 - #define TCOOFF 0 187 - #define TCOON 1 188 - #define TCIOFF 2 189 - #define TCION 3 190 - 191 - /* tcflush() and TCFLSH use these */ 192 - 193 - #define TCIFLUSH 0 194 - #define TCOFLUSH 1 195 - #define TCIOFLUSH 2 196 - 197 - /* tcsetattr uses these */ 198 - 199 - #define TCSANOW 0 200 - #define TCSADRAIN 1 201 - #define TCSAFLUSH 2 202 - 203 - #endif /* _ASM_MICROBLAZE_TERMBITS_H */ 1 + #include <asm-generic/termbits.h>
+1 -88
arch/microblaze/include/asm/termios.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_TERMIOS_H 10 - #define _ASM_MICROBLAZE_TERMIOS_H 11 - 12 - #include <linux/string.h> 13 - #include <asm/termbits.h> 14 - #include <asm/ioctls.h> 15 - 16 - struct winsize { 17 - unsigned short ws_row; 18 - unsigned short ws_col; 19 - unsigned short ws_xpixel; 20 - unsigned short ws_ypixel; 21 - }; 22 - 23 - #define NCC 8 24 - struct termio { 25 - unsigned short c_iflag; /* input mode flags */ 26 - unsigned short c_oflag; /* output mode flags */ 27 - unsigned short c_cflag; /* control mode flags */ 28 - unsigned short c_lflag; /* local mode flags */ 29 - unsigned char c_line; /* line discipline */ 30 - unsigned char c_cc[NCC]; /* control characters */ 31 - }; 32 - 33 - #ifdef __KERNEL__ 34 - /* intr=^C quit=^| erase=del kill=^U 35 - eof=^D vtime=\0 vmin=\1 sxtc=\0 36 - start=^Q stop=^S susp=^Z eol=\0 37 - reprint=^R discard=^U werase=^W lnext=^V 38 - eol2=\0 39 - */ 40 - #define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0" 41 - #endif 42 - 43 - /* Modem lines */ 44 - 45 - #define TIOCM_LE 0x001 46 - #define TIOCM_DTR 0x002 47 - #define TIOCM_RTS 0x004 48 - #define TIOCM_ST 0x008 49 - #define TIOCM_SR 0x010 50 - #define TIOCM_CTS 0x020 51 - #define TIOCM_CAR 0x040 52 - #define TIOCM_RNG 0x080 53 - #define TIOCM_DSR 0x100 54 - #define TIOCM_CD TIOCM_CAR 55 - #define TIOCM_RI TIOCM_RNG 56 - #define TIOCM_OUT1 0x2000 57 - #define TIOCM_OUT2 0x4000 58 - #define TIOCM_LOOP 0x8000 59 - 60 - /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ 61 - 62 - /* Line disciplines */ 63 - 64 - #define N_TTY 0 65 - #define N_SLIP 1 66 - #define N_MOUSE 2 67 - #define N_PPP 3 68 - #define N_STRIP 4 69 - #define N_AX25 5 70 - #define N_X25 6 /* X.25 async */ 71 - #define N_6PACK 7 72 - #define N_MASC 8 /* Reserved for Mobitex module <kaz@cafe.net> */ 73 - #define N_R3964 9 /* Reserved for Simatic R3964 module */ 74 - #define N_PROFIBUS_FDL 10 /* Reserved for Profibus <Dave@mvhi.com> */ 75 - #define N_IRDA 11 /* Linux IR - http://irda.sourceforge.net/ */ 76 - #define N_SMSBLOCK 12 /* SMS block mode - for talking to GSM data cards 77 - about SMS messages */ 78 - #define N_HDLC 13 /* synchronous HDLC */ 79 - #define N_SYNC_PPP 14 80 - #define N_HCI 15 /* Bluetooth HCI UART */ 81 - 82 - #ifdef __KERNEL__ 83 - 84 - #include <asm-generic/termios-base.h> 85 - 86 - #endif /* __KERNEL__ */ 87 - 88 - #endif /* _ASM_MICROBLAZE_TERMIOS_H */ 1 + #include <asm-generic/termios.h>
+1 -38
arch/microblaze/include/asm/types.h
··· 1 - /* 2 - * Copyright (C) Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_TYPES_H 10 - #define _ASM_MICROBLAZE_TYPES_H 11 - 12 - /* 13 - * This file is never included by application software unless 14 - * explicitly requested (e.g., via linux/types.h) in which case the 15 - * application is Linux specific so (user-) name space pollution is 16 - * not a major issue. However, for interoperability, libraries still 17 - * need to be careful to avoid a name clashes. 18 - */ 19 - 20 - #include <asm-generic/int-ll64.h> 21 - 22 - # ifndef __ASSEMBLY__ 23 - 24 - typedef unsigned short umode_t; 25 - 26 - /* 27 - * These aren't exported outside the kernel to avoid name space clashes 28 - */ 29 - # ifdef __KERNEL__ 30 - # define BITS_PER_LONG 32 31 - 32 - /* Dma addresses are 32-bits wide. */ 33 - 34 - typedef u32 dma_addr_t; 35 - 36 - # endif/* __KERNEL__ */ 37 - # endif /* __ASSEMBLY__ */ 38 - #endif /* _ASM_MICROBLAZE_TYPES_H */ 1 + #include <asm-generic/types.h>
+1 -22
arch/microblaze/include/asm/ucontext.h
··· 1 - /* 2 - * Copyright (C) 2006 Atmark Techno, Inc. 3 - * 4 - * This file is subject to the terms and conditions of the GNU General Public 5 - * License. See the file "COPYING" in the main directory of this archive 6 - * for more details. 7 - */ 8 - 9 - #ifndef _ASM_MICROBLAZE_UCONTEXT_H 10 - #define _ASM_MICROBLAZE_UCONTEXT_H 11 - 12 - #include <asm/sigcontext.h> 13 - 14 - struct ucontext { 15 - unsigned long uc_flags; 16 - struct ucontext *uc_link; 17 - stack_t uc_stack; 18 - struct sigcontext uc_mcontext; 19 - sigset_t uc_sigmask; /* mask last for extensibility */ 20 - }; 21 - 22 - #endif /* _ASM_MICROBLAZE_UCONTEXT_H */ 1 + #include <asm-generic/ucontext.h>