00001 #ifndef cddbdef_h 00002 #define cddbdef_h 00003 00004 #define CDDB_M_SNGLSTRM 0x1 00005 #define CDDB_M_IMPEND 0x2 00006 #define CDDB_M_INITING 0x4 00007 #define CDDB_M_RECONNECT 0x8 00008 #define CDDB_M_RESYNCH 0x10 00009 #define CDDB_M_POLLING 0x20 00010 #define CDDB_M_ALCLS_SET 0x40 00011 #define CDDB_M_NOCONN 0x80 00012 #define CDDB_M_RSTRTWAIT 0x100 00013 #define CDDB_M_QUORLOST 0x200 00014 #define CDDB_M_DAPBSY 0x400 00015 #define CDDB_M_2PBSY 0x800 00016 #define CDDB_M_BSHADOW 0x1000 00017 #define CDDB_M_DISABLED 0x2000 00018 #define CDDB_M_PATHMOVE 0x4000 00019 #define CDDB_M_PRMBSY 0x8000 00020 #define CDDB_M_DISC_PEND 0x10000 00021 #define CDDB_M_CRNSET 0x20000 00022 #define CDDB_M_FIRM_WREV 0x40000 00023 #define CDDB_M_PRMBSY_CLEANUP_PERMITTED 0x80000 00024 #define CDDB_K_LENGTH 152 00025 #define CDDB_C_LENGTH 152 00026 00027 #define CDDB_S_CDDBDEF 152 00028 00029 struct _cddb { 00030 struct _cdrp *cddb_l_cdrpqfl; 00031 struct _cdrp *cddb_l_cdrpqbl; 00032 unsigned short int cddb_w_size; 00033 unsigned char cddb_b_type; 00034 unsigned char cddb_b_subtype; 00035 unsigned char cddb_b_systemid [8]; 00036 union { 00037 unsigned int cddb_l_status; 00038 struct { 00039 unsigned cddb_v_snglstrm : 1; 00040 unsigned cddb_v_impend : 1; 00041 unsigned cddb_v_initing : 1; 00042 unsigned cddb_v_reconnect : 1; 00043 unsigned cddb_v_resynch : 1; 00044 unsigned cddb_v_polling : 1; 00045 unsigned cddb_v_alcls_set : 1; 00046 unsigned cddb_v_noconn : 1; 00047 unsigned cddb_v_rstrtwait : 1; 00048 unsigned cddb_v_quorlost : 1; 00049 unsigned cddb_v_dapbsy : 1; 00050 unsigned cddb_v_2pbsy : 1; 00051 unsigned cddb_v_bshadow : 1; 00052 unsigned cddb_v_disabled : 1; 00053 unsigned cddb_v_pathmove : 1; 00054 unsigned cddb_v_prmbsy : 1; 00055 unsigned cddb_v_disc_pend : 1; 00056 unsigned cddb_v_crnset : 1; 00057 unsigned cddb_v_firm_wrev : 1; 00058 unsigned cddb_v_prmbsy_cleanup_permitted : 1; 00059 unsigned cddb_v_fill_0_ : 4; 00060 }; 00061 }; 00062 struct _pdt *cddb_l_pdt; 00063 struct _crb *cddb_l_crb; 00064 struct _ddb *cddb_l_ddb; 00065 union { 00066 unsigned long long cddb_q_cntrlid; 00067 struct { 00068 char cddbdef_$_fill_2 [6]; 00069 unsigned char cddb_b_cntrlmdl; 00070 unsigned char cddb_b_cntrlcls; 00071 }; 00072 }; 00073 unsigned short int cddb_w_cntrlflgs; 00074 unsigned short int cddb_w_cntrltmo; 00075 unsigned int cddb_l_oldrspid; 00076 unsigned int cddb_l_oldcmdsts; 00077 struct _cdrp *cddb_l_rstrtcdrp; 00078 unsigned int cddb_l_retrycnt; 00079 unsigned int cddb_l_dapcount; 00080 unsigned int cddb_l_rstrtcnt; 00081 struct _cdrp *cddb_l_rstrtqfl; 00082 struct _cdrp *cddb_l_rstrtqbl; 00083 void (*cddb_l_saved_pc)(); 00084 void (*cddb_l_saved_pc1)(); 00085 struct _ucb *cddb_l_ucbchain; 00086 struct _ucb *cddb_l_origucb; 00087 unsigned int cddb_l_allocls; 00088 struct _cdrp *cddb_l_dapcdrp; 00089 struct _cddb *cddb_l_cddblink; 00090 unsigned int cddb_l_fover_ctr; 00091 unsigned int cddb_l_wtucbctr; 00092 unsigned int cddb_l_maxbcnt; 00093 unsigned int cddb_l_ctrltr_mask; 00094 unsigned int cddb_l_cpyseqnum; 00095 unsigned int cddb_l_dap_limit; 00096 unsigned char cddb_b_csvrsn; 00097 unsigned char cddb_b_chvrsn; 00098 unsigned short int cddb_w_load_avail; 00099 unsigned int cddb_l_counter; 00100 unsigned int cddb_l_conid; 00101 unsigned int cddb_l_cdt; 00102 struct _cdrp *cddb_l_prmcdrp; 00103 }; 00104 00105 #endif 00106 00107