comparison nav_print.c @ 20:fce16251755c src

Remove all trailing whitespace, patch by Erik Hovland *erik$hovland dot org%
author rathann
date Sat, 06 Sep 2008 21:55:51 +0000
parents 5aeaa695eadb
children 4aa618ae094f
comparison
equal deleted inserted replaced
19:7f7e87bd7536 20:fce16251755c
43 printf("vobu_e_ptm 0x%08x\n", pci_gi->vobu_e_ptm); 43 printf("vobu_e_ptm 0x%08x\n", pci_gi->vobu_e_ptm);
44 printf("vobu_se_e_ptm 0x%08x\n", pci_gi->vobu_se_e_ptm); 44 printf("vobu_se_e_ptm 0x%08x\n", pci_gi->vobu_se_e_ptm);
45 printf("e_eltm "); 45 printf("e_eltm ");
46 dvdread_print_time(&pci_gi->e_eltm); 46 dvdread_print_time(&pci_gi->e_eltm);
47 printf("\n"); 47 printf("\n");
48 48
49 printf("vobu_isrc \""); 49 printf("vobu_isrc \"");
50 for(i = 0; i < 32; i++) { 50 for(i = 0; i < 32; i++) {
51 char c = pci_gi->vobu_isrc[i]; 51 char c = pci_gi->vobu_isrc[i];
52 if((c >= ' ') && (c <= '~')) 52 if((c >= ' ') && (c <= '~'))
53 printf("%c", c); 53 printf("%c", c);
57 printf("\"\n"); 57 printf("\"\n");
58 } 58 }
59 59
60 static void navPrint_NSML_AGLI(nsml_agli_t *nsml_agli) { 60 static void navPrint_NSML_AGLI(nsml_agli_t *nsml_agli) {
61 int i, j = 0; 61 int i, j = 0;
62 62
63 for(i = 0; i < 9; i++) 63 for(i = 0; i < 9; i++)
64 j |= nsml_agli->nsml_agl_dsta[i]; 64 j |= nsml_agli->nsml_agl_dsta[i];
65 if(j == 0) 65 if(j == 0)
66 return; 66 return;
67 67
68 printf("nsml_agli:\n"); 68 printf("nsml_agli:\n");
69 for(i = 0; i < 9; i++) 69 for(i = 0; i < 9; i++)
70 if(nsml_agli->nsml_agl_dsta[i]) 70 if(nsml_agli->nsml_agl_dsta[i])
71 printf("nsml_agl_c%d_dsta 0x%08x\n", i + 1, 71 printf("nsml_agl_c%d_dsta 0x%08x\n", i + 1,
72 nsml_agli->nsml_agl_dsta[i]); 72 nsml_agli->nsml_agl_dsta[i]);
73 } 73 }
74 74
75 static void navPrint_HL_GI(hl_gi_t *hl_gi, int *btngr_ns, int *btn_ns) { 75 static void navPrint_HL_GI(hl_gi_t *hl_gi, int *btngr_ns, int *btn_ns) {
76 76
77 if((hl_gi->hli_ss & 0x03) == 0) 77 if((hl_gi->hli_ss & 0x03) == 0)
78 return; 78 return;
79 79
80 printf("hl_gi:\n"); 80 printf("hl_gi:\n");
81 printf("hli_ss 0x%01x\n", hl_gi->hli_ss & 0x03); 81 printf("hli_ss 0x%01x\n", hl_gi->hli_ss & 0x03);
82 printf("hli_s_ptm 0x%08x\n", hl_gi->hli_s_ptm); 82 printf("hli_s_ptm 0x%08x\n", hl_gi->hli_s_ptm);
83 printf("hli_e_ptm 0x%08x\n", hl_gi->hli_e_ptm); 83 printf("hli_e_ptm 0x%08x\n", hl_gi->hli_e_ptm);
84 printf("btn_se_e_ptm 0x%08x\n", hl_gi->btn_se_e_ptm); 84 printf("btn_se_e_ptm 0x%08x\n", hl_gi->btn_se_e_ptm);
86 *btngr_ns = hl_gi->btngr_ns; 86 *btngr_ns = hl_gi->btngr_ns;
87 printf("btngr_ns %d\n", hl_gi->btngr_ns); 87 printf("btngr_ns %d\n", hl_gi->btngr_ns);
88 printf("btngr%d_dsp_ty 0x%02x\n", 1, hl_gi->btngr1_dsp_ty); 88 printf("btngr%d_dsp_ty 0x%02x\n", 1, hl_gi->btngr1_dsp_ty);
89 printf("btngr%d_dsp_ty 0x%02x\n", 2, hl_gi->btngr2_dsp_ty); 89 printf("btngr%d_dsp_ty 0x%02x\n", 2, hl_gi->btngr2_dsp_ty);
90 printf("btngr%d_dsp_ty 0x%02x\n", 3, hl_gi->btngr3_dsp_ty); 90 printf("btngr%d_dsp_ty 0x%02x\n", 3, hl_gi->btngr3_dsp_ty);
91 91
92 printf("btn_ofn %d\n", hl_gi->btn_ofn); 92 printf("btn_ofn %d\n", hl_gi->btn_ofn);
93 *btn_ns = hl_gi->btn_ns; 93 *btn_ns = hl_gi->btn_ns;
94 printf("btn_ns %d\n", hl_gi->btn_ns); 94 printf("btn_ns %d\n", hl_gi->btn_ns);
95 printf("nsl_btn_ns %d\n", hl_gi->nsl_btn_ns); 95 printf("nsl_btn_ns %d\n", hl_gi->nsl_btn_ns);
96 printf("fosl_btnn %d\n", hl_gi->fosl_btnn); 96 printf("fosl_btnn %d\n", hl_gi->fosl_btnn);
97 printf("foac_btnn %d\n", hl_gi->foac_btnn); 97 printf("foac_btnn %d\n", hl_gi->foac_btnn);
98 } 98 }
99 99
100 static void navPrint_BTN_COLIT(btn_colit_t *btn_colit) { 100 static void navPrint_BTN_COLIT(btn_colit_t *btn_colit) {
101 int i, j; 101 int i, j;
102 102
103 j = 0; 103 j = 0;
104 for(i = 0; i < 6; i++) 104 for(i = 0; i < 6; i++)
105 j |= btn_colit->btn_coli[i/2][i&1]; 105 j |= btn_colit->btn_coli[i/2][i&1];
106 if(j == 0) 106 if(j == 0)
107 return; 107 return;
108 108
109 printf("btn_colit:\n"); 109 printf("btn_colit:\n");
110 for(i = 0; i < 3; i++) 110 for(i = 0; i < 3; i++)
111 for(j = 0; j < 2; j++) 111 for(j = 0; j < 2; j++)
112 printf("btn_cqoli %d %s_coli: %08x\n", 112 printf("btn_cqoli %d %s_coli: %08x\n",
113 i, (j == 0) ? "sl" : "ac", 113 i, (j == 0) ? "sl" : "ac",
114 btn_colit->btn_coli[i][j]); 114 btn_colit->btn_coli[i][j]);
115 } 115 }
116 116
117 static void navPrint_BTNIT(btni_t *btni_table, int btngr_ns, int btn_ns) { 117 static void navPrint_BTNIT(btni_t *btni_table, int btngr_ns, int btn_ns) {
118 int i, j; 118 int i, j;
119 119
120 printf("btnit:\n"); 120 printf("btnit:\n");
121 printf("btngr_ns: %i\n", btngr_ns); 121 printf("btngr_ns: %i\n", btngr_ns);
122 printf("btn_ns: %i\n", btn_ns); 122 printf("btn_ns: %i\n", btn_ns);
123 123
124 if(btngr_ns == 0) 124 if(btngr_ns == 0)
125 return; 125 return;
126 126
127 for(i = 0; i < btngr_ns; i++) { 127 for(i = 0; i < btngr_ns; i++) {
128 for(j = 0; j < (36 / btngr_ns); j++) { 128 for(j = 0; j < (36 / btngr_ns); j++) {
129 if(j < btn_ns) { 129 if(j < btn_ns) {
130 btni_t *btni = &btni_table[(36 / btngr_ns) * i + j]; 130 btni_t *btni = &btni_table[(36 / btngr_ns) * i + j];
131 131
132 printf("group %d btni %d: ", i+1, j+1); 132 printf("group %d btni %d: ", i+1, j+1);
133 printf("btn_coln %d, auto_action_mode %d\n", 133 printf("btn_coln %d, auto_action_mode %d\n",
134 btni->btn_coln, btni->auto_action_mode); 134 btni->btn_coln, btni->auto_action_mode);
135 printf("coords (%d, %d) .. (%d, %d)\n", 135 printf("coords (%d, %d) .. (%d, %d)\n",
136 btni->x_start, btni->y_start, btni->x_end, btni->y_end); 136 btni->x_start, btni->y_start, btni->x_end, btni->y_end);
137 137
138 printf("up %d, ", btni->up); 138 printf("up %d, ", btni->up);
139 printf("down %d, ", btni->down); 139 printf("down %d, ", btni->down);
140 printf("left %d, ", btni->left); 140 printf("left %d, ", btni->left);
141 printf("right %d\n", btni->right); 141 printf("right %d\n", btni->right);
142 142
143 /* ifoPrint_COMMAND(&btni->cmd); */ 143 /* ifoPrint_COMMAND(&btni->cmd); */
144 printf("\n"); 144 printf("\n");
145 } 145 }
146 } 146 }
147 } 147 }
148 } 148 }
149 149
150 static void navPrint_HLI(hli_t *hli) { 150 static void navPrint_HLI(hli_t *hli) {
151 int btngr_ns = 0, btn_ns = 0; 151 int btngr_ns = 0, btn_ns = 0;
152 152
153 printf("hli:\n"); 153 printf("hli:\n");
154 navPrint_HL_GI(&hli->hl_gi, & btngr_ns, & btn_ns); 154 navPrint_HL_GI(&hli->hl_gi, & btngr_ns, & btn_ns);
155 navPrint_BTN_COLIT(&hli->btn_colit); 155 navPrint_BTN_COLIT(&hli->btn_colit);
156 navPrint_BTNIT(hli->btnit, btngr_ns, btn_ns); 156 navPrint_BTNIT(hli->btnit, btngr_ns, btn_ns);
157 } 157 }
187 printf("VOBU is in ILVU\n"); 187 printf("VOBU is in ILVU\n");
188 if(sml_pbi->category & 0x2000) 188 if(sml_pbi->category & 0x2000)
189 printf("VOBU at the beginning of ILVU\n"); 189 printf("VOBU at the beginning of ILVU\n");
190 if(sml_pbi->category & 0x1000) 190 if(sml_pbi->category & 0x1000)
191 printf("VOBU at end of PREU of ILVU\n"); 191 printf("VOBU at end of PREU of ILVU\n");
192 192
193 printf("ilvu_ea 0x%08x\n", sml_pbi->ilvu_ea); 193 printf("ilvu_ea 0x%08x\n", sml_pbi->ilvu_ea);
194 printf("nxt_ilvu_sa 0x%08x\n", sml_pbi->ilvu_sa); 194 printf("nxt_ilvu_sa 0x%08x\n", sml_pbi->ilvu_sa);
195 printf("nxt_ilvu_size 0x%04x\n", sml_pbi->size); 195 printf("nxt_ilvu_size 0x%04x\n", sml_pbi->size);
196 196
197 printf("vob_v_s_s_ptm 0x%08x\n", sml_pbi->vob_v_s_s_ptm); 197 printf("vob_v_s_s_ptm 0x%08x\n", sml_pbi->vob_v_s_s_ptm);
198 printf("vob_v_e_e_ptm 0x%08x\n", sml_pbi->vob_v_e_e_ptm); 198 printf("vob_v_e_e_ptm 0x%08x\n", sml_pbi->vob_v_e_e_ptm);
199 199
200 /* $$$ more code needed here */ 200 /* $$$ more code needed here */
201 } 201 }
202 202
203 static void navPrint_SML_AGLI(sml_agli_t *sml_agli) { 203 static void navPrint_SML_AGLI(sml_agli_t *sml_agli) {
204 int i; 204 int i;
209 } 209 }
210 } 210 }
211 211
212 static void navPrint_VOBU_SRI(vobu_sri_t *vobu_sri) { 212 static void navPrint_VOBU_SRI(vobu_sri_t *vobu_sri) {
213 int i; 213 int i;
214 int stime[19] = { 240, 120, 60, 20, 15, 14, 13, 12, 11, 214 int stime[19] = { 240, 120, 60, 20, 15, 14, 13, 12, 11,
215 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}; 215 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
216 printf("vobu_sri:\n"); 216 printf("vobu_sri:\n");
217 printf("Next VOBU with Video %08x\n", vobu_sri->next_video); 217 printf("Next VOBU with Video %08x\n", vobu_sri->next_video);
218 for(i = 0; i < 19; i++) { 218 for(i = 0; i < 19; i++) {
219 printf("%3.1f %08x ", stime[i]/2.0, vobu_sri->fwda[i]); 219 printf("%3.1f %08x ", stime[i]/2.0, vobu_sri->fwda[i]);
229 printf("Prev VOBU with Video %08x\n", vobu_sri->prev_video); 229 printf("Prev VOBU with Video %08x\n", vobu_sri->prev_video);
230 } 230 }
231 231
232 static void navPrint_SYNCI(synci_t *synci) { 232 static void navPrint_SYNCI(synci_t *synci) {
233 int i; 233 int i;
234 234
235 printf("synci:\n"); 235 printf("synci:\n");
236 /* $$$ more code needed here */ 236 /* $$$ more code needed here */
237 for(i = 0; i < 8; i++) 237 for(i = 0; i < 8; i++)
238 printf("%04x ", synci->a_synca[i]); 238 printf("%04x ", synci->a_synca[i]);
239 for(i = 0; i < 32; i++) 239 for(i = 0; i < 32; i++)