mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
5
arch/cris/include/uapi/arch-v10/arch/Kbuild
Normal file
5
arch/cris/include/uapi/arch-v10/arch/Kbuild
Normal file
|
@ -0,0 +1,5 @@
|
|||
# UAPI Header export list
|
||||
header-y += sv_addr.agh
|
||||
header-y += sv_addr_ag.h
|
||||
header-y += svinto.h
|
||||
header-y += user.h
|
7306
arch/cris/include/uapi/arch-v10/arch/sv_addr.agh
Normal file
7306
arch/cris/include/uapi/arch-v10/arch/sv_addr.agh
Normal file
File diff suppressed because it is too large
Load diff
139
arch/cris/include/uapi/arch-v10/arch/sv_addr_ag.h
Normal file
139
arch/cris/include/uapi/arch-v10/arch/sv_addr_ag.h
Normal file
|
@ -0,0 +1,139 @@
|
|||
/*!**************************************************************************
|
||||
*!
|
||||
*! MACROS:
|
||||
*! IO_MASK(reg,field)
|
||||
*! IO_STATE(reg,field,state)
|
||||
*! IO_EXTRACT(reg,field,val)
|
||||
*! IO_STATE_VALUE(reg,field,state)
|
||||
*! IO_BITNR(reg,field)
|
||||
*! IO_WIDTH(reg,field)
|
||||
*! IO_FIELD(reg,field,val)
|
||||
*! IO_RD(reg)
|
||||
*! All moderegister addresses and fields of these.
|
||||
*!
|
||||
*!**************************************************************************/
|
||||
|
||||
#ifndef __sv_addr_ag_h__
|
||||
#define __sv_addr_ag_h__
|
||||
|
||||
|
||||
#define __test_sv_addr__ 0
|
||||
|
||||
/*------------------------------------------------------------
|
||||
!* General macros to manipulate moderegisters.
|
||||
!*-----------------------------------------------------------*/
|
||||
|
||||
/* IO_MASK returns a mask for a specified bitfield in a register.
|
||||
Note that this macro doesn't work when field width is 32 bits. */
|
||||
#define IO_MASK(reg, field) IO_MASK_ (reg##_, field##_)
|
||||
#define IO_MASK_(reg_, field_) \
|
||||
( ( ( 1 << reg_##_##field_##_WIDTH ) - 1 ) << reg_##_##field_##_BITNR )
|
||||
|
||||
/* IO_STATE returns a constant corresponding to a one of the symbolic
|
||||
states that the bitfield can have. (Shifted to correct position) */
|
||||
#define IO_STATE(reg, field, state) IO_STATE_ (reg##_, field##_, _##state)
|
||||
#define IO_STATE_(reg_, field_, _state) \
|
||||
( reg_##_##field_##_state << reg_##_##field_##_BITNR )
|
||||
|
||||
/* IO_EXTRACT returns the masked and shifted value corresponding to the
|
||||
bitfield can have. */
|
||||
#define IO_EXTRACT(reg, field, val) IO_EXTRACT_ (reg##_, field##_, val)
|
||||
#define IO_EXTRACT_(reg_, field_, val) ( (( ( ( 1 << reg_##_##field_##_WIDTH ) \
|
||||
- 1 ) << reg_##_##field_##_BITNR ) & (val)) >> reg_##_##field_##_BITNR )
|
||||
|
||||
/* IO_STATE_VALUE returns a constant corresponding to a one of the symbolic
|
||||
states that the bitfield can have. (Not shifted) */
|
||||
#define IO_STATE_VALUE(reg, field, state) \
|
||||
IO_STATE_VALUE_ (reg##_, field##_, _##state)
|
||||
#define IO_STATE_VALUE_(reg_, field_, _state) ( reg_##_##field_##_state )
|
||||
|
||||
/* IO_FIELD shifts the val parameter to be aligned with the bitfield
|
||||
specified. */
|
||||
#define IO_FIELD(reg, field, val) IO_FIELD_ (reg##_, field##_, val)
|
||||
#define IO_FIELD_(reg_, field_, val) ((val) << reg_##_##field_##_BITNR)
|
||||
|
||||
/* IO_BITNR returns the starting bitnumber of a bitfield. Bit 0 is
|
||||
LSB and the returned bitnumber is LSB of the field. */
|
||||
#define IO_BITNR(reg, field) IO_BITNR_ (reg##_, field##_)
|
||||
#define IO_BITNR_(reg_, field_) (reg_##_##field_##_BITNR)
|
||||
|
||||
/* IO_WIDTH returns the width, in bits, of a bitfield. */
|
||||
#define IO_WIDTH(reg, field) IO_WIDTH_ (reg##_, field##_)
|
||||
#define IO_WIDTH_(reg_, field_) (reg_##_##field_##_WIDTH)
|
||||
|
||||
/*--- Obsolete. Kept for backw compatibility. ---*/
|
||||
/* Reads (or writes) a byte/uword/udword from the specified mode
|
||||
register. */
|
||||
#define IO_RD(reg) (*(volatile u32*)(reg))
|
||||
#define IO_RD_B(reg) (*(volatile u8*)(reg))
|
||||
#define IO_RD_W(reg) (*(volatile u16*)(reg))
|
||||
#define IO_RD_D(reg) (*(volatile u32*)(reg))
|
||||
|
||||
/*------------------------------------------------------------
|
||||
!* Start addresses of the different memory areas.
|
||||
!*-----------------------------------------------------------*/
|
||||
|
||||
#define MEM_CSE0_START (0x00000000)
|
||||
#define MEM_CSE0_SIZE (0x04000000)
|
||||
#define MEM_CSE1_START (0x04000000)
|
||||
#define MEM_CSE1_SIZE (0x04000000)
|
||||
#define MEM_CSR0_START (0x08000000)
|
||||
#define MEM_CSR1_START (0x0c000000)
|
||||
#define MEM_CSP0_START (0x10000000)
|
||||
#define MEM_CSP1_START (0x14000000)
|
||||
#define MEM_CSP2_START (0x18000000)
|
||||
#define MEM_CSP3_START (0x1c000000)
|
||||
#define MEM_CSP4_START (0x20000000)
|
||||
#define MEM_CSP5_START (0x24000000)
|
||||
#define MEM_CSP6_START (0x28000000)
|
||||
#define MEM_CSP7_START (0x2c000000)
|
||||
#define MEM_DRAM_START (0x40000000)
|
||||
|
||||
#define MEM_NON_CACHEABLE (0x80000000)
|
||||
|
||||
/*------------------------------------------------------------
|
||||
!* Type casts used in mode register macros, making pointer
|
||||
!* dereferencing possible. Empty in assembler.
|
||||
!*-----------------------------------------------------------*/
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
# define IO_TYPECAST_UDWORD (volatile u32*)
|
||||
# define IO_TYPECAST_RO_UDWORD (const volatile u32*)
|
||||
# define IO_TYPECAST_UWORD (volatile u16*)
|
||||
# define IO_TYPECAST_RO_UWORD (const volatile u16*)
|
||||
# define IO_TYPECAST_BYTE (volatile u8*)
|
||||
# define IO_TYPECAST_RO_BYTE (const volatile u8*)
|
||||
#else
|
||||
# define IO_TYPECAST_UDWORD
|
||||
# define IO_TYPECAST_RO_UDWORD
|
||||
# define IO_TYPECAST_UWORD
|
||||
# define IO_TYPECAST_RO_UWORD
|
||||
# define IO_TYPECAST_BYTE
|
||||
# define IO_TYPECAST_RO_BYTE
|
||||
#endif
|
||||
|
||||
/*------------------------------------------------------------*/
|
||||
|
||||
#include <arch/sv_addr.agh>
|
||||
|
||||
#if __test_sv_addr__
|
||||
/* IO_MASK( R_BUS_CONFIG , CE ) */
|
||||
IO_MASK( R_WAITSTATES , SRAM_WS )
|
||||
IO_MASK( R_TEST , W32 )
|
||||
|
||||
IO_STATE( R_BUS_CONFIG, CE, DISABLE )
|
||||
IO_STATE( R_BUS_CONFIG, CE, ENABLE )
|
||||
|
||||
IO_STATE( R_DRAM_TIMING, REF, IVAL2 )
|
||||
|
||||
IO_MASK( R_DRAM_TIMING, REF )
|
||||
|
||||
IO_MASK( R_EXT_DMA_0_STAT, TFR_COUNT ) >> IO_BITNR( R_EXT_DMA_0_STAT, TFR_COUNT )
|
||||
|
||||
IO_RD(R_EXT_DMA_0_STAT) & IO_MASK( R_EXT_DMA_0_STAT, S )
|
||||
== IO_STATE( R_EXT_DMA_0_STAT, S, STARTED )
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* ifndef __sv_addr_ag_h__ */
|
||||
|
64
arch/cris/include/uapi/arch-v10/arch/svinto.h
Normal file
64
arch/cris/include/uapi/arch-v10/arch/svinto.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
#ifndef _ASM_CRIS_SVINTO_H
|
||||
#define _ASM_CRIS_SVINTO_H
|
||||
|
||||
#include <arch/sv_addr_ag.h>
|
||||
|
||||
extern unsigned int genconfig_shadow; /* defined and set in head.S */
|
||||
|
||||
/* dma stuff */
|
||||
|
||||
enum { /* Available in: */
|
||||
d_eol = (1 << 0), /* flags */
|
||||
d_eop = (1 << 1), /* flags & status */
|
||||
d_wait = (1 << 2), /* flags */
|
||||
d_int = (1 << 3), /* flags */
|
||||
d_txerr = (1 << 4), /* flags */
|
||||
d_stop = (1 << 4), /* status */
|
||||
d_ecp = (1 << 4), /* flags & status */
|
||||
d_pri = (1 << 5), /* flags & status */
|
||||
d_alignerr = (1 << 6), /* status */
|
||||
d_crcerr = (1 << 7) /* status */
|
||||
};
|
||||
|
||||
/* Do remember that DMA does not go through the MMU and needs
|
||||
* a real physical address, not an address virtually mapped or
|
||||
* paged. Therefore the buf/next ptrs below are unsigned long instead
|
||||
* of void * to give a warning if you try to put a pointer directly
|
||||
* to them instead of going through virt_to_phys/phys_to_virt.
|
||||
*/
|
||||
|
||||
typedef struct etrax_dma_descr {
|
||||
unsigned short sw_len; /* 0-1 */
|
||||
unsigned short ctrl; /* 2-3 */
|
||||
unsigned long next; /* 4-7 */
|
||||
unsigned long buf; /* 8-11 */
|
||||
unsigned short hw_len; /* 12-13 */
|
||||
unsigned char status; /* 14 */
|
||||
unsigned char fifo_len; /* 15 */
|
||||
} etrax_dma_descr;
|
||||
|
||||
|
||||
/* Use this for constant numbers only */
|
||||
#define RESET_DMA_NUM( n ) \
|
||||
*R_DMA_CH##n##_CMD = IO_STATE( R_DMA_CH0_CMD, cmd, reset )
|
||||
|
||||
/* Use this for constant numbers or symbols,
|
||||
* having two macros makes it possible to use constant expressions.
|
||||
*/
|
||||
#define RESET_DMA( n ) RESET_DMA_NUM( n )
|
||||
|
||||
|
||||
/* Use this for constant numbers only */
|
||||
#define WAIT_DMA_NUM( n ) \
|
||||
while( (*R_DMA_CH##n##_CMD & IO_MASK( R_DMA_CH0_CMD, cmd )) != \
|
||||
IO_STATE( R_DMA_CH0_CMD, cmd, hold ) )
|
||||
|
||||
/* Use this for constant numbers or symbols
|
||||
* having two macros makes it possible to use constant expressions.
|
||||
*/
|
||||
#define WAIT_DMA( n ) WAIT_DMA_NUM( n )
|
||||
|
||||
extern void prepare_rx_descriptor(struct etrax_dma_descr *desc);
|
||||
extern void flush_etrax_cache(void);
|
||||
|
||||
#endif
|
46
arch/cris/include/uapi/arch-v10/arch/user.h
Normal file
46
arch/cris/include/uapi/arch-v10/arch/user.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
#ifndef __ASM_CRIS_ARCH_USER_H
|
||||
#define __ASM_CRIS_ARCH_USER_H
|
||||
|
||||
/* User mode registers, used for core dumps. In order to keep ELF_NGREG
|
||||
sensible we let all registers be 32 bits. The csr registers are included
|
||||
for future use. */
|
||||
struct user_regs_struct {
|
||||
unsigned long r0; /* General registers. */
|
||||
unsigned long r1;
|
||||
unsigned long r2;
|
||||
unsigned long r3;
|
||||
unsigned long r4;
|
||||
unsigned long r5;
|
||||
unsigned long r6;
|
||||
unsigned long r7;
|
||||
unsigned long r8;
|
||||
unsigned long r9;
|
||||
unsigned long r10;
|
||||
unsigned long r11;
|
||||
unsigned long r12;
|
||||
unsigned long r13;
|
||||
unsigned long sp; /* Stack pointer. */
|
||||
unsigned long pc; /* Program counter. */
|
||||
unsigned long p0; /* Constant zero (only 8 bits). */
|
||||
unsigned long vr; /* Version register (only 8 bits). */
|
||||
unsigned long p2; /* Reserved. */
|
||||
unsigned long p3; /* Reserved. */
|
||||
unsigned long p4; /* Constant zero (only 16 bits). */
|
||||
unsigned long ccr; /* Condition code register (only 16 bits). */
|
||||
unsigned long p6; /* Reserved. */
|
||||
unsigned long mof; /* Multiply overflow register. */
|
||||
unsigned long p8; /* Constant zero. */
|
||||
unsigned long ibr; /* Not accessible. */
|
||||
unsigned long irp; /* Not accessible. */
|
||||
unsigned long srp; /* Subroutine return pointer. */
|
||||
unsigned long bar; /* Not accessible. */
|
||||
unsigned long dccr; /* Dword condition code register. */
|
||||
unsigned long brp; /* Not accessible. */
|
||||
unsigned long usp; /* User-mode stack pointer. Same as sp when
|
||||
in user mode. */
|
||||
unsigned long csrinstr; /* Internal status registers. */
|
||||
unsigned long csraddr;
|
||||
unsigned long csrdata;
|
||||
};
|
||||
|
||||
#endif
|
3
arch/cris/include/uapi/arch-v32/arch/Kbuild
Normal file
3
arch/cris/include/uapi/arch-v32/arch/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
# UAPI Header export list
|
||||
header-y += cryptocop.h
|
||||
header-y += user.h
|
122
arch/cris/include/uapi/arch-v32/arch/cryptocop.h
Normal file
122
arch/cris/include/uapi/arch-v32/arch/cryptocop.h
Normal file
|
@ -0,0 +1,122 @@
|
|||
/*
|
||||
* The device /dev/cryptocop is accessible using this driver using
|
||||
* CRYPTOCOP_MAJOR (254) and minor number 0.
|
||||
*/
|
||||
|
||||
#ifndef _UAPICRYPTOCOP_H
|
||||
#define _UAPICRYPTOCOP_H
|
||||
|
||||
#include <linux/uio.h>
|
||||
|
||||
|
||||
#define CRYPTOCOP_SESSION_ID_NONE (0)
|
||||
|
||||
typedef unsigned long long int cryptocop_session_id;
|
||||
|
||||
/* cryptocop ioctls */
|
||||
#define ETRAXCRYPTOCOP_IOCTYPE (250)
|
||||
|
||||
#define CRYPTOCOP_IO_CREATE_SESSION _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 1, struct strcop_session_op)
|
||||
#define CRYPTOCOP_IO_CLOSE_SESSION _IOW(ETRAXCRYPTOCOP_IOCTYPE, 2, struct strcop_session_op)
|
||||
#define CRYPTOCOP_IO_PROCESS_OP _IOWR(ETRAXCRYPTOCOP_IOCTYPE, 3, struct strcop_crypto_op)
|
||||
#define CRYPTOCOP_IO_MAXNR (3)
|
||||
|
||||
typedef enum {
|
||||
cryptocop_cipher_des = 0,
|
||||
cryptocop_cipher_3des = 1,
|
||||
cryptocop_cipher_aes = 2,
|
||||
cryptocop_cipher_m2m = 3, /* mem2mem is essentially a NULL cipher with blocklength=1 */
|
||||
cryptocop_cipher_none
|
||||
} cryptocop_cipher_type;
|
||||
|
||||
typedef enum {
|
||||
cryptocop_digest_sha1 = 0,
|
||||
cryptocop_digest_md5 = 1,
|
||||
cryptocop_digest_none
|
||||
} cryptocop_digest_type;
|
||||
|
||||
typedef enum {
|
||||
cryptocop_csum_le = 0,
|
||||
cryptocop_csum_be = 1,
|
||||
cryptocop_csum_none
|
||||
} cryptocop_csum_type;
|
||||
|
||||
typedef enum {
|
||||
cryptocop_cipher_mode_ecb = 0,
|
||||
cryptocop_cipher_mode_cbc,
|
||||
cryptocop_cipher_mode_none
|
||||
} cryptocop_cipher_mode;
|
||||
|
||||
typedef enum {
|
||||
cryptocop_3des_eee = 0,
|
||||
cryptocop_3des_eed = 1,
|
||||
cryptocop_3des_ede = 2,
|
||||
cryptocop_3des_edd = 3,
|
||||
cryptocop_3des_dee = 4,
|
||||
cryptocop_3des_ded = 5,
|
||||
cryptocop_3des_dde = 6,
|
||||
cryptocop_3des_ddd = 7
|
||||
} cryptocop_3des_mode;
|
||||
|
||||
/* Usermode accessible (ioctl) operations. */
|
||||
struct strcop_session_op{
|
||||
cryptocop_session_id ses_id;
|
||||
|
||||
cryptocop_cipher_type cipher; /* AES, DES, 3DES, m2m, none */
|
||||
|
||||
cryptocop_cipher_mode cmode; /* ECB, CBC, none */
|
||||
cryptocop_3des_mode des3_mode;
|
||||
|
||||
cryptocop_digest_type digest; /* MD5, SHA1, none */
|
||||
|
||||
cryptocop_csum_type csum; /* BE, LE, none */
|
||||
|
||||
unsigned char *key;
|
||||
size_t keylen;
|
||||
};
|
||||
|
||||
#define CRYPTOCOP_CSUM_LENGTH (2)
|
||||
#define CRYPTOCOP_MAX_DIGEST_LENGTH (20) /* SHA-1 20, MD5 16 */
|
||||
#define CRYPTOCOP_MAX_IV_LENGTH (16) /* (3)DES==8, AES == 16 */
|
||||
#define CRYPTOCOP_MAX_KEY_LENGTH (32)
|
||||
|
||||
struct strcop_crypto_op{
|
||||
cryptocop_session_id ses_id;
|
||||
|
||||
/* Indata. */
|
||||
unsigned char *indata;
|
||||
size_t inlen; /* Total indata length. */
|
||||
|
||||
/* Cipher configuration. */
|
||||
unsigned char do_cipher:1;
|
||||
unsigned char decrypt:1; /* 1 == decrypt, 0 == encrypt */
|
||||
unsigned char cipher_explicit:1;
|
||||
size_t cipher_start;
|
||||
size_t cipher_len;
|
||||
/* cipher_iv is used if do_cipher and cipher_explicit and the cipher
|
||||
mode is CBC. The length is controlled by the type of cipher,
|
||||
e.g. DES/3DES 8 octets and AES 16 octets. */
|
||||
unsigned char cipher_iv[CRYPTOCOP_MAX_IV_LENGTH];
|
||||
/* Outdata. */
|
||||
unsigned char *cipher_outdata;
|
||||
size_t cipher_outlen;
|
||||
|
||||
/* digest configuration. */
|
||||
unsigned char do_digest:1;
|
||||
size_t digest_start;
|
||||
size_t digest_len;
|
||||
/* Outdata. The actual length is determined by the type of the digest. */
|
||||
unsigned char digest[CRYPTOCOP_MAX_DIGEST_LENGTH];
|
||||
|
||||
/* Checksum configuration. */
|
||||
unsigned char do_csum:1;
|
||||
size_t csum_start;
|
||||
size_t csum_len;
|
||||
/* Outdata. */
|
||||
unsigned char csum[CRYPTOCOP_CSUM_LENGTH];
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* _UAPICRYPTOCOP_H */
|
41
arch/cris/include/uapi/arch-v32/arch/user.h
Normal file
41
arch/cris/include/uapi/arch-v32/arch/user.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
#ifndef _ASM_CRIS_ARCH_USER_H
|
||||
#define _ASM_CRIS_ARCH_USER_H
|
||||
|
||||
/* User-mode register used for core dumps. */
|
||||
|
||||
struct user_regs_struct {
|
||||
unsigned long r0; /* General registers. */
|
||||
unsigned long r1;
|
||||
unsigned long r2;
|
||||
unsigned long r3;
|
||||
unsigned long r4;
|
||||
unsigned long r5;
|
||||
unsigned long r6;
|
||||
unsigned long r7;
|
||||
unsigned long r8;
|
||||
unsigned long r9;
|
||||
unsigned long r10;
|
||||
unsigned long r11;
|
||||
unsigned long r12;
|
||||
unsigned long r13;
|
||||
unsigned long sp; /* R14, Stack pointer. */
|
||||
unsigned long acr; /* R15, Address calculation register. */
|
||||
unsigned long bz; /* P0, Constant zero (8-bits). */
|
||||
unsigned long vr; /* P1, Version register (8-bits). */
|
||||
unsigned long pid; /* P2, Process ID (8-bits). */
|
||||
unsigned long srs; /* P3, Support register select (8-bits). */
|
||||
unsigned long wz; /* P4, Constant zero (16-bits). */
|
||||
unsigned long exs; /* P5, Exception status. */
|
||||
unsigned long eda; /* P6, Exception data address. */
|
||||
unsigned long mof; /* P7, Multiply overflow regiter. */
|
||||
unsigned long dz; /* P8, Constant zero (32-bits). */
|
||||
unsigned long ebp; /* P9, Exception base pointer. */
|
||||
unsigned long erp; /* P10, Exception return pointer. */
|
||||
unsigned long srp; /* P11, Subroutine return pointer. */
|
||||
unsigned long nrp; /* P12, NMI return pointer. */
|
||||
unsigned long ccs; /* P13, Condition code stack. */
|
||||
unsigned long usp; /* P14, User mode stack pointer. */
|
||||
unsigned long spc; /* P15, Single step PC. */
|
||||
};
|
||||
|
||||
#endif /* _ASM_CRIS_ARCH_USER_H */
|
39
arch/cris/include/uapi/asm/Kbuild
Normal file
39
arch/cris/include/uapi/asm/Kbuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# UAPI Header export list
|
||||
include include/uapi/asm-generic/Kbuild.asm
|
||||
|
||||
header-y += arch-v10/
|
||||
header-y += arch-v32/
|
||||
header-y += auxvec.h
|
||||
header-y += bitsperlong.h
|
||||
header-y += byteorder.h
|
||||
header-y += errno.h
|
||||
header-y += ethernet.h
|
||||
header-y += etraxgpio.h
|
||||
header-y += fcntl.h
|
||||
header-y += ioctl.h
|
||||
header-y += ioctls.h
|
||||
header-y += ipcbuf.h
|
||||
header-y += mman.h
|
||||
header-y += msgbuf.h
|
||||
header-y += param.h
|
||||
header-y += poll.h
|
||||
header-y += posix_types.h
|
||||
header-y += ptrace.h
|
||||
header-y += resource.h
|
||||
header-y += rs485.h
|
||||
header-y += sembuf.h
|
||||
header-y += setup.h
|
||||
header-y += shmbuf.h
|
||||
header-y += sigcontext.h
|
||||
header-y += siginfo.h
|
||||
header-y += signal.h
|
||||
header-y += socket.h
|
||||
header-y += sockios.h
|
||||
header-y += stat.h
|
||||
header-y += statfs.h
|
||||
header-y += swab.h
|
||||
header-y += sync_serial.h
|
||||
header-y += termbits.h
|
||||
header-y += termios.h
|
||||
header-y += types.h
|
||||
header-y += unistd.h
|
4
arch/cris/include/uapi/asm/auxvec.h
Normal file
4
arch/cris/include/uapi/asm/auxvec.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#ifndef __ASMCRIS_AUXVEC_H
|
||||
#define __ASMCRIS_AUXVEC_H
|
||||
|
||||
#endif
|
1
arch/cris/include/uapi/asm/bitsperlong.h
Normal file
1
arch/cris/include/uapi/asm/bitsperlong.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/bitsperlong.h>
|
8
arch/cris/include/uapi/asm/byteorder.h
Normal file
8
arch/cris/include/uapi/asm/byteorder.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef _CRIS_BYTEORDER_H
|
||||
#define _CRIS_BYTEORDER_H
|
||||
|
||||
#include <linux/byteorder/little_endian.h>
|
||||
|
||||
#endif
|
||||
|
||||
|
6
arch/cris/include/uapi/asm/errno.h
Normal file
6
arch/cris/include/uapi/asm/errno.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _CRIS_ERRNO_H
|
||||
#define _CRIS_ERRNO_H
|
||||
|
||||
#include <asm-generic/errno.h>
|
||||
|
||||
#endif
|
21
arch/cris/include/uapi/asm/ethernet.h
Normal file
21
arch/cris/include/uapi/asm/ethernet.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* ioctl defines for ethernet driver
|
||||
*
|
||||
* Copyright (c) 2001 Axis Communications AB
|
||||
*
|
||||
* Author: Mikael Starvik
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CRIS_ETHERNET_H
|
||||
#define _CRIS_ETHERNET_H
|
||||
#define SET_ETH_SPEED_AUTO SIOCDEVPRIVATE /* Auto neg speed */
|
||||
#define SET_ETH_SPEED_10 SIOCDEVPRIVATE+1 /* 10 Mbps */
|
||||
#define SET_ETH_SPEED_100 SIOCDEVPRIVATE+2 /* 100 Mbps. */
|
||||
#define SET_ETH_DUPLEX_AUTO SIOCDEVPRIVATE+3 /* Auto neg duplex */
|
||||
#define SET_ETH_DUPLEX_HALF SIOCDEVPRIVATE+4 /* Full duplex */
|
||||
#define SET_ETH_DUPLEX_FULL SIOCDEVPRIVATE+5 /* Half duplex */
|
||||
#define SET_ETH_ENABLE_LEDS SIOCDEVPRIVATE+6 /* Enable net LEDs */
|
||||
#define SET_ETH_DISABLE_LEDS SIOCDEVPRIVATE+7 /* Disable net LEDs */
|
||||
#define SET_ETH_AUTONEG SIOCDEVPRIVATE+8
|
||||
#endif /* _CRIS_ETHERNET_H */
|
239
arch/cris/include/uapi/asm/etraxgpio.h
Normal file
239
arch/cris/include/uapi/asm/etraxgpio.h
Normal file
|
@ -0,0 +1,239 @@
|
|||
/*
|
||||
* The following devices are accessible using this driver using
|
||||
* GPIO_MAJOR (120) and a couple of minor numbers.
|
||||
*
|
||||
* For ETRAX 100LX (CONFIG_ETRAX_ARCH_V10):
|
||||
* /dev/gpioa minor 0, 8 bit GPIO, each bit can change direction
|
||||
* /dev/gpiob minor 1, 8 bit GPIO, each bit can change direction
|
||||
* /dev/leds minor 2, Access to leds depending on kernelconfig
|
||||
* /dev/gpiog minor 3
|
||||
* g0dir, g8_15dir, g16_23dir, g24 dir configurable in R_GEN_CONFIG
|
||||
* g1-g7 and g25-g31 is both input and outputs but on different pins
|
||||
* Also note that some bits change pins depending on what interfaces
|
||||
* are enabled.
|
||||
*
|
||||
* For ETRAX FS (CONFIG_ETRAXFS):
|
||||
* /dev/gpioa minor 0, 8 bit GPIO, each bit can change direction
|
||||
* /dev/gpiob minor 1, 18 bit GPIO, each bit can change direction
|
||||
* /dev/gpioc minor 3, 18 bit GPIO, each bit can change direction
|
||||
* /dev/gpiod minor 4, 18 bit GPIO, each bit can change direction
|
||||
* /dev/gpioe minor 5, 18 bit GPIO, each bit can change direction
|
||||
* /dev/leds minor 2, Access to leds depending on kernelconfig
|
||||
*
|
||||
* For ARTPEC-3 (CONFIG_CRIS_MACH_ARTPEC3):
|
||||
* /dev/gpioa minor 0, 32 bit GPIO, each bit can change direction
|
||||
* /dev/gpiob minor 1, 32 bit GPIO, each bit can change direction
|
||||
* /dev/gpioc minor 3, 16 bit GPIO, each bit can change direction
|
||||
* /dev/gpiod minor 4, 32 bit GPIO, input only
|
||||
* /dev/leds minor 2, Access to leds depending on kernelconfig
|
||||
* /dev/pwm0 minor 16, PWM channel 0 on PA30
|
||||
* /dev/pwm1 minor 17, PWM channel 1 on PA31
|
||||
* /dev/pwm2 minor 18, PWM channel 2 on PB26
|
||||
* /dev/ppwm minor 19, PPWM channel
|
||||
*
|
||||
*/
|
||||
#ifndef _ASM_ETRAXGPIO_H
|
||||
#define _ASM_ETRAXGPIO_H
|
||||
|
||||
#define GPIO_MINOR_FIRST 0
|
||||
|
||||
#define ETRAXGPIO_IOCTYPE 43
|
||||
|
||||
/* etraxgpio _IOC_TYPE, bits 8 to 15 in ioctl cmd */
|
||||
#ifdef CONFIG_ETRAX_ARCH_V10
|
||||
#define GPIO_MINOR_A 0
|
||||
#define GPIO_MINOR_B 1
|
||||
#define GPIO_MINOR_LEDS 2
|
||||
#define GPIO_MINOR_G 3
|
||||
#define GPIO_MINOR_LAST 3
|
||||
#define GPIO_MINOR_LAST_REAL GPIO_MINOR_LAST
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ETRAXFS
|
||||
#define GPIO_MINOR_A 0
|
||||
#define GPIO_MINOR_B 1
|
||||
#define GPIO_MINOR_LEDS 2
|
||||
#define GPIO_MINOR_C 3
|
||||
#define GPIO_MINOR_D 4
|
||||
#define GPIO_MINOR_E 5
|
||||
#ifdef CONFIG_ETRAX_VIRTUAL_GPIO
|
||||
#define GPIO_MINOR_V 6
|
||||
#define GPIO_MINOR_LAST 6
|
||||
#else
|
||||
#define GPIO_MINOR_LAST 5
|
||||
#endif
|
||||
#define GPIO_MINOR_LAST_REAL GPIO_MINOR_LAST
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CRIS_MACH_ARTPEC3
|
||||
#define GPIO_MINOR_A 0
|
||||
#define GPIO_MINOR_B 1
|
||||
#define GPIO_MINOR_LEDS 2
|
||||
#define GPIO_MINOR_C 3
|
||||
#define GPIO_MINOR_D 4
|
||||
#ifdef CONFIG_ETRAX_VIRTUAL_GPIO
|
||||
#define GPIO_MINOR_V 6
|
||||
#define GPIO_MINOR_LAST 6
|
||||
#else
|
||||
#define GPIO_MINOR_LAST 4
|
||||
#endif
|
||||
#define GPIO_MINOR_FIRST_PWM 16
|
||||
#define GPIO_MINOR_PWM0 (GPIO_MINOR_FIRST_PWM+0)
|
||||
#define GPIO_MINOR_PWM1 (GPIO_MINOR_FIRST_PWM+1)
|
||||
#define GPIO_MINOR_PWM2 (GPIO_MINOR_FIRST_PWM+2)
|
||||
#define GPIO_MINOR_PPWM (GPIO_MINOR_FIRST_PWM+3)
|
||||
#define GPIO_MINOR_LAST_PWM GPIO_MINOR_PPWM
|
||||
#define GPIO_MINOR_LAST_REAL GPIO_MINOR_LAST_PWM
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* supported ioctl _IOC_NR's */
|
||||
|
||||
#define IO_READBITS 0x1 /* read and return current port bits (obsolete) */
|
||||
#define IO_SETBITS 0x2 /* set the bits marked by 1 in the argument */
|
||||
#define IO_CLRBITS 0x3 /* clear the bits marked by 1 in the argument */
|
||||
|
||||
/* the alarm is waited for by select() */
|
||||
|
||||
#define IO_HIGHALARM 0x4 /* set alarm on high for bits marked by 1 */
|
||||
#define IO_LOWALARM 0x5 /* set alarm on low for bits marked by 1 */
|
||||
#define IO_CLRALARM 0x6 /* clear alarm for bits marked by 1 */
|
||||
|
||||
/* LED ioctl */
|
||||
#define IO_LEDACTIVE_SET 0x7 /* set active led
|
||||
* 0=off, 1=green, 2=red, 3=yellow */
|
||||
|
||||
/* GPIO direction ioctl's */
|
||||
#define IO_READDIR 0x8 /* Read direction 0=input 1=output (obsolete) */
|
||||
#define IO_SETINPUT 0x9 /* Set direction for bits set, 0=unchanged 1=input,
|
||||
returns mask with current inputs (obsolete) */
|
||||
#define IO_SETOUTPUT 0xA /* Set direction for bits set, 0=unchanged 1=output,
|
||||
returns mask with current outputs (obsolete)*/
|
||||
|
||||
/* LED ioctl extended */
|
||||
#define IO_LED_SETBIT 0xB
|
||||
#define IO_LED_CLRBIT 0xC
|
||||
|
||||
/* SHUTDOWN ioctl */
|
||||
#define IO_SHUTDOWN 0xD
|
||||
#define IO_GET_PWR_BT 0xE
|
||||
|
||||
/* Bit toggling in driver settings */
|
||||
/* bit set in low byte0 is CLK mask (0x00FF),
|
||||
bit set in byte1 is DATA mask (0xFF00)
|
||||
msb, data_mask[7:0] , clk_mask[7:0]
|
||||
*/
|
||||
#define IO_CFG_WRITE_MODE 0xF
|
||||
#define IO_CFG_WRITE_MODE_VALUE(msb, data_mask, clk_mask) \
|
||||
( (((msb)&1) << 16) | (((data_mask) &0xFF) << 8) | ((clk_mask) & 0xFF) )
|
||||
|
||||
/* The following 4 ioctl's take a pointer as argument and handles
|
||||
* 32 bit ports (port G) properly.
|
||||
* These replaces IO_READBITS,IO_SETINPUT AND IO_SETOUTPUT
|
||||
*/
|
||||
#define IO_READ_INBITS 0x10 /* *arg is result of reading the input pins */
|
||||
#define IO_READ_OUTBITS 0x11 /* *arg is result of reading the output shadow */
|
||||
#define IO_SETGET_INPUT 0x12 /* bits set in *arg is set to input, */
|
||||
/* *arg updated with current input pins. */
|
||||
#define IO_SETGET_OUTPUT 0x13 /* bits set in *arg is set to output, */
|
||||
/* *arg updated with current output pins. */
|
||||
|
||||
/* The following ioctl's are applicable to the PWM channels only */
|
||||
|
||||
#define IO_PWM_SET_MODE 0x20
|
||||
|
||||
enum io_pwm_mode {
|
||||
PWM_OFF = 0, /* disabled, deallocated */
|
||||
PWM_STANDARD = 1, /* 390 kHz, duty cycle 0..255/256 */
|
||||
PWM_FAST = 2, /* variable freq, w/ 10ns active pulse len */
|
||||
PWM_VARFREQ = 3, /* individually configurable high/low periods */
|
||||
PWM_SOFT = 4 /* software generated */
|
||||
};
|
||||
|
||||
struct io_pwm_set_mode {
|
||||
enum io_pwm_mode mode;
|
||||
};
|
||||
|
||||
/* Only for mode PWM_VARFREQ. Period lo/high set in increments of 10ns
|
||||
* from 10ns (value = 0) to 81920ns (value = 8191)
|
||||
* (Resulting frequencies range from 50 MHz (10ns + 10ns) down to
|
||||
* 6.1 kHz (81920ns + 81920ns) at 50% duty cycle, to 12.2 kHz at min/max duty
|
||||
* cycle (81920 + 10ns or 10ns + 81920ns, respectively).)
|
||||
*/
|
||||
#define IO_PWM_SET_PERIOD 0x21
|
||||
|
||||
struct io_pwm_set_period {
|
||||
unsigned int lo; /* 0..8191 */
|
||||
unsigned int hi; /* 0..8191 */
|
||||
};
|
||||
|
||||
/* Only for modes PWM_STANDARD and PWM_FAST.
|
||||
* For PWM_STANDARD, set duty cycle of 390 kHz PWM output signal, from
|
||||
* 0 (value = 0) to 255/256 (value = 255).
|
||||
* For PWM_FAST, set duty cycle of PWM output signal from
|
||||
* 0% (value = 0) to 100% (value = 255). Output signal in this mode
|
||||
* is a 10ns pulse surrounded by a high or low level depending on duty
|
||||
* cycle (except for 0% and 100% which result in a constant output).
|
||||
* Resulting output frequency varies from 50 MHz at 50% duty cycle,
|
||||
* down to 390 kHz at min/max duty cycle.
|
||||
*/
|
||||
#define IO_PWM_SET_DUTY 0x22
|
||||
|
||||
struct io_pwm_set_duty {
|
||||
int duty; /* 0..255 */
|
||||
};
|
||||
|
||||
/* Returns information about the latest PWM pulse.
|
||||
* lo: Length of the latest low period, in units of 10ns.
|
||||
* hi: Length of the latest high period, in units of 10ns.
|
||||
* cnt: Time since last detected edge, in units of 10ns.
|
||||
*
|
||||
* The input source to PWM is decied by IO_PWM_SET_INPUT_SRC.
|
||||
*
|
||||
* NOTE: All PWM devices is connected to the same input source.
|
||||
*/
|
||||
#define IO_PWM_GET_PERIOD 0x23
|
||||
|
||||
struct io_pwm_get_period {
|
||||
unsigned int lo;
|
||||
unsigned int hi;
|
||||
unsigned int cnt;
|
||||
};
|
||||
|
||||
/* Sets the input source for the PWM input. For the src value see the
|
||||
* register description for gio:rw_pwm_in_cfg.
|
||||
*
|
||||
* NOTE: All PWM devices is connected to the same input source.
|
||||
*/
|
||||
#define IO_PWM_SET_INPUT_SRC 0x24
|
||||
struct io_pwm_set_input_src {
|
||||
unsigned int src; /* 0..7 */
|
||||
};
|
||||
|
||||
/* Sets the duty cycles in steps of 1/256, 0 = 0%, 255 = 100% duty cycle */
|
||||
#define IO_PPWM_SET_DUTY 0x25
|
||||
|
||||
struct io_ppwm_set_duty {
|
||||
int duty; /* 0..255 */
|
||||
};
|
||||
|
||||
/* Configuraton struct for the IO_PWMCLK_SET_CONFIG ioctl to configure
|
||||
* PWM capable gpio pins:
|
||||
*/
|
||||
#define IO_PWMCLK_SETGET_CONFIG 0x26
|
||||
struct gpio_pwmclk_conf {
|
||||
unsigned int gpiopin; /* The pin number based on the opened device */
|
||||
unsigned int baseclk; /* The base clock to use, or sw will select one close*/
|
||||
unsigned int low; /* The number of low periods of the baseclk */
|
||||
unsigned int high; /* The number of high periods of the baseclk */
|
||||
};
|
||||
|
||||
/* Examples:
|
||||
* To get a symmetric 12 MHz clock without knowing anything about the hardware:
|
||||
* baseclk = 12000000, low = 0, high = 0
|
||||
* To just get info of current setting:
|
||||
* baseclk = 0, low = 0, high = 0, the values will be updated by driver.
|
||||
*/
|
||||
|
||||
#endif
|
1
arch/cris/include/uapi/asm/fcntl.h
Normal file
1
arch/cris/include/uapi/asm/fcntl.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/fcntl.h>
|
1
arch/cris/include/uapi/asm/ioctl.h
Normal file
1
arch/cris/include/uapi/asm/ioctl.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/ioctl.h>
|
11
arch/cris/include/uapi/asm/ioctls.h
Normal file
11
arch/cris/include/uapi/asm/ioctls.h
Normal file
|
@ -0,0 +1,11 @@
|
|||
#ifndef __ARCH_CRIS_IOCTLS_H__
|
||||
#define __ARCH_CRIS_IOCTLS_H__
|
||||
|
||||
#define TIOCSERGSTRUCT 0x5458 /* For debugging only */
|
||||
#define TIOCSERSETRS485 0x5461 /* enable rs-485 (deprecated) */
|
||||
#define TIOCSERWRRS485 0x5462 /* write rs-485 */
|
||||
#define TIOCSRS485 0x5463 /* enable rs-485 */
|
||||
|
||||
#include <asm-generic/ioctls.h>
|
||||
|
||||
#endif
|
1
arch/cris/include/uapi/asm/ipcbuf.h
Normal file
1
arch/cris/include/uapi/asm/ipcbuf.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/ipcbuf.h>
|
1
arch/cris/include/uapi/asm/kvm_para.h
Normal file
1
arch/cris/include/uapi/asm/kvm_para.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/kvm_para.h>
|
1
arch/cris/include/uapi/asm/mman.h
Normal file
1
arch/cris/include/uapi/asm/mman.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/mman.h>
|
33
arch/cris/include/uapi/asm/msgbuf.h
Normal file
33
arch/cris/include/uapi/asm/msgbuf.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#ifndef _CRIS_MSGBUF_H
|
||||
#define _CRIS_MSGBUF_H
|
||||
|
||||
/* verbatim copy of asm-i386 version */
|
||||
|
||||
/*
|
||||
* The msqid64_ds structure for CRIS architecture.
|
||||
* Note extra padding because this structure is passed back and forth
|
||||
* between kernel and user space.
|
||||
*
|
||||
* 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 */
|
||||
unsigned long __unused1;
|
||||
__kernel_time_t msg_rtime; /* last msgrcv time */
|
||||
unsigned long __unused2;
|
||||
__kernel_time_t msg_ctime; /* last change time */
|
||||
unsigned long __unused3;
|
||||
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 /* _CRIS_MSGBUF_H */
|
10
arch/cris/include/uapi/asm/param.h
Normal file
10
arch/cris/include/uapi/asm/param.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef _ASMCRIS_PARAM_H
|
||||
#define _ASMCRIS_PARAM_H
|
||||
|
||||
/* Currently we assume that HZ=100 is good for CRIS. */
|
||||
|
||||
#define EXEC_PAGESIZE 8192
|
||||
|
||||
#include <asm-generic/param.h>
|
||||
|
||||
#endif /* _ASMCRIS_PARAM_H */
|
1
arch/cris/include/uapi/asm/poll.h
Normal file
1
arch/cris/include/uapi/asm/poll.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/poll.h>
|
30
arch/cris/include/uapi/asm/posix_types.h
Normal file
30
arch/cris/include/uapi/asm/posix_types.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* $Id: posix_types.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
|
||||
|
||||
/* We cheat a bit and use our C-coded bitops functions from asm/bitops.h */
|
||||
/* I guess we should write these in assembler because they are used often. */
|
||||
|
||||
#ifndef __ARCH_CRIS_POSIX_TYPES_H
|
||||
#define __ARCH_CRIS_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 short __kernel_mode_t;
|
||||
#define __kernel_mode_t __kernel_mode_t
|
||||
|
||||
typedef unsigned short __kernel_ipc_pid_t;
|
||||
#define __kernel_ipc_pid_t __kernel_ipc_pid_t
|
||||
|
||||
typedef unsigned short __kernel_uid_t;
|
||||
typedef unsigned short __kernel_gid_t;
|
||||
#define __kernel_uid_t __kernel_uid_t
|
||||
|
||||
typedef unsigned short __kernel_old_dev_t;
|
||||
#define __kernel_old_dev_t __kernel_old_dev_t
|
||||
|
||||
#include <asm-generic/posix_types.h>
|
||||
|
||||
#endif /* __ARCH_CRIS_POSIX_TYPES_H */
|
1
arch/cris/include/uapi/asm/ptrace.h
Normal file
1
arch/cris/include/uapi/asm/ptrace.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <arch/ptrace.h>
|
6
arch/cris/include/uapi/asm/resource.h
Normal file
6
arch/cris/include/uapi/asm/resource.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _CRIS_RESOURCE_H
|
||||
#define _CRIS_RESOURCE_H
|
||||
|
||||
#include <asm-generic/resource.h>
|
||||
|
||||
#endif
|
18
arch/cris/include/uapi/asm/rs485.h
Normal file
18
arch/cris/include/uapi/asm/rs485.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* RS-485 structures */
|
||||
|
||||
/* Used with ioctl() TIOCSERSETRS485 for backward compatibility!
|
||||
* XXX: Do not use it for new code!
|
||||
*/
|
||||
struct rs485_control {
|
||||
unsigned short rts_on_send;
|
||||
unsigned short rts_after_sent;
|
||||
unsigned long delay_rts_before_send;
|
||||
unsigned short enabled;
|
||||
};
|
||||
|
||||
/* Used with ioctl() TIOCSERWRRS485 */
|
||||
struct rs485_write {
|
||||
unsigned short outc_size;
|
||||
unsigned char *outc;
|
||||
};
|
||||
|
25
arch/cris/include/uapi/asm/sembuf.h
Normal file
25
arch/cris/include/uapi/asm/sembuf.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
#ifndef _CRIS_SEMBUF_H
|
||||
#define _CRIS_SEMBUF_H
|
||||
|
||||
/*
|
||||
* The semid64_ds structure for CRIS architecture.
|
||||
* Note extra padding because this structure is passed back and forth
|
||||
* between kernel and user space.
|
||||
*
|
||||
* Pad space is left for:
|
||||
* - 64-bit time_t to solve y2038 problem
|
||||
* - 2 miscellaneous 32-bit values
|
||||
*/
|
||||
|
||||
struct semid64_ds {
|
||||
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
|
||||
__kernel_time_t sem_otime; /* last semop time */
|
||||
unsigned long __unused1;
|
||||
__kernel_time_t sem_ctime; /* last change time */
|
||||
unsigned long __unused2;
|
||||
unsigned long sem_nsems; /* no. of semaphores in array */
|
||||
unsigned long __unused3;
|
||||
unsigned long __unused4;
|
||||
};
|
||||
|
||||
#endif /* _CRIS_SEMBUF_H */
|
6
arch/cris/include/uapi/asm/setup.h
Normal file
6
arch/cris/include/uapi/asm/setup.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _CRIS_SETUP_H
|
||||
#define _CRIS_SETUP_H
|
||||
|
||||
#define COMMAND_LINE_SIZE 256
|
||||
|
||||
#endif
|
42
arch/cris/include/uapi/asm/shmbuf.h
Normal file
42
arch/cris/include/uapi/asm/shmbuf.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
#ifndef _CRIS_SHMBUF_H
|
||||
#define _CRIS_SHMBUF_H
|
||||
|
||||
/*
|
||||
* The shmid64_ds structure for CRIS architecture (same as for i386)
|
||||
* Note extra padding because this structure is passed back and forth
|
||||
* between kernel and user space.
|
||||
*
|
||||
* Pad space is left for:
|
||||
* - 64-bit time_t to solve y2038 problem
|
||||
* - 2 miscellaneous 32-bit values
|
||||
*/
|
||||
|
||||
struct shmid64_ds {
|
||||
struct ipc64_perm shm_perm; /* operation perms */
|
||||
size_t shm_segsz; /* size of segment (bytes) */
|
||||
__kernel_time_t shm_atime; /* last attach time */
|
||||
unsigned long __unused1;
|
||||
__kernel_time_t shm_dtime; /* last detach time */
|
||||
unsigned long __unused2;
|
||||
__kernel_time_t shm_ctime; /* last change time */
|
||||
unsigned long __unused3;
|
||||
__kernel_pid_t shm_cpid; /* pid of creator */
|
||||
__kernel_pid_t shm_lpid; /* pid of last operator */
|
||||
unsigned long shm_nattch; /* no. of current attaches */
|
||||
unsigned long __unused4;
|
||||
unsigned long __unused5;
|
||||
};
|
||||
|
||||
struct shminfo64 {
|
||||
unsigned long shmmax;
|
||||
unsigned long shmmin;
|
||||
unsigned long shmmni;
|
||||
unsigned long shmseg;
|
||||
unsigned long shmall;
|
||||
unsigned long __unused1;
|
||||
unsigned long __unused2;
|
||||
unsigned long __unused3;
|
||||
unsigned long __unused4;
|
||||
};
|
||||
|
||||
#endif /* _CRIS_SHMBUF_H */
|
24
arch/cris/include/uapi/asm/sigcontext.h
Normal file
24
arch/cris/include/uapi/asm/sigcontext.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/* $Id: sigcontext.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
|
||||
|
||||
#ifndef _ASM_CRIS_SIGCONTEXT_H
|
||||
#define _ASM_CRIS_SIGCONTEXT_H
|
||||
|
||||
#include <asm/ptrace.h>
|
||||
|
||||
/* This struct is saved by setup_frame in signal.c, to keep the current context while
|
||||
a signal handler is executed. It's restored by sys_sigreturn.
|
||||
|
||||
To keep things simple, we use pt_regs here even though normally you just specify
|
||||
the list of regs to save. Then we can use copy_from_user on the entire regs instead
|
||||
of a bunch of get_user's as well...
|
||||
|
||||
*/
|
||||
|
||||
struct sigcontext {
|
||||
struct pt_regs regs; /* needs to be first */
|
||||
unsigned long oldmask;
|
||||
unsigned long usp; /* usp before stacking this gunk on it */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
6
arch/cris/include/uapi/asm/siginfo.h
Normal file
6
arch/cris/include/uapi/asm/siginfo.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _CRIS_SIGINFO_H
|
||||
#define _CRIS_SIGINFO_H
|
||||
|
||||
#include <asm-generic/siginfo.h>
|
||||
|
||||
#endif
|
116
arch/cris/include/uapi/asm/signal.h
Normal file
116
arch/cris/include/uapi/asm/signal.h
Normal file
|
@ -0,0 +1,116 @@
|
|||
#ifndef _UAPI_ASM_CRIS_SIGNAL_H
|
||||
#define _UAPI_ASM_CRIS_SIGNAL_H
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
/* Avoid too many header ordering problems. */
|
||||
struct siginfo;
|
||||
|
||||
#ifndef __KERNEL__
|
||||
/* Here we must cater to libcs that poke about in kernel headers. */
|
||||
|
||||
#define NSIG 32
|
||||
typedef unsigned long sigset_t;
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#define SIGHUP 1
|
||||
#define SIGINT 2
|
||||
#define SIGQUIT 3
|
||||
#define SIGILL 4
|
||||
#define SIGTRAP 5
|
||||
#define SIGABRT 6
|
||||
#define SIGIOT 6
|
||||
#define SIGBUS 7
|
||||
#define SIGFPE 8
|
||||
#define SIGKILL 9
|
||||
#define SIGUSR1 10
|
||||
#define SIGSEGV 11
|
||||
#define SIGUSR2 12
|
||||
#define SIGPIPE 13
|
||||
#define SIGALRM 14
|
||||
#define SIGTERM 15
|
||||
#define SIGSTKFLT 16
|
||||
#define SIGCHLD 17
|
||||
#define SIGCONT 18
|
||||
#define SIGSTOP 19
|
||||
#define SIGTSTP 20
|
||||
#define SIGTTIN 21
|
||||
#define SIGTTOU 22
|
||||
#define SIGURG 23
|
||||
#define SIGXCPU 24
|
||||
#define SIGXFSZ 25
|
||||
#define SIGVTALRM 26
|
||||
#define SIGPROF 27
|
||||
#define SIGWINCH 28
|
||||
#define SIGIO 29
|
||||
#define SIGPOLL SIGIO
|
||||
/*
|
||||
#define SIGLOST 29
|
||||
*/
|
||||
#define SIGPWR 30
|
||||
#define SIGSYS 31
|
||||
#define SIGUNUSED 31
|
||||
|
||||
/* These should not be considered constants from userland. */
|
||||
#define SIGRTMIN 32
|
||||
#define SIGRTMAX _NSIG
|
||||
|
||||
/*
|
||||
* SA_FLAGS values:
|
||||
*
|
||||
* SA_ONSTACK indicates that a registered stack_t will be used.
|
||||
* SA_RESTART flag to get restarting signals (which were the default long ago)
|
||||
* SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
|
||||
* SA_RESETHAND clears the handler when the signal is delivered.
|
||||
* SA_NOCLDWAIT flag on SIGCHLD to inhibit zombies.
|
||||
* SA_NODEFER prevents the current signal from being masked in the handler.
|
||||
*
|
||||
* SA_ONESHOT and SA_NOMASK are the historical Linux names for the Single
|
||||
* Unix names RESETHAND and NODEFER respectively.
|
||||
*/
|
||||
|
||||
#define SA_NOCLDSTOP 0x00000001u
|
||||
#define SA_NOCLDWAIT 0x00000002u
|
||||
#define SA_SIGINFO 0x00000004u
|
||||
#define SA_ONSTACK 0x08000000u
|
||||
#define SA_RESTART 0x10000000u
|
||||
#define SA_NODEFER 0x40000000u
|
||||
#define SA_RESETHAND 0x80000000u
|
||||
|
||||
#define SA_NOMASK SA_NODEFER
|
||||
#define SA_ONESHOT SA_RESETHAND
|
||||
|
||||
#define SA_RESTORER 0x04000000
|
||||
|
||||
#define MINSIGSTKSZ 2048
|
||||
#define SIGSTKSZ 8192
|
||||
|
||||
#include <asm-generic/signal-defs.h>
|
||||
|
||||
#ifndef __KERNEL__
|
||||
/* Here we must cater to libcs that poke about in kernel headers. */
|
||||
|
||||
struct sigaction {
|
||||
union {
|
||||
__sighandler_t _sa_handler;
|
||||
void (*_sa_sigaction)(int, struct siginfo *, void *);
|
||||
} _u;
|
||||
sigset_t sa_mask;
|
||||
unsigned long sa_flags;
|
||||
void (*sa_restorer)(void);
|
||||
};
|
||||
|
||||
#define sa_handler _u._sa_handler
|
||||
#define sa_sigaction _u._sa_sigaction
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
typedef struct sigaltstack {
|
||||
void *ss_sp;
|
||||
int ss_flags;
|
||||
size_t ss_size;
|
||||
} stack_t;
|
||||
|
||||
|
||||
#endif /* _UAPI_ASM_CRIS_SIGNAL_H */
|
87
arch/cris/include/uapi/asm/socket.h
Normal file
87
arch/cris/include/uapi/asm/socket.h
Normal file
|
@ -0,0 +1,87 @@
|
|||
#ifndef _ASM_SOCKET_H
|
||||
#define _ASM_SOCKET_H
|
||||
|
||||
/* almost the same as asm-i386/socket.h */
|
||||
|
||||
#include <asm/sockios.h>
|
||||
|
||||
/* For setsockoptions(2) */
|
||||
#define SOL_SOCKET 1
|
||||
|
||||
#define SO_DEBUG 1
|
||||
#define SO_REUSEADDR 2
|
||||
#define SO_TYPE 3
|
||||
#define SO_ERROR 4
|
||||
#define SO_DONTROUTE 5
|
||||
#define SO_BROADCAST 6
|
||||
#define SO_SNDBUF 7
|
||||
#define SO_RCVBUF 8
|
||||
#define SO_SNDBUFFORCE 32
|
||||
#define SO_RCVBUFFORCE 33
|
||||
#define SO_KEEPALIVE 9
|
||||
#define SO_OOBINLINE 10
|
||||
#define SO_NO_CHECK 11
|
||||
#define SO_PRIORITY 12
|
||||
#define SO_LINGER 13
|
||||
#define SO_BSDCOMPAT 14
|
||||
#define SO_REUSEPORT 15
|
||||
#define SO_PASSCRED 16
|
||||
#define SO_PEERCRED 17
|
||||
#define SO_RCVLOWAT 18
|
||||
#define SO_SNDLOWAT 19
|
||||
#define SO_RCVTIMEO 20
|
||||
#define SO_SNDTIMEO 21
|
||||
|
||||
/* Security levels - as per NRL IPv6 - don't actually do anything */
|
||||
#define SO_SECURITY_AUTHENTICATION 22
|
||||
#define SO_SECURITY_ENCRYPTION_TRANSPORT 23
|
||||
#define SO_SECURITY_ENCRYPTION_NETWORK 24
|
||||
|
||||
#define SO_BINDTODEVICE 25
|
||||
|
||||
/* Socket filtering */
|
||||
#define SO_ATTACH_FILTER 26
|
||||
#define SO_DETACH_FILTER 27
|
||||
#define SO_GET_FILTER SO_ATTACH_FILTER
|
||||
|
||||
#define SO_PEERNAME 28
|
||||
#define SO_TIMESTAMP 29
|
||||
#define SCM_TIMESTAMP SO_TIMESTAMP
|
||||
|
||||
#define SO_ACCEPTCONN 30
|
||||
|
||||
#define SO_PEERSEC 31
|
||||
#define SO_PASSSEC 34
|
||||
#define SO_TIMESTAMPNS 35
|
||||
#define SCM_TIMESTAMPNS SO_TIMESTAMPNS
|
||||
|
||||
#define SO_MARK 36
|
||||
|
||||
#define SO_TIMESTAMPING 37
|
||||
#define SCM_TIMESTAMPING SO_TIMESTAMPING
|
||||
|
||||
#define SO_PROTOCOL 38
|
||||
#define SO_DOMAIN 39
|
||||
|
||||
#define SO_RXQ_OVFL 40
|
||||
|
||||
#define SO_WIFI_STATUS 41
|
||||
#define SCM_WIFI_STATUS SO_WIFI_STATUS
|
||||
#define SO_PEEK_OFF 42
|
||||
|
||||
/* Instruct lower device to use last 4-bytes of skb data as FCS */
|
||||
#define SO_NOFCS 43
|
||||
|
||||
#define SO_LOCK_FILTER 44
|
||||
|
||||
#define SO_SELECT_ERR_QUEUE 45
|
||||
|
||||
#define SO_BUSY_POLL 46
|
||||
|
||||
#define SO_MAX_PACING_RATE 47
|
||||
|
||||
#define SO_BPF_EXTENSIONS 48
|
||||
|
||||
#endif /* _ASM_SOCKET_H */
|
||||
|
||||
|
13
arch/cris/include/uapi/asm/sockios.h
Normal file
13
arch/cris/include/uapi/asm/sockios.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
#ifndef __ARCH_CRIS_SOCKIOS__
|
||||
#define __ARCH_CRIS_SOCKIOS__
|
||||
|
||||
/* Socket-level I/O control calls. */
|
||||
#define FIOSETOWN 0x8901
|
||||
#define SIOCSPGRP 0x8902
|
||||
#define FIOGETOWN 0x8903
|
||||
#define SIOCGPGRP 0x8904
|
||||
#define SIOCATMARK 0x8905
|
||||
#define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */
|
||||
#define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */
|
||||
|
||||
#endif
|
81
arch/cris/include/uapi/asm/stat.h
Normal file
81
arch/cris/include/uapi/asm/stat.h
Normal file
|
@ -0,0 +1,81 @@
|
|||
#ifndef _CRIS_STAT_H
|
||||
#define _CRIS_STAT_H
|
||||
|
||||
/* Keep this a verbatim copy of i386 version; tweak CRIS-specific bits in
|
||||
the kernel if necessary. */
|
||||
|
||||
struct __old_kernel_stat {
|
||||
unsigned short st_dev;
|
||||
unsigned short st_ino;
|
||||
unsigned short st_mode;
|
||||
unsigned short st_nlink;
|
||||
unsigned short st_uid;
|
||||
unsigned short st_gid;
|
||||
unsigned short st_rdev;
|
||||
unsigned long st_size;
|
||||
unsigned long st_atime;
|
||||
unsigned long st_mtime;
|
||||
unsigned long st_ctime;
|
||||
};
|
||||
|
||||
#define STAT_HAVE_NSEC 1
|
||||
|
||||
struct stat {
|
||||
unsigned long st_dev;
|
||||
unsigned long st_ino;
|
||||
unsigned short st_mode;
|
||||
unsigned short st_nlink;
|
||||
unsigned short st_uid;
|
||||
unsigned short st_gid;
|
||||
unsigned long st_rdev;
|
||||
unsigned long st_size;
|
||||
unsigned long st_blksize;
|
||||
unsigned long st_blocks;
|
||||
unsigned long st_atime;
|
||||
unsigned long st_atime_nsec;
|
||||
unsigned long st_mtime;
|
||||
unsigned long st_mtime_nsec;
|
||||
unsigned long st_ctime;
|
||||
unsigned long st_ctime_nsec;
|
||||
unsigned long __unused4;
|
||||
unsigned long __unused5;
|
||||
};
|
||||
|
||||
/* This matches struct stat64 in glibc2.1, hence the absolutely
|
||||
* insane amounts of padding around dev_t's.
|
||||
*/
|
||||
struct stat64 {
|
||||
unsigned long long st_dev;
|
||||
unsigned char __pad0[4];
|
||||
|
||||
#define STAT64_HAS_BROKEN_ST_INO 1
|
||||
unsigned long __st_ino;
|
||||
|
||||
unsigned int st_mode;
|
||||
unsigned int st_nlink;
|
||||
|
||||
unsigned long st_uid;
|
||||
unsigned long st_gid;
|
||||
|
||||
unsigned long long st_rdev;
|
||||
unsigned char __pad3[4];
|
||||
|
||||
long long st_size;
|
||||
unsigned long st_blksize;
|
||||
|
||||
unsigned long st_blocks; /* Number 512-byte blocks allocated. */
|
||||
unsigned long __pad4; /* future possible st_blocks high bits */
|
||||
|
||||
unsigned long st_atime;
|
||||
unsigned long st_atime_nsec;
|
||||
|
||||
unsigned long st_mtime;
|
||||
unsigned long st_mtime_nsec;
|
||||
|
||||
unsigned long st_ctime;
|
||||
unsigned long st_ctime_nsec; /* will be high 32 bits of ctime someday */
|
||||
|
||||
unsigned long long st_ino;
|
||||
};
|
||||
|
||||
#endif
|
6
arch/cris/include/uapi/asm/statfs.h
Normal file
6
arch/cris/include/uapi/asm/statfs.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _CRIS_STATFS_H
|
||||
#define _CRIS_STATFS_H
|
||||
|
||||
#include <asm-generic/statfs.h>
|
||||
|
||||
#endif
|
3
arch/cris/include/uapi/asm/swab.h
Normal file
3
arch/cris/include/uapi/asm/swab.h
Normal file
|
@ -0,0 +1,3 @@
|
|||
/*
|
||||
* CRIS byte swapping.
|
||||
*/
|
132
arch/cris/include/uapi/asm/sync_serial.h
Normal file
132
arch/cris/include/uapi/asm/sync_serial.h
Normal file
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* ioctl defines for synchronous serial port driver
|
||||
*
|
||||
* Copyright (c) 2001-2003 Axis Communications AB
|
||||
*
|
||||
* Author: Mikael Starvik
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef SYNC_SERIAL_H
|
||||
#define SYNC_SERIAL_H
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#define SSP_SPEED _IOR('S', 0, unsigned int)
|
||||
#define SSP_MODE _IOR('S', 1, unsigned int)
|
||||
#define SSP_FRAME_SYNC _IOR('S', 2, unsigned int)
|
||||
#define SSP_IPOLARITY _IOR('S', 3, unsigned int)
|
||||
#define SSP_OPOLARITY _IOR('S', 4, unsigned int)
|
||||
#define SSP_SPI _IOR('S', 5, unsigned int)
|
||||
#define SSP_INBUFCHUNK _IOR('S', 6, unsigned int)
|
||||
#define SSP_INPUT _IOR('S', 7, unsigned int)
|
||||
|
||||
/* Values for SSP_SPEED */
|
||||
#define SSP150 0
|
||||
#define SSP300 1
|
||||
#define SSP600 2
|
||||
#define SSP1200 3
|
||||
#define SSP2400 4
|
||||
#define SSP4800 5
|
||||
#define SSP9600 6
|
||||
#define SSP19200 7
|
||||
#define SSP28800 8
|
||||
#define SSP57600 9
|
||||
#define SSP115200 10
|
||||
#define SSP230400 11
|
||||
#define SSP460800 12
|
||||
#define SSP921600 13
|
||||
#define SSP3125000 14
|
||||
#define CODEC 15
|
||||
#define CODEC_f32768 16
|
||||
|
||||
#define FREQ_4MHz 0
|
||||
#define FREQ_2MHz 1
|
||||
#define FREQ_1MHz 2
|
||||
#define FREQ_512kHz 3
|
||||
#define FREQ_256kHz 4
|
||||
#define FREQ_128kHz 5
|
||||
#define FREQ_64kHz 6
|
||||
#define FREQ_32kHz 7
|
||||
/* FREQ_* with values where bit (value & 0x10) is set are */
|
||||
/* used for CODEC_f32768 */
|
||||
#define FREQ_4096kHz 16 /* CODEC_f32768 */
|
||||
|
||||
/* Used by application to set CODEC divider, word rate and frame rate */
|
||||
#define CODEC_VAL(freq, clk_per_sync, sync_per_frame) \
|
||||
((CODEC + ((freq & 0x10) >> 4)) | (freq << 8) | \
|
||||
(clk_per_sync << 16) | (sync_per_frame << 28))
|
||||
|
||||
/* Used by driver to extract speed */
|
||||
#define GET_SPEED(x) (x & 0xff)
|
||||
#define GET_FREQ(x) ((x & 0xff00) >> 8)
|
||||
#define GET_WORD_RATE(x) (((x & 0x0fff0000) >> 16) - 1)
|
||||
#define GET_FRAME_RATE(x) (((x & 0xf0000000) >> 28) - 1)
|
||||
|
||||
/* Values for SSP_MODE */
|
||||
#define MASTER_OUTPUT 0
|
||||
#define SLAVE_OUTPUT 1
|
||||
#define MASTER_INPUT 2
|
||||
#define SLAVE_INPUT 3
|
||||
#define MASTER_BIDIR 4
|
||||
#define SLAVE_BIDIR 5
|
||||
|
||||
/* Values for SSP_FRAME_SYNC */
|
||||
#define NORMAL_SYNC 1
|
||||
#define EARLY_SYNC 2
|
||||
#define SECOND_WORD_SYNC 0x40000
|
||||
#define LATE_SYNC 0x80000
|
||||
|
||||
#define BIT_SYNC 4
|
||||
#define WORD_SYNC 8
|
||||
#define EXTENDED_SYNC 0x10
|
||||
|
||||
#define SYNC_OFF 0x20
|
||||
#define SYNC_ON 0x40
|
||||
#define WORD_SIZE_8 0x80
|
||||
#define WORD_SIZE_12 0x100
|
||||
#define WORD_SIZE_16 0x200
|
||||
#define WORD_SIZE_24 0x400
|
||||
#define WORD_SIZE_32 0x800
|
||||
#define BIT_ORDER_LSB 0x1000
|
||||
#define BIT_ORDER_MSB 0x2000
|
||||
#define FLOW_CONTROL_ENABLE 0x4000
|
||||
#define FLOW_CONTROL_DISABLE 0x8000
|
||||
#define CLOCK_GATED 0x10000
|
||||
#define CLOCK_NOT_GATED 0x20000
|
||||
|
||||
/* Values for SSP_IPOLARITY and SSP_OPOLARITY */
|
||||
#define CLOCK_NORMAL 1
|
||||
#define CLOCK_INVERT 2
|
||||
#define CLOCK_INEGEDGE CLOCK_NORMAL
|
||||
#define CLOCK_IPOSEDGE CLOCK_INVERT
|
||||
#define FRAME_NORMAL 4
|
||||
#define FRAME_INVERT 8
|
||||
#define STATUS_NORMAL 0x10
|
||||
#define STATUS_INVERT 0x20
|
||||
|
||||
/* Values for SSP_SPI */
|
||||
#define SPI_MASTER 0
|
||||
#define SPI_SLAVE 1
|
||||
|
||||
/* Values for SSP_INBUFCHUNK */
|
||||
/* plain integer with the size of DMA chunks */
|
||||
|
||||
/* To ensure that the timestamps are aligned with the data being read
|
||||
* the read length MUST be a multiple of the length of the DMA buffers.
|
||||
*
|
||||
* Use a multiple of SSP_INPUT_CHUNK_SIZE defined below.
|
||||
*/
|
||||
#define SSP_INPUT_CHUNK_SIZE 256
|
||||
|
||||
/* Request struct to pass through the ioctl interface to read
|
||||
* data with timestamps.
|
||||
*/
|
||||
struct ssp_request {
|
||||
char __user *buf; /* Where to put the data. */
|
||||
size_t len; /* Size of buf. MUST be a multiple of */
|
||||
/* SSP_INPUT_CHUNK_SIZE! */
|
||||
struct timespec ts; /* The time the data was sampled. */
|
||||
};
|
||||
|
||||
#endif
|
235
arch/cris/include/uapi/asm/termbits.h
Normal file
235
arch/cris/include/uapi/asm/termbits.h
Normal file
|
@ -0,0 +1,235 @@
|
|||
/* $Id: termbits.h,v 1.1 2000/07/10 16:32:31 bjornw Exp $ */
|
||||
|
||||
#ifndef __ARCH_ETRAX100_TERMBITS_H__
|
||||
#define __ARCH_ETRAX100_TERMBITS_H__
|
||||
|
||||
#include <linux/posix_types.h>
|
||||
|
||||
typedef unsigned char cc_t;
|
||||
typedef unsigned int speed_t;
|
||||
typedef unsigned int tcflag_t;
|
||||
|
||||
#define NCCS 19
|
||||
struct termios {
|
||||
tcflag_t c_iflag; /* input mode flags */
|
||||
tcflag_t c_oflag; /* output mode flags */
|
||||
tcflag_t c_cflag; /* control mode flags */
|
||||
tcflag_t c_lflag; /* local mode flags */
|
||||
cc_t c_line; /* line discipline */
|
||||
cc_t c_cc[NCCS]; /* control characters */
|
||||
};
|
||||
|
||||
struct termios2 {
|
||||
tcflag_t c_iflag; /* input mode flags */
|
||||
tcflag_t c_oflag; /* output mode flags */
|
||||
tcflag_t c_cflag; /* control mode flags */
|
||||
tcflag_t c_lflag; /* local mode flags */
|
||||
cc_t c_line; /* line discipline */
|
||||
cc_t c_cc[NCCS]; /* control characters */
|
||||
speed_t c_ispeed; /* input speed */
|
||||
speed_t c_ospeed; /* output speed */
|
||||
};
|
||||
|
||||
struct ktermios {
|
||||
tcflag_t c_iflag; /* input mode flags */
|
||||
tcflag_t c_oflag; /* output mode flags */
|
||||
tcflag_t c_cflag; /* control mode flags */
|
||||
tcflag_t c_lflag; /* local mode flags */
|
||||
cc_t c_line; /* line discipline */
|
||||
cc_t c_cc[NCCS]; /* control characters */
|
||||
speed_t c_ispeed; /* input speed */
|
||||
speed_t c_ospeed; /* output speed */
|
||||
};
|
||||
|
||||
/* c_cc characters */
|
||||
#define VINTR 0
|
||||
#define VQUIT 1
|
||||
#define VERASE 2
|
||||
#define VKILL 3
|
||||
#define VEOF 4
|
||||
#define VTIME 5
|
||||
#define VMIN 6
|
||||
#define VSWTC 7
|
||||
#define VSTART 8
|
||||
#define VSTOP 9
|
||||
#define VSUSP 10
|
||||
#define VEOL 11
|
||||
#define VREPRINT 12
|
||||
#define VDISCARD 13
|
||||
#define VWERASE 14
|
||||
#define VLNEXT 15
|
||||
#define VEOL2 16
|
||||
|
||||
/* c_iflag bits */
|
||||
#define IGNBRK 0000001
|
||||
#define BRKINT 0000002
|
||||
#define IGNPAR 0000004
|
||||
#define PARMRK 0000010
|
||||
#define INPCK 0000020
|
||||
#define ISTRIP 0000040
|
||||
#define INLCR 0000100
|
||||
#define IGNCR 0000200
|
||||
#define ICRNL 0000400
|
||||
#define IUCLC 0001000
|
||||
#define IXON 0002000
|
||||
#define IXANY 0004000
|
||||
#define IXOFF 0010000
|
||||
#define IMAXBEL 0020000
|
||||
#define IUTF8 0040000
|
||||
|
||||
/* c_oflag bits */
|
||||
#define OPOST 0000001
|
||||
#define OLCUC 0000002
|
||||
#define ONLCR 0000004
|
||||
#define OCRNL 0000010
|
||||
#define ONOCR 0000020
|
||||
#define ONLRET 0000040
|
||||
#define OFILL 0000100
|
||||
#define OFDEL 0000200
|
||||
#define NLDLY 0000400
|
||||
#define NL0 0000000
|
||||
#define NL1 0000400
|
||||
#define CRDLY 0003000
|
||||
#define CR0 0000000
|
||||
#define CR1 0001000
|
||||
#define CR2 0002000
|
||||
#define CR3 0003000
|
||||
#define TABDLY 0014000
|
||||
#define TAB0 0000000
|
||||
#define TAB1 0004000
|
||||
#define TAB2 0010000
|
||||
#define TAB3 0014000
|
||||
#define XTABS 0014000
|
||||
#define BSDLY 0020000
|
||||
#define BS0 0000000
|
||||
#define BS1 0020000
|
||||
#define VTDLY 0040000
|
||||
#define VT0 0000000
|
||||
#define VT1 0040000
|
||||
#define FFDLY 0100000
|
||||
#define FF0 0000000
|
||||
#define FF1 0100000
|
||||
|
||||
/* c_cflag bit meaning */
|
||||
/*
|
||||
* 3 2 1
|
||||
* 10 987 654 321 098 765 432 109 876 543 210
|
||||
* | | ||| CBAUD
|
||||
* obaud
|
||||
*
|
||||
* ||CSIZE
|
||||
*
|
||||
* |CSTOP
|
||||
* |CREAD
|
||||
* |CPARENB
|
||||
*
|
||||
* |CPARODD
|
||||
* |HUPCL
|
||||
* |CLOCAL
|
||||
* |CBAUDEX
|
||||
* 10 987 654 321 098 765 432 109 876 543 210
|
||||
* | || || CIBAUD, IBSHIFT=16
|
||||
* ibaud
|
||||
* |CMSPAR
|
||||
* | CRTSCTS
|
||||
* x x xxx xxx x x xx Free bits
|
||||
*/
|
||||
|
||||
#define CBAUD 0010017
|
||||
#define B0 0000000 /* hang up */
|
||||
#define B50 0000001
|
||||
#define B75 0000002
|
||||
#define B110 0000003
|
||||
#define B134 0000004
|
||||
#define B150 0000005
|
||||
#define B200 0000006
|
||||
#define B300 0000007
|
||||
#define B600 0000010
|
||||
#define B1200 0000011
|
||||
#define B1800 0000012
|
||||
#define B2400 0000013
|
||||
#define B4800 0000014
|
||||
#define B9600 0000015
|
||||
#define B19200 0000016
|
||||
#define B38400 0000017
|
||||
#define EXTA B19200
|
||||
#define EXTB B38400
|
||||
#define CSIZE 0000060
|
||||
#define CS5 0000000
|
||||
#define CS6 0000020
|
||||
#define CS7 0000040
|
||||
#define CS8 0000060
|
||||
#define CSTOPB 0000100
|
||||
#define CREAD 0000200
|
||||
#define PARENB 0000400
|
||||
#define PARODD 0001000
|
||||
#define HUPCL 0002000
|
||||
#define CLOCAL 0004000
|
||||
#define CBAUDEX 0010000
|
||||
#define BOTHER 0010000
|
||||
#define B57600 0010001
|
||||
#define B115200 0010002
|
||||
#define B230400 0010003
|
||||
#define B460800 0010004
|
||||
|
||||
/* Unsupported rates, but needed to avoid compile error. */
|
||||
#define B500000 0010005
|
||||
#define B576000 0010006
|
||||
#define B1000000 0010010
|
||||
#define B1152000 0010011
|
||||
#define B1500000 0010012
|
||||
#define B2000000 0010013
|
||||
#define B2500000 0010014
|
||||
#define B3000000 0010015
|
||||
#define B3500000 0010016
|
||||
#define B4000000 0010017
|
||||
|
||||
/* etrax supports these additional three baud rates */
|
||||
#define B921600 0010005
|
||||
#define B1843200 0010006
|
||||
#define B6250000 0010007
|
||||
/* ETRAX FS supports this as well */
|
||||
#define B12500000 0010010
|
||||
#define CIBAUD 002003600000 /* input baud rate (used in v32) */
|
||||
/* The values for CIBAUD bits are the same as the values for CBAUD and CBAUDEX
|
||||
* shifted left IBSHIFT bits.
|
||||
*/
|
||||
#define IBSHIFT 16
|
||||
#define CMSPAR 010000000000 /* mark or space (stick) parity - PARODD=space*/
|
||||
#define CRTSCTS 020000000000 /* flow control */
|
||||
|
||||
/* c_lflag bits */
|
||||
#define ISIG 0000001
|
||||
#define ICANON 0000002
|
||||
#define XCASE 0000004
|
||||
#define ECHO 0000010
|
||||
#define ECHOE 0000020
|
||||
#define ECHOK 0000040
|
||||
#define ECHONL 0000100
|
||||
#define NOFLSH 0000200
|
||||
#define TOSTOP 0000400
|
||||
#define ECHOCTL 0001000
|
||||
#define ECHOPRT 0002000
|
||||
#define ECHOKE 0004000
|
||||
#define FLUSHO 0010000
|
||||
#define PENDIN 0040000
|
||||
#define IEXTEN 0100000
|
||||
#define EXTPROC 0200000
|
||||
|
||||
/* tcflow() and TCXONC use these */
|
||||
#define TCOOFF 0
|
||||
#define TCOON 1
|
||||
#define TCIOFF 2
|
||||
#define TCION 3
|
||||
|
||||
/* tcflush() and TCFLSH use these */
|
||||
#define TCIFLUSH 0
|
||||
#define TCOFLUSH 1
|
||||
#define TCIOFLUSH 2
|
||||
|
||||
/* tcsetattr uses these */
|
||||
#define TCSANOW 0
|
||||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
#endif
|
45
arch/cris/include/uapi/asm/termios.h
Normal file
45
arch/cris/include/uapi/asm/termios.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
#ifndef _UAPI_CRIS_TERMIOS_H
|
||||
#define _UAPI_CRIS_TERMIOS_H
|
||||
|
||||
#include <asm/termbits.h>
|
||||
#include <asm/ioctls.h>
|
||||
#include <asm/rs485.h>
|
||||
#include <linux/serial.h>
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
unsigned short ws_xpixel;
|
||||
unsigned short ws_ypixel;
|
||||
};
|
||||
|
||||
#define NCC 8
|
||||
struct termio {
|
||||
unsigned short c_iflag; /* input mode flags */
|
||||
unsigned short c_oflag; /* output mode flags */
|
||||
unsigned short c_cflag; /* control mode flags */
|
||||
unsigned short c_lflag; /* local mode flags */
|
||||
unsigned char c_line; /* line discipline */
|
||||
unsigned char c_cc[NCC]; /* control characters */
|
||||
};
|
||||
|
||||
/* modem lines */
|
||||
#define TIOCM_LE 0x001
|
||||
#define TIOCM_DTR 0x002
|
||||
#define TIOCM_RTS 0x004
|
||||
#define TIOCM_ST 0x008
|
||||
#define TIOCM_SR 0x010
|
||||
#define TIOCM_CTS 0x020
|
||||
#define TIOCM_CAR 0x040
|
||||
#define TIOCM_RNG 0x080
|
||||
#define TIOCM_DSR 0x100
|
||||
#define TIOCM_CD TIOCM_CAR
|
||||
#define TIOCM_RI TIOCM_RNG
|
||||
#define TIOCM_OUT1 0x2000
|
||||
#define TIOCM_OUT2 0x4000
|
||||
#define TIOCM_LOOP 0x8000
|
||||
|
||||
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
|
||||
|
||||
|
||||
#endif /* _UAPI_CRIS_TERMIOS_H */
|
1
arch/cris/include/uapi/asm/types.h
Normal file
1
arch/cris/include/uapi/asm/types.h
Normal file
|
@ -0,0 +1 @@
|
|||
#include <asm-generic/int-ll64.h>
|
360
arch/cris/include/uapi/asm/unistd.h
Normal file
360
arch/cris/include/uapi/asm/unistd.h
Normal file
|
@ -0,0 +1,360 @@
|
|||
#ifndef _UAPI_ASM_CRIS_UNISTD_H_
|
||||
#define _UAPI_ASM_CRIS_UNISTD_H_
|
||||
|
||||
/*
|
||||
* This file contains the system call numbers, and stub macros for libc.
|
||||
*/
|
||||
|
||||
#define __NR_restart_syscall 0
|
||||
#define __NR_exit 1
|
||||
#define __NR_fork 2
|
||||
#define __NR_read 3
|
||||
#define __NR_write 4
|
||||
#define __NR_open 5
|
||||
#define __NR_close 6
|
||||
#define __NR_waitpid 7
|
||||
#define __NR_creat 8
|
||||
#define __NR_link 9
|
||||
#define __NR_unlink 10
|
||||
#define __NR_execve 11
|
||||
#define __NR_chdir 12
|
||||
#define __NR_time 13
|
||||
#define __NR_mknod 14
|
||||
#define __NR_chmod 15
|
||||
#define __NR_lchown 16
|
||||
#define __NR_break 17
|
||||
#define __NR_oldstat 18
|
||||
#define __NR_lseek 19
|
||||
#define __NR_getpid 20
|
||||
#define __NR_mount 21
|
||||
#define __NR_umount 22
|
||||
#define __NR_setuid 23
|
||||
#define __NR_getuid 24
|
||||
#define __NR_stime 25
|
||||
#define __NR_ptrace 26
|
||||
#define __NR_alarm 27
|
||||
#define __NR_oldfstat 28
|
||||
#define __NR_pause 29
|
||||
#define __NR_utime 30
|
||||
#define __NR_stty 31
|
||||
#define __NR_gtty 32
|
||||
#define __NR_access 33
|
||||
#define __NR_nice 34
|
||||
#define __NR_ftime 35
|
||||
#define __NR_sync 36
|
||||
#define __NR_kill 37
|
||||
#define __NR_rename 38
|
||||
#define __NR_mkdir 39
|
||||
#define __NR_rmdir 40
|
||||
#define __NR_dup 41
|
||||
#define __NR_pipe 42
|
||||
#define __NR_times 43
|
||||
#define __NR_prof 44
|
||||
#define __NR_brk 45
|
||||
#define __NR_setgid 46
|
||||
#define __NR_getgid 47
|
||||
#define __NR_signal 48
|
||||
#define __NR_geteuid 49
|
||||
#define __NR_getegid 50
|
||||
#define __NR_acct 51
|
||||
#define __NR_umount2 52
|
||||
#define __NR_lock 53
|
||||
#define __NR_ioctl 54
|
||||
#define __NR_fcntl 55
|
||||
#define __NR_mpx 56
|
||||
#define __NR_setpgid 57
|
||||
#define __NR_ulimit 58
|
||||
#define __NR_oldolduname 59
|
||||
#define __NR_umask 60
|
||||
#define __NR_chroot 61
|
||||
#define __NR_ustat 62
|
||||
#define __NR_dup2 63
|
||||
#define __NR_getppid 64
|
||||
#define __NR_getpgrp 65
|
||||
#define __NR_setsid 66
|
||||
#define __NR_sigaction 67
|
||||
#define __NR_sgetmask 68
|
||||
#define __NR_ssetmask 69
|
||||
#define __NR_setreuid 70
|
||||
#define __NR_setregid 71
|
||||
#define __NR_sigsuspend 72
|
||||
#define __NR_sigpending 73
|
||||
#define __NR_sethostname 74
|
||||
#define __NR_setrlimit 75
|
||||
#define __NR_getrlimit 76
|
||||
#define __NR_getrusage 77
|
||||
#define __NR_gettimeofday 78
|
||||
#define __NR_settimeofday 79
|
||||
#define __NR_getgroups 80
|
||||
#define __NR_setgroups 81
|
||||
#define __NR_select 82
|
||||
#define __NR_symlink 83
|
||||
#define __NR_oldlstat 84
|
||||
#define __NR_readlink 85
|
||||
#define __NR_uselib 86
|
||||
#define __NR_swapon 87
|
||||
#define __NR_reboot 88
|
||||
#define __NR_readdir 89
|
||||
#define __NR_mmap 90
|
||||
#define __NR_munmap 91
|
||||
#define __NR_truncate 92
|
||||
#define __NR_ftruncate 93
|
||||
#define __NR_fchmod 94
|
||||
#define __NR_fchown 95
|
||||
#define __NR_getpriority 96
|
||||
#define __NR_setpriority 97
|
||||
#define __NR_profil 98
|
||||
#define __NR_statfs 99
|
||||
#define __NR_fstatfs 100
|
||||
#define __NR_ioperm 101
|
||||
#define __NR_socketcall 102
|
||||
#define __NR_syslog 103
|
||||
#define __NR_setitimer 104
|
||||
#define __NR_getitimer 105
|
||||
#define __NR_stat 106
|
||||
#define __NR_lstat 107
|
||||
#define __NR_fstat 108
|
||||
#define __NR_olduname 109
|
||||
#define __NR_iopl 110
|
||||
#define __NR_vhangup 111
|
||||
#define __NR_idle 112
|
||||
#define __NR_vm86 113
|
||||
#define __NR_wait4 114
|
||||
#define __NR_swapoff 115
|
||||
#define __NR_sysinfo 116
|
||||
#define __NR_ipc 117
|
||||
#define __NR_fsync 118
|
||||
#define __NR_sigreturn 119
|
||||
#define __NR_clone 120
|
||||
#define __NR_setdomainname 121
|
||||
#define __NR_uname 122
|
||||
#define __NR_modify_ldt 123
|
||||
#define __NR_adjtimex 124
|
||||
#define __NR_mprotect 125
|
||||
#define __NR_sigprocmask 126
|
||||
#define __NR_create_module 127
|
||||
#define __NR_init_module 128
|
||||
#define __NR_delete_module 129
|
||||
#define __NR_get_kernel_syms 130
|
||||
#define __NR_quotactl 131
|
||||
#define __NR_getpgid 132
|
||||
#define __NR_fchdir 133
|
||||
#define __NR_bdflush 134
|
||||
#define __NR_sysfs 135
|
||||
#define __NR_personality 136
|
||||
#define __NR_afs_syscall 137 /* Syscall for Andrew File System */
|
||||
#define __NR_setfsuid 138
|
||||
#define __NR_setfsgid 139
|
||||
#define __NR__llseek 140
|
||||
#define __NR_getdents 141
|
||||
#define __NR__newselect 142
|
||||
#define __NR_flock 143
|
||||
#define __NR_msync 144
|
||||
#define __NR_readv 145
|
||||
#define __NR_writev 146
|
||||
#define __NR_getsid 147
|
||||
#define __NR_fdatasync 148
|
||||
#define __NR__sysctl 149
|
||||
#define __NR_mlock 150
|
||||
#define __NR_munlock 151
|
||||
#define __NR_mlockall 152
|
||||
#define __NR_munlockall 153
|
||||
#define __NR_sched_setparam 154
|
||||
#define __NR_sched_getparam 155
|
||||
#define __NR_sched_setscheduler 156
|
||||
#define __NR_sched_getscheduler 157
|
||||
#define __NR_sched_yield 158
|
||||
#define __NR_sched_get_priority_max 159
|
||||
#define __NR_sched_get_priority_min 160
|
||||
#define __NR_sched_rr_get_interval 161
|
||||
#define __NR_nanosleep 162
|
||||
#define __NR_mremap 163
|
||||
#define __NR_setresuid 164
|
||||
#define __NR_getresuid 165
|
||||
|
||||
#define __NR_query_module 167
|
||||
#define __NR_poll 168
|
||||
#define __NR_nfsservctl 169
|
||||
#define __NR_setresgid 170
|
||||
#define __NR_getresgid 171
|
||||
#define __NR_prctl 172
|
||||
#define __NR_rt_sigreturn 173
|
||||
#define __NR_rt_sigaction 174
|
||||
#define __NR_rt_sigprocmask 175
|
||||
#define __NR_rt_sigpending 176
|
||||
#define __NR_rt_sigtimedwait 177
|
||||
#define __NR_rt_sigqueueinfo 178
|
||||
#define __NR_rt_sigsuspend 179
|
||||
#define __NR_pread64 180
|
||||
#define __NR_pwrite64 181
|
||||
#define __NR_chown 182
|
||||
#define __NR_getcwd 183
|
||||
#define __NR_capget 184
|
||||
#define __NR_capset 185
|
||||
#define __NR_sigaltstack 186
|
||||
#define __NR_sendfile 187
|
||||
#define __NR_getpmsg 188 /* some people actually want streams */
|
||||
#define __NR_putpmsg 189 /* some people actually want streams */
|
||||
#define __NR_vfork 190
|
||||
#define __NR_ugetrlimit 191 /* SuS compliant getrlimit */
|
||||
#define __NR_mmap2 192
|
||||
#define __NR_truncate64 193
|
||||
#define __NR_ftruncate64 194
|
||||
#define __NR_stat64 195
|
||||
#define __NR_lstat64 196
|
||||
#define __NR_fstat64 197
|
||||
#define __NR_lchown32 198
|
||||
#define __NR_getuid32 199
|
||||
#define __NR_getgid32 200
|
||||
#define __NR_geteuid32 201
|
||||
#define __NR_getegid32 202
|
||||
#define __NR_setreuid32 203
|
||||
#define __NR_setregid32 204
|
||||
#define __NR_getgroups32 205
|
||||
#define __NR_setgroups32 206
|
||||
#define __NR_fchown32 207
|
||||
#define __NR_setresuid32 208
|
||||
#define __NR_getresuid32 209
|
||||
#define __NR_setresgid32 210
|
||||
#define __NR_getresgid32 211
|
||||
#define __NR_chown32 212
|
||||
#define __NR_setuid32 213
|
||||
#define __NR_setgid32 214
|
||||
#define __NR_setfsuid32 215
|
||||
#define __NR_setfsgid32 216
|
||||
#define __NR_pivot_root 217
|
||||
#define __NR_mincore 218
|
||||
#define __NR_madvise 219
|
||||
#define __NR_getdents64 220
|
||||
#define __NR_fcntl64 221
|
||||
/* 223 is unused */
|
||||
#define __NR_gettid 224
|
||||
#define __NR_readahead 225
|
||||
#define __NR_setxattr 226
|
||||
#define __NR_lsetxattr 227
|
||||
#define __NR_fsetxattr 228
|
||||
#define __NR_getxattr 229
|
||||
#define __NR_lgetxattr 230
|
||||
#define __NR_fgetxattr 231
|
||||
#define __NR_listxattr 232
|
||||
#define __NR_llistxattr 233
|
||||
#define __NR_flistxattr 234
|
||||
#define __NR_removexattr 235
|
||||
#define __NR_lremovexattr 236
|
||||
#define __NR_fremovexattr 237
|
||||
#define __NR_tkill 238
|
||||
#define __NR_sendfile64 239
|
||||
#define __NR_futex 240
|
||||
#define __NR_sched_setaffinity 241
|
||||
#define __NR_sched_getaffinity 242
|
||||
#define __NR_set_thread_area 243
|
||||
#define __NR_get_thread_area 244
|
||||
#define __NR_io_setup 245
|
||||
#define __NR_io_destroy 246
|
||||
#define __NR_io_getevents 247
|
||||
#define __NR_io_submit 248
|
||||
#define __NR_io_cancel 249
|
||||
#define __NR_fadvise64 250
|
||||
/* 251 is available for reuse (was briefly sys_set_zone_reclaim) */
|
||||
#define __NR_exit_group 252
|
||||
#define __NR_lookup_dcookie 253
|
||||
#define __NR_epoll_create 254
|
||||
#define __NR_epoll_ctl 255
|
||||
#define __NR_epoll_wait 256
|
||||
#define __NR_remap_file_pages 257
|
||||
#define __NR_set_tid_address 258
|
||||
#define __NR_timer_create 259
|
||||
#define __NR_timer_settime (__NR_timer_create+1)
|
||||
#define __NR_timer_gettime (__NR_timer_create+2)
|
||||
#define __NR_timer_getoverrun (__NR_timer_create+3)
|
||||
#define __NR_timer_delete (__NR_timer_create+4)
|
||||
#define __NR_clock_settime (__NR_timer_create+5)
|
||||
#define __NR_clock_gettime (__NR_timer_create+6)
|
||||
#define __NR_clock_getres (__NR_timer_create+7)
|
||||
#define __NR_clock_nanosleep (__NR_timer_create+8)
|
||||
#define __NR_statfs64 268
|
||||
#define __NR_fstatfs64 269
|
||||
#define __NR_tgkill 270
|
||||
#define __NR_utimes 271
|
||||
#define __NR_fadvise64_64 272
|
||||
#define __NR_vserver 273
|
||||
#define __NR_mbind 274
|
||||
#define __NR_get_mempolicy 275
|
||||
#define __NR_set_mempolicy 276
|
||||
#define __NR_mq_open 277
|
||||
#define __NR_mq_unlink (__NR_mq_open+1)
|
||||
#define __NR_mq_timedsend (__NR_mq_open+2)
|
||||
#define __NR_mq_timedreceive (__NR_mq_open+3)
|
||||
#define __NR_mq_notify (__NR_mq_open+4)
|
||||
#define __NR_mq_getsetattr (__NR_mq_open+5)
|
||||
#define __NR_kexec_load 283
|
||||
#define __NR_waitid 284
|
||||
/* #define __NR_sys_setaltroot 285 */
|
||||
#define __NR_add_key 286
|
||||
#define __NR_request_key 287
|
||||
#define __NR_keyctl 288
|
||||
#define __NR_ioprio_set 289
|
||||
#define __NR_ioprio_get 290
|
||||
#define __NR_inotify_init 291
|
||||
#define __NR_inotify_add_watch 292
|
||||
#define __NR_inotify_rm_watch 293
|
||||
#define __NR_migrate_pages 294
|
||||
#define __NR_openat 295
|
||||
#define __NR_mkdirat 296
|
||||
#define __NR_mknodat 297
|
||||
#define __NR_fchownat 298
|
||||
#define __NR_futimesat 299
|
||||
#define __NR_fstatat64 300
|
||||
#define __NR_unlinkat 301
|
||||
#define __NR_renameat 302
|
||||
#define __NR_linkat 303
|
||||
#define __NR_symlinkat 304
|
||||
#define __NR_readlinkat 305
|
||||
#define __NR_fchmodat 306
|
||||
#define __NR_faccessat 307
|
||||
#define __NR_pselect6 308
|
||||
#define __NR_ppoll 309
|
||||
#define __NR_unshare 310
|
||||
#define __NR_set_robust_list 311
|
||||
#define __NR_get_robust_list 312
|
||||
#define __NR_splice 313
|
||||
#define __NR_sync_file_range 314
|
||||
#define __NR_tee 315
|
||||
#define __NR_vmsplice 316
|
||||
#define __NR_move_pages 317
|
||||
#define __NR_getcpu 318
|
||||
#define __NR_epoll_pwait 319
|
||||
#define __NR_utimensat 320
|
||||
#define __NR_signalfd 321
|
||||
#define __NR_timerfd_create 322
|
||||
#define __NR_eventfd 323
|
||||
#define __NR_fallocate 324
|
||||
#define __NR_timerfd_settime 325
|
||||
#define __NR_timerfd_gettime 326
|
||||
#define __NR_signalfd4 327
|
||||
#define __NR_eventfd2 328
|
||||
#define __NR_epoll_create1 329
|
||||
#define __NR_dup3 330
|
||||
#define __NR_pipe2 331
|
||||
#define __NR_inotify_init1 332
|
||||
#define __NR_preadv 333
|
||||
#define __NR_pwritev 334
|
||||
#define __NR_setns 335
|
||||
#define __NR_name_to_handle_at 336
|
||||
#define __NR_open_by_handle_at 337
|
||||
#define __NR_rt_tgsigqueueinfo 338
|
||||
#define __NR_perf_event_open 339
|
||||
#define __NR_recvmmsg 340
|
||||
#define __NR_accept4 341
|
||||
#define __NR_fanotify_init 342
|
||||
#define __NR_fanotify_mark 343
|
||||
#define __NR_prlimit64 344
|
||||
#define __NR_clock_adjtime 345
|
||||
#define __NR_syncfs 346
|
||||
#define __NR_sendmmsg 347
|
||||
#define __NR_process_vm_readv 348
|
||||
#define __NR_process_vm_writev 349
|
||||
#define __NR_kcmp 350
|
||||
#define __NR_finit_module 351
|
||||
|
||||
#endif /* _UAPI_ASM_CRIS_UNISTD_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue