aboutsummaryrefslogblamecommitdiffstats
path: root/include/asm-sparc/reg.h
blob: ea0a7e590bb3fb1e8ecd9bc2c7be01ee96efda34 (plain) (tree)
1
2
  
                                












































































                                                                     
/*
 * linux/include/asm-sparc/reg.h
 * Layout of the registers as expected by gdb on the Sparc
 * we should replace the user.h definitions with those in
 * this file, we don't even use the other 
 * -miguel
 *
 * The names of the structures, constants and aliases in this file
 * have the same names as the sunos ones, some programs rely on these
 * names (gdb for example).
 *
 */

#ifndef __SPARC_REG_H
#define __SPARC_REG_H

struct regs {
	int     r_psr;
#define r_ps r_psr
        int     r_pc; 
        int     r_npc;
        int     r_y;  
        int     r_g1; 
        int     r_g2;
        int     r_g3;
        int     r_g4;
        int     r_g5;
        int     r_g6;
        int     r_g7;
        int     r_o0;
        int     r_o1;
        int     r_o2;
        int     r_o3;
        int     r_o4;
        int     r_o5;
        int     r_o6;
        int     r_o7;
};

struct fpq {
        unsigned long *addr;
        unsigned long instr;
};

struct  fq {
        union {
                double  whole;
                struct  fpq fpq;
        } FQu;
};

#define FPU_REGS_TYPE unsigned int
#define FPU_FSR_TYPE unsigned

struct fp_status {
        union {
                FPU_REGS_TYPE Fpu_regs[32];
                double  Fpu_dregs[16];
        } fpu_fr;
        FPU_FSR_TYPE Fpu_fsr;
        unsigned Fpu_flags;
        unsigned Fpu_extra;
        unsigned Fpu_qcnt;
        struct fq Fpu_q[16];
};

#define fpu_regs  f_fpstatus.fpu_fr.Fpu_regs
#define fpu_dregs f_fpstatus.fpu_fr.Fpu_dregs
#define fpu_fsr   f_fpstatus.Fpu_fsr
#define fpu_flags f_fpstatus.Fpu_flags
#define fpu_extra f_fpstatus.Fpu_extra
#define fpu_q     f_fpstatus.Fpu_q
#define fpu_qcnt  f_fpstatus.Fpu_qcnt

struct fpu {
        struct fp_status f_fpstatus;
};

#endif /* __SPARC_REG_H */
pan class="hl opt">; /* type of vtx-chipset (SAA5243, SAA5246, SAA5248 or * SAA5249) */ } vtx_info_t; /* * Definitions for VTXIOC{CLRPAGE,CLRFOUND,PAGEREQ,GETSTAT,GETPAGE,STOPDAU,PUTPAGE,SETDISP} */ #define MIN_UNIT (1<<0) #define MIN_TEN (1<<1) #define HR_UNIT (1<<2) #define HR_TEN (1<<3) #define PG_UNIT (1<<4) #define PG_TEN (1<<5) #define PG_HUND (1<<6) #define PGMASK_MAX (1<<7) #define PGMASK_PAGE (PG_HUND | PG_TEN | PG_UNIT) #define PGMASK_HOUR (HR_TEN | HR_UNIT) #define PGMASK_MINUTE (MIN_TEN | MIN_UNIT) typedef struct { int page; /* number of requested page (hexadecimal) */ int hour; /* requested hour (hexadecimal) */ int minute; /* requested minute (hexadecimal) */ int pagemask; /* mask defining which values of the above are set */ int pgbuf; /* buffer where page will be stored */ int start; /* start of requested part of page */ int end; /* end of requested part of page */ void __user *buffer; /* pointer to beginning of destination buffer */ } vtx_pagereq_t; /* * Definitions for VTXIOC{GETSTAT,PUTSTAT} */ #define VTX_PAGESIZE (40 * 24) #define VTX_VIRTUALSIZE (40 * 49) typedef struct { int pagenum; /* number of page (hexadecimal) */ int hour; /* hour (hexadecimal) */ int minute; /* minute (hexadecimal) */ int charset; /* national charset */ unsigned delete : 1; /* delete page (C4) */ unsigned headline : 1; /* insert headline (C5) */ unsigned subtitle : 1; /* insert subtitle (C6) */ unsigned supp_header : 1; /* suppress header (C7) */ unsigned update : 1; /* update page (C8) */ unsigned inter_seq : 1; /* interrupted sequence (C9) */ unsigned dis_disp : 1; /* disable/suppress display (C10) */ unsigned serial : 1; /* serial mode (C11) */ unsigned notfound : 1; /* /FOUND */ unsigned pblf : 1; /* PBLF */ unsigned hamming : 1; /* hamming-error occurred */ } vtx_pageinfo_t; #endif /* _VTX_H */