Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #ifndef _FPU_PROTO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define _FPU_PROTO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) /* errors.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) extern void FPU_illegal(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) extern void FPU_printall(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) asmlinkage void FPU_exception(int n);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) extern int real_1op_NaN(FPU_REG *a);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) extern int real_2op_NaN(FPU_REG const *b, u_char tagb, int deststnr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 			FPU_REG const *defaultNaN);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) asmlinkage int arith_invalid(int deststnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) asmlinkage int FPU_divide_by_zero(int deststnr, u_char sign);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) extern int set_precision_flag(int flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) asmlinkage void set_precision_flag_up(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) asmlinkage void set_precision_flag_down(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) asmlinkage int denormal_operand(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) asmlinkage int arith_overflow(FPU_REG *dest);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) asmlinkage int arith_underflow(FPU_REG *dest);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) extern void FPU_stack_overflow(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) extern void FPU_stack_underflow(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) extern void FPU_stack_underflow_i(int i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) extern void FPU_stack_underflow_pop(int i);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) /* fpu_arith.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) extern void fadd__(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) extern void fmul__(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) extern void fsub__(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) extern void fsubr_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) extern void fdiv__(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) extern void fdivr_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) extern void fadd_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) extern void fmul_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) extern void fsubri(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) extern void fsub_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) extern void fdivri(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) extern void fdiv_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) extern void faddp_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) extern void fmulp_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) extern void fsubrp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) extern void fsubp_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) extern void fdivrp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) extern void fdivp_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) /* fpu_aux.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) extern void finit(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) extern void finit_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) extern void fstsw_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) extern void fp_nop(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) extern void fld_i_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) extern void fxch_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) extern void fcmovb(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) extern void fcmove(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) extern void fcmovbe(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) extern void fcmovu(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) extern void fcmovnb(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) extern void fcmovne(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) extern void fcmovnbe(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) extern void fcmovnu(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) extern void ffree_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) extern void ffreep(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) extern void fst_i_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) extern void fstp_i(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) /* fpu_entry.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) extern void math_emulate(struct math_emu_info *info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) extern void math_abort(struct math_emu_info *info, unsigned int signal);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) /* fpu_etc.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) extern void FPU_etc(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) /* fpu_tags.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) extern int FPU_gettag0(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) extern int FPU_gettagi(int stnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) extern int FPU_gettag(int regnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) extern void FPU_settag0(int tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) extern void FPU_settagi(int stnr, int tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) extern void FPU_settag(int regnr, int tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) extern int FPU_Special(FPU_REG const *ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) extern int isNaN(FPU_REG const *ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) extern void FPU_pop(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) extern int FPU_empty_i(int stnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) extern int FPU_stackoverflow(FPU_REG ** st_new_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) extern void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) extern void FPU_copy_to_reg1(FPU_REG const *r, u_char tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) extern void FPU_copy_to_reg0(FPU_REG const *r, u_char tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) /* fpu_trig.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) extern void FPU_triga(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) extern void FPU_trigb(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) /* get_address.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) extern void __user *FPU_get_address(u_char FPU_modrm, unsigned long *fpu_eip,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 				    struct address *addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 				    fpu_addr_modes addr_modes);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) extern void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 				       struct address *addr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 				       fpu_addr_modes addr_modes);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) /* load_store.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) extern int FPU_load_store(u_char type, fpu_addr_modes addr_modes,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 			  void __user * data_address);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) /* poly_2xm1.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) extern int poly_2xm1(u_char sign, FPU_REG * arg, FPU_REG *result);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) /* poly_atan.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) extern void poly_atan(FPU_REG * st0_ptr, u_char st0_tag, FPU_REG *st1_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 		      u_char st1_tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) /* poly_l2.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) extern void poly_l2(FPU_REG *st0_ptr, FPU_REG *st1_ptr, u_char st1_sign);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) extern int poly_l2p1(u_char s0, u_char s1, FPU_REG *r0, FPU_REG *r1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 		     FPU_REG * d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) /* poly_sin.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) extern void poly_sine(FPU_REG *st0_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) extern void poly_cos(FPU_REG *st0_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) /* poly_tan.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) extern void poly_tan(FPU_REG *st0_ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) /* reg_add_sub.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) extern int FPU_add(FPU_REG const *b, u_char tagb, int destrnr, int control_w);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) extern int FPU_sub(int flags, int rm, int control_w);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) /* reg_compare.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) extern int FPU_compare_st_data(FPU_REG const *loaded_data, u_char loaded_tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) extern void fcom_st(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) extern void fcompst(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) extern void fcompp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) extern void fucom_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) extern void fucomp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) extern void fucompp(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) extern void fcomi_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) extern void fcomip(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) extern void fucomi_(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) extern void fucomip(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) /* reg_constant.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) extern void fconst(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) /* reg_ld_str.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) extern int FPU_load_extended(long double __user *s, int stnr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) extern int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) extern int FPU_load_single(float __user *single, FPU_REG *loaded_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) extern int FPU_load_int64(long long __user *_s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) extern int FPU_load_int32(long __user *_s, FPU_REG *loaded_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) extern int FPU_load_int16(short __user *_s, FPU_REG *loaded_data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) extern int FPU_load_bcd(u_char __user *s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) extern int FPU_store_extended(FPU_REG *st0_ptr, u_char st0_tag,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 			      long double __user * d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) extern int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 			    double __user * dfloat);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) extern int FPU_store_single(FPU_REG *st0_ptr, u_char st0_tag,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 			    float __user * single);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) extern int FPU_store_int64(FPU_REG *st0_ptr, u_char st0_tag,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 			   long long __user * d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) extern int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) extern int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) extern int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) extern int FPU_round_to_int(FPU_REG *r, u_char tag);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) extern void frstor(fpu_addr_modes addr_modes, u_char __user *data_address);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) extern void fsave(fpu_addr_modes addr_modes, u_char __user *data_address);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) extern int FPU_tagof(FPU_REG *ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) /* reg_mul.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) extern int FPU_mul(FPU_REG const *b, u_char tagb, int deststnr, int control_w);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) extern int FPU_div(int flags, int regrm, int control_w);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) /* reg_convert.c */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) extern int FPU_to_exp16(FPU_REG const *a, FPU_REG *x);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) #endif /* _FPU_PROTO_H */