~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-ia64/fpswa.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef _ASM_IA64_FPSWA_H
  2 #define _ASM_IA64_FPSWA_H
  3 
  4 /*
  5  * Floating-point Software Assist
  6  *
  7  * Copyright (C) 1999 Intel Corporation.
  8  * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
  9  * Copyright (C) 1999 Goutham Rao <goutham.rao@intel.com>
 10  */
 11 
 12 #if 1
 13 #define FPSWA_BUG
 14 #endif
 15 
 16 typedef struct {
 17         /* 4 * 128 bits */
 18         unsigned long fp_lp[4*2];
 19 } fp_state_low_preserved_t;
 20 
 21 typedef struct {
 22         /* 10 * 128 bits */
 23         unsigned long fp_lv[10 * 2];
 24 } fp_state_low_volatile_t;
 25 
 26 typedef struct {
 27         /* 16 * 128 bits */
 28         unsigned long fp_hp[16 * 2];
 29 } fp_state_high_preserved_t;
 30 
 31 typedef struct {
 32         /* 96 * 128 bits */
 33         unsigned long fp_hv[96 * 2];
 34 } fp_state_high_volatile_t;
 35 
 36 /**
 37  * floating point state to be passed to the FP emulation library by
 38  * the trap/fault handler
 39  */
 40 typedef struct {
 41         unsigned long                   bitmask_low64;
 42         unsigned long                   bitmask_high64;
 43         fp_state_low_preserved_t        *fp_state_low_preserved;
 44         fp_state_low_volatile_t         *fp_state_low_volatile;
 45         fp_state_high_preserved_t       *fp_state_high_preserved;
 46         fp_state_high_volatile_t        *fp_state_high_volatile;
 47 } fp_state_t;
 48 
 49 typedef struct {
 50         unsigned long status;
 51         unsigned long err0;
 52         unsigned long err1;
 53         unsigned long err2;
 54 } fpswa_ret_t;
 55 
 56 /**
 57  * function header for the Floating Point software assist
 58  * library. This function is invoked by the Floating point software
 59  * assist trap/fault handler.
 60  */
 61 typedef fpswa_ret_t (*efi_fpswa_t) (unsigned long trap_type, void *bundle, unsigned long *ipsr,
 62                                     unsigned long *fsr, unsigned long *isr, unsigned long *preds,
 63                                     unsigned long *ifs, fp_state_t *fp_state);
 64 
 65 /**
 66  * This is the FPSWA library interface as defined by EFI.  We need to pass a 
 67  * pointer to the interface itself on a call to the assist library
 68  */
 69 typedef struct {
 70         unsigned int     revision;
 71         unsigned int     reserved;
 72         efi_fpswa_t      fpswa;
 73 } fpswa_interface_t;
 74 
 75 #endif /* _ASM_IA64_FPSWA_H */
 76 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.