-
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.
x86: remove all now-duplicate header files
All files that have been made identical to the asm-generic version in the previous patches can now be removed, guaranteeing that this does not introduce semantic changes. Signed-off-by: Arnd Bergmann <arnd@arndb.de> LKML-Reference: <cover.1245354003.git.arnd@arndb.de> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
- Loading branch information
Arnd Bergmann
authored and
H. Peter Anvin
committed
Jun 18, 2009
1 parent
69d5ffd
commit 73a2d09
Showing
19 changed files
with
14 additions
and
840 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,110 +1 @@ | ||
#ifndef __ASM_GENERIC_IOCTLS_H | ||
#define __ASM_GENERIC_IOCTLS_H | ||
|
||
#include <linux/ioctl.h> | ||
|
||
/* | ||
* These are the most common definitions for tty ioctl numbers. | ||
* Most of them do not use the recommended _IOC(), but there is | ||
* probably some source code out there hardcoding the number, | ||
* so we might as well use them for all new platforms. | ||
* | ||
* The architectures that use different values here typically | ||
* try to be compatible with some Unix variants for the same | ||
* architecture. | ||
*/ | ||
|
||
/* 0x54 is just a magic number to make these relatively unique ('T') */ | ||
|
||
#define TCGETS 0x5401 | ||
#define TCSETS 0x5402 | ||
#define TCSETSW 0x5403 | ||
#define TCSETSF 0x5404 | ||
#define TCGETA 0x5405 | ||
#define TCSETA 0x5406 | ||
#define TCSETAW 0x5407 | ||
#define TCSETAF 0x5408 | ||
#define TCSBRK 0x5409 | ||
#define TCXONC 0x540A | ||
#define TCFLSH 0x540B | ||
#define TIOCEXCL 0x540C | ||
#define TIOCNXCL 0x540D | ||
#define TIOCSCTTY 0x540E | ||
#define TIOCGPGRP 0x540F | ||
#define TIOCSPGRP 0x5410 | ||
#define TIOCOUTQ 0x5411 | ||
#define TIOCSTI 0x5412 | ||
#define TIOCGWINSZ 0x5413 | ||
#define TIOCSWINSZ 0x5414 | ||
#define TIOCMGET 0x5415 | ||
#define TIOCMBIS 0x5416 | ||
#define TIOCMBIC 0x5417 | ||
#define TIOCMSET 0x5418 | ||
#define TIOCGSOFTCAR 0x5419 | ||
#define TIOCSSOFTCAR 0x541A | ||
#define FIONREAD 0x541B | ||
#define TIOCINQ FIONREAD | ||
#define TIOCLINUX 0x541C | ||
#define TIOCCONS 0x541D | ||
#define TIOCGSERIAL 0x541E | ||
#define TIOCSSERIAL 0x541F | ||
#define TIOCPKT 0x5420 | ||
#define FIONBIO 0x5421 | ||
#define TIOCNOTTY 0x5422 | ||
#define TIOCSETD 0x5423 | ||
#define TIOCGETD 0x5424 | ||
#define TCSBRKP 0x5425 /* Needed for POSIX tcsendbreak() */ | ||
#define TIOCSBRK 0x5427 /* BSD compatibility */ | ||
#define TIOCCBRK 0x5428 /* BSD compatibility */ | ||
#define TIOCGSID 0x5429 /* Return the session ID of FD */ | ||
#define TCGETS2 _IOR('T', 0x2A, struct termios2) | ||
#define TCSETS2 _IOW('T', 0x2B, struct termios2) | ||
#define TCSETSW2 _IOW('T', 0x2C, struct termios2) | ||
#define TCSETSF2 _IOW('T', 0x2D, struct termios2) | ||
#define TIOCGRS485 0x542E | ||
#define TIOCSRS485 0x542F | ||
#define TIOCGPTN _IOR('T', 0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | ||
#define TIOCSPTLCK _IOW('T', 0x31, int) /* Lock/unlock Pty */ | ||
#define TCGETX 0x5432 /* SYS5 TCGETX compatibility */ | ||
#define TCSETX 0x5433 | ||
#define TCSETXF 0x5434 | ||
#define TCSETXW 0x5435 | ||
|
||
#define FIONCLEX 0x5450 | ||
#define FIOCLEX 0x5451 | ||
#define FIOASYNC 0x5452 | ||
#define TIOCSERCONFIG 0x5453 | ||
#define TIOCSERGWILD 0x5454 | ||
#define TIOCSERSWILD 0x5455 | ||
#define TIOCGLCKTRMIOS 0x5456 | ||
#define TIOCSLCKTRMIOS 0x5457 | ||
#define TIOCSERGSTRUCT 0x5458 /* For debugging only */ | ||
#define TIOCSERGETLSR 0x5459 /* Get line status register */ | ||
#define TIOCSERGETMULTI 0x545A /* Get multiport config */ | ||
#define TIOCSERSETMULTI 0x545B /* Set multiport config */ | ||
|
||
#define TIOCMIWAIT 0x545C /* wait for a change on serial input line(s) */ | ||
#define TIOCGICOUNT 0x545D /* read serial port inline interrupt counts */ | ||
|
||
/* | ||
* some architectures define FIOQSIZE as 0x545E, which is used for | ||
* TIOCGHAYESESP on others | ||
*/ | ||
#ifndef FIOQSIZE | ||
# define TIOCGHAYESESP 0x545E /* Get Hayes ESP configuration */ | ||
# define TIOCSHAYESESP 0x545F /* Set Hayes ESP configuration */ | ||
# define FIOQSIZE 0x5460 | ||
#endif | ||
|
||
/* Used for packet mode */ | ||
#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 TIOCSER_TEMT 0x01 /* Transmitter physically empty */ | ||
|
||
#endif /* __ASM_GENERIC_IOCTLS_H */ | ||
#include <asm-generic/ioctls.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 |
---|---|---|
@@ -1,33 +1 @@ | ||
#ifndef __ASM_GENERIC_IPCBUF_H | ||
#define __ASM_GENERIC_IPCBUF_H | ||
|
||
/* | ||
* The generic ipc64_perm structure: | ||
* Note extra padding because this structure is passed back and forth | ||
* between kernel and user space. | ||
* | ||
* ipc64_perm was originally meant to be architecture specific, but | ||
* everyone just ended up making identical copies without specific | ||
* optimizations, so we may just as well all use the same one. | ||
* | ||
* Pad space is left for: | ||
* - 32-bit mode_t on architectures that only had 16 bit | ||
* - 32-bit seq | ||
* - 2 miscellaneous 32-bit values | ||
*/ | ||
|
||
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 /* __ASM_GENERIC_IPCBUF_H */ | ||
#include <asm-generic/ipcbuf.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
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
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,47 +1 @@ | ||
#ifndef __ASM_GENERIC_MSGBUF_H | ||
#define __ASM_GENERIC_MSGBUF_H | ||
|
||
#include <asm/bitsperlong.h> | ||
/* | ||
* generic msqid64_ds structure. | ||
* | ||
* Note extra padding because this structure is passed back and forth | ||
* between kernel and user space. | ||
* | ||
* msqid64_ds was originally meant to be architecture specific, but | ||
* everyone just ended up making identical copies without specific | ||
* optimizations, so we may just as well all use the same one. | ||
* | ||
* 64 bit architectures typically define a 64 bit __kernel_time_t, | ||
* so they do not need the first three padding words. | ||
* On big-endian systems, the padding is in the wrong place. | ||
* | ||
* Pad space is left for: | ||
* - 64-bit time_t to solve y2038 problem | ||
* - 2 miscellaneous 32-bit values | ||
*/ | ||
|
||
struct msqid64_ds { | ||
struct ipc64_perm msg_perm; | ||
__kernel_time_t msg_stime; /* last msgsnd time */ | ||
#if __BITS_PER_LONG != 64 | ||
unsigned long __unused1; | ||
#endif | ||
__kernel_time_t msg_rtime; /* last msgrcv time */ | ||
#if __BITS_PER_LONG != 64 | ||
unsigned long __unused2; | ||
#endif | ||
__kernel_time_t msg_ctime; /* last change time */ | ||
#if __BITS_PER_LONG != 64 | ||
unsigned long __unused3; | ||
#endif | ||
unsigned long msg_cbytes; /* current number of bytes on queue */ | ||
unsigned long msg_qnum; /* number of messages in queue */ | ||
unsigned long msg_qbytes; /* max number of bytes on queue */ | ||
__kernel_pid_t msg_lspid; /* pid of last msgsnd */ | ||
__kernel_pid_t msg_lrpid; /* last receive pid */ | ||
unsigned long __unused4; | ||
unsigned long __unused5; | ||
}; | ||
|
||
#endif /* __ASM_GENERIC_MSGBUF_H */ | ||
#include <asm-generic/msgbuf.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 |
---|---|---|
@@ -1,24 +1 @@ | ||
#ifndef __ASM_GENERIC_PARAM_H | ||
#define __ASM_GENERIC_PARAM_H | ||
|
||
#ifdef __KERNEL__ | ||
# define HZ CONFIG_HZ /* Internal kernel timer frequency */ | ||
# define USER_HZ 100 /* some user interfaces are */ | ||
# define CLOCKS_PER_SEC (USER_HZ) /* in "ticks" like times() */ | ||
#endif | ||
|
||
#ifndef HZ | ||
#define HZ 100 | ||
#endif | ||
|
||
#ifndef EXEC_PAGESIZE | ||
#define EXEC_PAGESIZE 4096 | ||
#endif | ||
|
||
#ifndef NOGROUP | ||
#define NOGROUP (-1) | ||
#endif | ||
|
||
#define MAXHOSTNAMELEN 64 /* max length of hostname */ | ||
|
||
#endif /* __ASM_GENERIC_PARAM_H */ | ||
#include <asm-generic/param.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
Oops, something went wrong.