122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef _ASM_PTRACE_H
2022851890Sopenharmony_ci#define _ASM_PTRACE_H
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#define FPR_BASE 32
2322851890Sopenharmony_ci#define PC 64
2422851890Sopenharmony_ci#define CAUSE 65
2522851890Sopenharmony_ci#define BADVADDR 66
2622851890Sopenharmony_ci#define MMHI 67
2722851890Sopenharmony_ci#define MMLO 68
2822851890Sopenharmony_ci#define FPC_CSR 69
2922851890Sopenharmony_ci#define FPC_EIR 70
3022851890Sopenharmony_ci#define DSP_BASE 71
3122851890Sopenharmony_ci#define DSP_CONTROL 77
3222851890Sopenharmony_ci#define ACX 78
3322851890Sopenharmony_cistruct pt_regs {
3422851890Sopenharmony_ci  __u64 regs[32];
3522851890Sopenharmony_ci  __u64 lo;
3622851890Sopenharmony_ci  __u64 hi;
3722851890Sopenharmony_ci  __u64 cp0_epc;
3822851890Sopenharmony_ci  __u64 cp0_badvaddr;
3922851890Sopenharmony_ci  __u64 cp0_status;
4022851890Sopenharmony_ci  __u64 cp0_cause;
4122851890Sopenharmony_ci} __attribute__((aligned(8)));
4222851890Sopenharmony_ci#define PTRACE_GETREGS 12
4322851890Sopenharmony_ci#define PTRACE_SETREGS 13
4422851890Sopenharmony_ci#define PTRACE_GETFPREGS 14
4522851890Sopenharmony_ci#define PTRACE_SETFPREGS 15
4622851890Sopenharmony_ci#define PTRACE_OLDSETOPTIONS 21
4722851890Sopenharmony_ci#define PTRACE_GET_THREAD_AREA 25
4822851890Sopenharmony_ci#define PTRACE_SET_THREAD_AREA 26
4922851890Sopenharmony_ci#define PTRACE_PEEKTEXT_3264 0xc0
5022851890Sopenharmony_ci#define PTRACE_PEEKDATA_3264 0xc1
5122851890Sopenharmony_ci#define PTRACE_POKETEXT_3264 0xc2
5222851890Sopenharmony_ci#define PTRACE_POKEDATA_3264 0xc3
5322851890Sopenharmony_ci#define PTRACE_GET_THREAD_AREA_3264 0xc4
5422851890Sopenharmony_cienum pt_watch_style {
5522851890Sopenharmony_ci  pt_watch_style_mips32,
5622851890Sopenharmony_ci  pt_watch_style_mips64
5722851890Sopenharmony_ci};
5822851890Sopenharmony_cistruct mips32_watch_regs {
5922851890Sopenharmony_ci  unsigned int watchlo[8];
6022851890Sopenharmony_ci  unsigned short watchhi[8];
6122851890Sopenharmony_ci  unsigned short watch_masks[8];
6222851890Sopenharmony_ci  unsigned int num_valid;
6322851890Sopenharmony_ci} __attribute__((aligned(8)));
6422851890Sopenharmony_cistruct mips64_watch_regs {
6522851890Sopenharmony_ci  unsigned long long watchlo[8];
6622851890Sopenharmony_ci  unsigned short watchhi[8];
6722851890Sopenharmony_ci  unsigned short watch_masks[8];
6822851890Sopenharmony_ci  unsigned int num_valid;
6922851890Sopenharmony_ci} __attribute__((aligned(8)));
7022851890Sopenharmony_cistruct pt_watch_regs {
7122851890Sopenharmony_ci  enum pt_watch_style style;
7222851890Sopenharmony_ci  union {
7322851890Sopenharmony_ci    struct mips32_watch_regs mips32;
7422851890Sopenharmony_ci    struct mips64_watch_regs mips64;
7522851890Sopenharmony_ci  };
7622851890Sopenharmony_ci};
7722851890Sopenharmony_ci#define PTRACE_GET_WATCH_REGS 0xd0
7822851890Sopenharmony_ci#define PTRACE_SET_WATCH_REGS 0xd1
7922851890Sopenharmony_ci#endif
80