00001 #ifndef ddbdef_h 00002 #define ddbdef_h 00003 00004 #define DDB_M_NO_TIMEOUT 0x1 00005 #define DDB_M_PAC 0x2 00006 #define DDB_K_PACK 1 00007 #define DDB_K_CART 2 00008 #define DDB_K_SLOW 3 00009 #define DDB_K_TAPE 4 00010 00011 00012 #define DDB_K_LENGTH 72 00013 #define DDB_C_LENGTH 72 00014 #define DDB_S_DDBDEF 72 00015 00016 struct _ddb { 00017 union { 00018 int ddb_l_link; 00019 int ddb_l_blink; 00020 struct { 00021 struct _ddb *ddb_ps_link; 00022 struct _ddb *ddb_ps_blink; 00023 }; 00024 }; 00025 union { 00026 int ddb_l_ucb; 00027 struct { 00028 struct _ucb *ddb_ps_ucb; 00029 }; 00030 }; 00031 union { 00032 unsigned short int ddb_w_size; 00033 struct { 00034 unsigned short int ddb_iw_size; 00035 }; 00036 }; 00037 union { 00038 unsigned char ddb_b_type; 00039 struct { 00040 unsigned char ddb_ib_type; 00041 }; 00042 }; 00043 union { 00044 unsigned char ddb_b_flags; 00045 struct { 00046 unsigned ddb_v_no_timeout : 1; 00047 unsigned ddb_v_pac : 1; 00048 unsigned ddb_v_fill_22_ : 6; 00049 }; 00050 }; 00051 union { 00052 int ddb_l_ddt; 00053 struct { 00054 struct _ddt *ddb_ps_ddt; 00055 }; 00056 }; 00057 union { 00058 unsigned int ddb_l_acpd; 00059 unsigned int ddb_il_acpd; 00060 struct { 00061 char ddbdef_$_fill_4 [3]; 00062 union { 00063 unsigned char ddb_b_acpclass; 00064 struct { 00065 unsigned char ddb_ib_acpclass; 00066 }; 00067 }; 00068 }; 00069 }; 00070 union { 00071 char ddb_t_name [16]; 00072 struct { 00073 union { 00074 unsigned char ddb_b_name_len; 00075 struct { 00076 unsigned char ddb_ib_name_len; 00077 }; 00078 }; 00079 char ddb_t_name_str [15]; 00080 }; 00081 }; 00082 struct _dpt *ddb_ps_dpt; 00083 struct _ddb *ddb_ps_drvlink; 00084 union { 00085 int ddb_l_sb; 00086 struct { 00087 int ddb_ps_sb; 00088 }; 00089 }; 00090 union { 00091 int ddb_l_conlink; 00092 struct { 00093 struct _ddb *ddb_ps_conlink; 00094 }; 00095 }; 00096 union { 00097 unsigned int ddb_l_allocls; 00098 struct { 00099 unsigned int ddb_il_allocls; 00100 }; 00101 }; 00102 union { 00103 struct _ucb *ddb_l_2p_ucb; 00104 struct _ucb *ddb_ps_2p_ucb; 00105 struct _ucb *ddb_l_dp_ucb; 00106 }; 00107 union { 00108 unsigned int ddb_l_port_id; 00109 struct { 00110 char ddb_t_port_id [1]; 00111 }; 00112 }; 00113 unsigned int ddb_l_class_lkid; 00114 void *ddb_ps_2p_ddb; 00115 }; 00116 00117 #endif 00118