00001 #ifndef eihddef_h 00002 #define eihddef_h 00003 00004 #define EIHD_K_MAJORID 3 00005 #define EIHD_K_MINORID 0 00006 #define EIHD_K_MINORID_64 1 00007 #define EIHD_K_EXE 1 00008 #define EIHD_K_LIM 2 00009 #define EIHD_C_MINCODE 0 00010 #define EIHD_C_NATIVE 0 00011 #define EIHD_C_CLI 1 00012 #define EIHD_C_MAXCODE 1 00013 #define EIHD_M_LNKDEBUG 0x1 00014 #define EIHD_M_LNKNOTFR 0x2 00015 #define EIHD_M_NOP0BUFS 0x4 00016 #define EIHD_M_PICIMG 0x8 00017 #define EIHD_M_P0IMAGE 0x10 00018 #define EIHD_M_DBGDMT 0x20 00019 #define EIHD_M_INISHR 0x40 00020 #define EIHD_M_XLATED 0x80 00021 #define EIHD_M_BIND_CODE_SEC 0x100 00022 #define EIHD_M_BIND_DATA_SEC 0x200 00023 #define EIHD_M_MKTHREADS 0x400 00024 #define EIHD_M_UPCALLS 0x800 00025 #define EIHD_M_OMV_READY 0x1000 00026 #define EIHD_M_EXT_BIND_SECT 0x2000 00027 #define EIHD_K_LENGTH 104 00028 #define EIHD_C_LENGTH 104 00029 #define EIHD_K_LENGTH_97 112 00030 #define EIHD_K_ALIAS_MINCODE -1 00031 00032 #define EIHD_K_VAX -1 00033 #define EIHD_K_RSX 0 00034 #define EIHD_K_BPA 1 00035 #define EIHD_K_ALIAS 2 00036 #define EIHD_K_VAX_CLI 3 00037 #define EIHD_K_PMAX 4 00038 00039 #define EIHD_K_ALPHA 5 00040 #define EIHD_K_ALIAS_MAXCODE 5 00041 #define EIHD_S_EIHDDEF 512 00042 00043 struct _eihd { 00044 struct { 00045 unsigned int eihd_l_majorid; 00046 unsigned int eihd_l_minorid; 00047 }; 00048 unsigned int eihd_l_size; 00049 unsigned int eihd_l_isdoff; 00050 unsigned int eihd_l_activoff; 00051 unsigned int eihd_l_symdbgoff; 00052 unsigned int eihd_l_imgidoff; 00053 unsigned int eihd_l_patchoff; 00054 union { 00055 void *eihd_l_iafva; 00056 long long eihd_q_iafva; 00057 }; 00058 union { 00059 void *eihd_l_symvva; 00060 long long eihd_q_symvva; 00061 }; 00062 unsigned int eihd_l_version_array_off; 00063 unsigned int eihd_l_imgtype; 00064 unsigned int eihd_l_subtype; 00065 unsigned int eihd_l_imgiocnt; 00066 unsigned int eihd_l_iochancnt; 00067 unsigned long long eihd_q_privreqs; 00068 unsigned int eihd_l_hdrblkcnt; 00069 union { 00070 unsigned int eihd_l_lnkflags; 00071 struct { 00072 unsigned eihd_v_lnkdebug : 1; 00073 unsigned eihd_v_lnknotfr : 1; 00074 unsigned eihd_v_nop0bufs : 1; 00075 unsigned eihd_v_picimg : 1; 00076 unsigned eihd_v_p0image : 1; 00077 unsigned eihd_v_dbgdmt : 1; 00078 unsigned eihd_v_inishr : 1; 00079 unsigned eihd_v_xlated : 1; 00080 unsigned eihd_v_bind_code_sec : 1; 00081 unsigned eihd_v_bind_data_sec : 1; 00082 unsigned eihd_v_mkthreads : 1; 00083 unsigned eihd_v_upcalls : 1; 00084 unsigned eihd_v_omv_ready : 1; 00085 unsigned eihd_v_ext_bind_sect : 1; 00086 unsigned eihd_v_fill_0_ : 2; 00087 }; 00088 }; 00089 unsigned int eihd_l_ident; 00090 unsigned int eihd_l_sysver; 00091 struct { 00092 unsigned char eihd_b_matchctl; 00093 unsigned char eihd_b_fill_1; 00094 unsigned char eihd_b_fill_2; 00095 unsigned char eihd_b_fill_3; 00096 unsigned int eihd_l_symvect_size; 00097 unsigned int eihd_l_virt_mem_block_size; 00098 }; 00099 unsigned int eihd_l_ext_fixup_off; 00100 unsigned int eihd_l_noopt_psect_off; 00101 char eihd_t_skip [398]; 00102 unsigned short int eihd_w_alias; 00103 }; 00104 00105 #endif 00106 00107