Skip to content

Commit aa2c47e

Browse files
committed
UAPI: (Scripted) Disintegrate arch/frv/include/asm
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
1 parent 42859ee commit aa2c47e

40 files changed

Lines changed: 557 additions & 486 deletions

‎arch/frv/include/asm/Kbuild‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
include include/asm-generic/Kbuild.asm
21

3-
header-y += registers.h
4-
header-y += termios.h
52
generic-y += clkdev.h
63
generic-y += exec.h

‎arch/frv/include/asm/ptrace.h‎

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,58 +11,10 @@
1111
#ifndef _ASM_PTRACE_H
1212
#define _ASM_PTRACE_H
1313

14-
#include <asm/registers.h>
15-
#ifdef __KERNEL__
1614
#include <asm/irq_regs.h>
15+
#include <uapi/asm/ptrace.h>
1716

1817
#define in_syscall(regs) (((regs)->tbr & TBR_TT) == TBR_TT_TRAP0)
19-
#endif
20-
21-
22-
#define PT_PSR 0
23-
#define PT_ISR 1
24-
#define PT_CCR 2
25-
#define PT_CCCR 3
26-
#define PT_LR 4
27-
#define PT_LCR 5
28-
#define PT_PC 6
29-
30-
#define PT__STATUS 7 /* exception status */
31-
#define PT_SYSCALLNO 8 /* syscall number or -1 */
32-
#define PT_ORIG_GR8 9 /* saved GR8 for signal handling */
33-
#define PT_GNER0 10
34-
#define PT_GNER1 11
35-
#define PT_IACC0H 12
36-
#define PT_IACC0L 13
37-
38-
#define PT_GR(j) ( 14 + (j)) /* GRj for 0<=j<=63 */
39-
#define PT_FR(j) ( 78 + (j)) /* FRj for 0<=j<=63 */
40-
#define PT_FNER(j) (142 + (j)) /* FNERj for 0<=j<=1 */
41-
#define PT_MSR(j) (144 + (j)) /* MSRj for 0<=j<=2 */
42-
#define PT_ACC(j) (146 + (j)) /* ACCj for 0<=j<=7 */
43-
#define PT_ACCG(jklm) (154 + (jklm)) /* ACCGjklm for 0<=jklm<=1 (reads four regs per slot) */
44-
#define PT_FSR(j) (156 + (j)) /* FSRj for 0<=j<=0 */
45-
#define PT__GPEND 78
46-
#define PT__END 157
47-
48-
#define PT_TBR PT_GR(0)
49-
#define PT_SP PT_GR(1)
50-
#define PT_FP PT_GR(2)
51-
#define PT_PREV_FRAME PT_GR(28) /* previous exception frame pointer (old gr28 value) */
52-
#define PT_CURR_TASK PT_GR(29) /* current task */
53-
54-
55-
/* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
56-
#define PTRACE_GETREGS 12
57-
#define PTRACE_SETREGS 13
58-
#define PTRACE_GETFPREGS 14
59-
#define PTRACE_SETFPREGS 15
60-
#define PTRACE_GETFDPIC 31 /* get the ELF fdpic loadmap address */
61-
62-
#define PTRACE_GETFDPIC_EXEC 0 /* [addr] request the executable loadmap */
63-
#define PTRACE_GETFDPIC_INTERP 1 /* [addr] request the interpreter loadmap */
64-
65-
#ifdef __KERNEL__
6618
#ifndef __ASSEMBLY__
6719

6820
struct task_struct;
@@ -85,5 +37,4 @@ extern unsigned long user_stack(const struct pt_regs *);
8537
#define arch_has_single_step() (1)
8638

8739
#endif /* !__ASSEMBLY__ */
88-
#endif /* __KERNEL__ */
8940
#endif /* _ASM_PTRACE_H */

‎arch/frv/include/asm/setup.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@
88
* as published by the Free Software Foundation; either version
99
* 2 of the License, or (at your option) any later version.
1010
*/
11-
1211
#ifndef _ASM_SETUP_H
1312
#define _ASM_SETUP_H
1413

15-
#define COMMAND_LINE_SIZE 512
16-
17-
#ifdef __KERNEL__
1814

1915
#include <linux/init.h>
16+
#include <uapi/asm/setup.h>
2017

2118
#ifndef __ASSEMBLY__
2219

@@ -26,6 +23,4 @@ extern unsigned long __initdata num_mappedpages;
2623

2724
#endif /* !__ASSEMBLY__ */
2825

29-
#endif /* __KERNEL__ */
30-
3126
#endif /* _ASM_SETUP_H */

‎arch/frv/include/asm/signal.h‎

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,13 @@
11
#ifndef _ASM_SIGNAL_H
22
#define _ASM_SIGNAL_H
33

4-
#include <linux/types.h>
4+
#include <uapi/asm/signal.h>
55

6-
#ifndef __KERNEL__
7-
/* Here we must cater to libcs that poke about in kernel headers. */
8-
9-
#define NSIG 32
10-
typedef unsigned long sigset_t;
11-
12-
#endif /* !__KERNEL__ */
13-
14-
#define SA_RESTORER 0x04000000 /* to get struct sigaction correct */
15-
16-
#include <asm-generic/signal.h>
17-
18-
#ifdef __KERNEL__
196
struct old_sigaction {
207
__sighandler_t sa_handler;
218
old_sigset_t sa_mask;
229
unsigned long sa_flags;
2310
__sigrestore_t sa_restorer;
2411
};
2512

26-
#else
27-
/* Here we must cater to libcs that poke about in kernel headers. */
28-
29-
struct sigaction {
30-
union {
31-
__sighandler_t _sa_handler;
32-
void (*_sa_sigaction)(int, struct siginfo *, void *);
33-
} _u;
34-
sigset_t sa_mask;
35-
unsigned long sa_flags;
36-
void (*sa_restorer)(void);
37-
};
38-
39-
#define sa_handler _u._sa_handler
40-
#define sa_sigaction _u._sa_sigaction
41-
42-
#endif /* __KERNEL__ */
43-
4413
#endif /* _ASM_SIGNAL_H */

‎arch/frv/include/asm/termios.h‎

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,14 @@
11
#ifndef _ASM_TERMIOS_H
22
#define _ASM_TERMIOS_H
33

4-
#include <asm/termbits.h>
5-
#include <asm/ioctls.h>
4+
#include <uapi/asm/termios.h>
65

7-
struct winsize {
8-
unsigned short ws_row;
9-
unsigned short ws_col;
10-
unsigned short ws_xpixel;
11-
unsigned short ws_ypixel;
12-
};
13-
14-
#define NCC 8
15-
struct termio {
16-
unsigned short c_iflag; /* input mode flags */
17-
unsigned short c_oflag; /* output mode flags */
18-
unsigned short c_cflag; /* control mode flags */
19-
unsigned short c_lflag; /* local mode flags */
20-
unsigned char c_line; /* line discipline */
21-
unsigned char c_cc[NCC]; /* control characters */
22-
};
23-
24-
#ifdef __KERNEL__
256
/* intr=^C quit=^| erase=del kill=^U
267
eof=^D vtime=\0 vmin=\1 sxtc=\0
278
start=^Q stop=^S susp=^Z eol=\0
289
reprint=^R discard=^U werase=^W lnext=^V
2910
eol2=\0
3011
*/
3112
#define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0"
32-
#endif
33-
34-
/* modem lines */
35-
#define TIOCM_LE 0x001
36-
#define TIOCM_DTR 0x002
37-
#define TIOCM_RTS 0x004
38-
#define TIOCM_ST 0x008
39-
#define TIOCM_SR 0x010
40-
#define TIOCM_CTS 0x020
41-
#define TIOCM_CAR 0x040
42-
#define TIOCM_RNG 0x080
43-
#define TIOCM_DSR 0x100
44-
#define TIOCM_CD TIOCM_CAR
45-
#define TIOCM_RI TIOCM_RNG
46-
#define TIOCM_OUT1 0x2000
47-
#define TIOCM_OUT2 0x4000
48-
#define TIOCM_LOOP 0x8000
49-
50-
#define TIOCM_MODEM_BITS TIOCM_OUT2 /* IRDA support */
51-
52-
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
53-
54-
#ifdef __KERNEL__
5513
#include <asm-generic/termios-base.h>
56-
#endif
57-
5814
#endif /* _ASM_TERMIOS_H */

‎arch/frv/include/asm/types.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,15 @@
88
* as published by the Free Software Foundation; either version
99
* 2 of the License, or (at your option) any later version.
1010
*/
11-
1211
#ifndef _ASM_TYPES_H
1312
#define _ASM_TYPES_H
1413

15-
#include <asm-generic/int-ll64.h>
14+
#include <uapi/asm/types.h>
1615

1716
/*
1817
* These aren't exported outside the kernel to avoid name space clashes
1918
*/
20-
#ifdef __KERNEL__
2119

2220
#define BITS_PER_LONG 32
2321

24-
#endif /* __KERNEL__ */
25-
2622
#endif /* _ASM_TYPES_H */

0 commit comments

Comments
 (0)