tag | line | file | source code |
infobuf | 574 | drivers/cdrom/sbpcd.c | static u_char infobuf[20]; |
infobuf | 1007 | drivers/cdrom/sbpcd.c | infobuf[i]=inb(CDi_info); |
infobuf | 1012 | drivers/cdrom/sbpcd.c | infobuf[i++]=inb(CDi_info); |
infobuf | 1018 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
infobuf | 1087 | drivers/cdrom/sbpcd.c | if (i>=0) i=infobuf[0]; |
infobuf | 1209 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
infobuf | 1211 | drivers/cdrom/sbpcd.c | i=sta2err(infobuf[i]); |
infobuf | 1271 | drivers/cdrom/sbpcd.c | infobuf[l++]=i&0x0ff; |
infobuf | 1272 | drivers/cdrom/sbpcd.c | infobuf[l++]=i>>8; |
infobuf | 1274 | drivers/cdrom/sbpcd.c | if ((l==2)&&(infobuf[0]==0x0ff)) |
infobuf | 1276 | drivers/cdrom/sbpcd.c | infobuf[0]=infobuf[1]; |
infobuf | 1282 | drivers/cdrom/sbpcd.c | else infobuf[l++]=inb(CDi_data); |
infobuf | 1286 | drivers/cdrom/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
infobuf | 1315 | drivers/cdrom/sbpcd.c | infobuf[m++]=inb(CDi_info); |
infobuf | 1319 | drivers/cdrom/sbpcd.c | for (j=0;j<m;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]); |
infobuf | 1324 | drivers/cdrom/sbpcd.c | infobuf[0]=infobuf[l]; |
infobuf | 1325 | drivers/cdrom/sbpcd.c | if (infobuf[0]!=0x02) return (l); /* data length */ |
infobuf | 1327 | drivers/cdrom/sbpcd.c | else if (infobuf[0]!=0x02) return (m); /* info length */ |
infobuf | 1339 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
infobuf | 1340 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
infobuf | 1341 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
infobuf | 1598 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 1602 | drivers/cdrom/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
infobuf | 1603 | drivers/cdrom/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
infobuf | 1606 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
infobuf | 1608 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
infobuf | 1613 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 2198 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 2203 | drivers/cdrom/sbpcd.c | if (infobuf[0]!=0) break; |
infobuf | 2211 | drivers/cdrom/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
infobuf | 2212 | drivers/cdrom/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
infobuf | 2213 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
infobuf | 2214 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
infobuf | 2218 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
infobuf | 2223 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
infobuf | 2224 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
infobuf | 2260 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
infobuf | 2263 | drivers/cdrom/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
infobuf | 2267 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
infobuf | 2269 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 2373 | drivers/cdrom/sbpcd.c | chan0=infobuf[1]&0x0F; |
infobuf | 2374 | drivers/cdrom/sbpcd.c | vol0=infobuf[2]; |
infobuf | 2375 | drivers/cdrom/sbpcd.c | chan1=infobuf[3]&0x0F; |
infobuf | 2376 | drivers/cdrom/sbpcd.c | vol1=infobuf[4]; |
infobuf | 2392 | drivers/cdrom/sbpcd.c | chan0=infobuf[1]; |
infobuf | 2393 | drivers/cdrom/sbpcd.c | vol0=infobuf[2]; |
infobuf | 2394 | drivers/cdrom/sbpcd.c | chan1=infobuf[3]; |
infobuf | 2395 | drivers/cdrom/sbpcd.c | vol1=infobuf[4]; |
infobuf | 2401 | drivers/cdrom/sbpcd.c | vol0=vol1=infobuf[1]; |
infobuf | 2402 | drivers/cdrom/sbpcd.c | switches=infobuf[0]; |
infobuf | 2410 | drivers/cdrom/sbpcd.c | vol0=vol1=infobuf[1]; |
infobuf | 2415 | drivers/cdrom/sbpcd.c | switches=infobuf[0]; |
infobuf | 2426 | drivers/cdrom/sbpcd.c | vol0=infobuf[0]; |
infobuf | 2438 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
infobuf | 2497 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET; |
infobuf | 2498 | drivers/cdrom/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
infobuf | 2500 | drivers/cdrom/sbpcd.c | else if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3])); |
infobuf | 2553 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
infobuf | 2556 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[1]; |
infobuf | 2557 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[2]; |
infobuf | 2558 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
infobuf | 2559 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
infobuf | 2563 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
infobuf | 2581 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
infobuf | 2594 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
infobuf | 2600 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
infobuf | 2603 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
infobuf | 2604 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
infobuf | 2608 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
infobuf | 2609 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
infobuf | 2610 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
infobuf | 2669 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
infobuf | 2674 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
infobuf | 2677 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
infobuf | 2678 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
infobuf | 2689 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
infobuf | 2690 | drivers/cdrom/sbpcd.c | make16(infobuf[i+1],infobuf[i+2])); |
infobuf | 2692 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 2821 | drivers/cdrom/sbpcd.c | checksum |= infobuf[i]; |
infobuf | 2823 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 2834 | drivers/cdrom/sbpcd.c | if ((infobuf[i]&0x80)!=0) |
infobuf | 2836 | drivers/cdrom/sbpcd.c | convert_UPC(&infobuf[i]); |
infobuf | 2864 | drivers/cdrom/sbpcd.c | if ((infobuf[0]&0x80)!=0) |
infobuf | 2867 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
infobuf | 2868 | drivers/cdrom/sbpcd.c | make16(infobuf[2],infobuf[3]))); |
infobuf | 2880 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
infobuf | 2881 | drivers/cdrom/sbpcd.c | make16(infobuf[6],infobuf[7]))); |
infobuf | 2894 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[2]; |
infobuf | 2895 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[3]; |
infobuf | 2896 | drivers/cdrom/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
infobuf | 2900 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); |
infobuf | 2904 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 3024 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 3028 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
infobuf | 3051 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
infobuf | 3059 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
infobuf | 3063 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 3067 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
infobuf | 3071 | drivers/cdrom/sbpcd.c | for (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break; |
infobuf | 3078 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
infobuf | 3079 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
infobuf | 3085 | drivers/cdrom/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break; |
infobuf | 3100 | drivers/cdrom/sbpcd.c | for (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break; |
infobuf | 3104 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
infobuf | 3111 | drivers/cdrom/sbpcd.c | for (i=0;i<6;i++) if (infobuf[i]!=familyV[i]) break; |
infobuf | 3115 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
infobuf | 3133 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
infobuf | 3147 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) j+=infobuf[i]; |
infobuf | 3151 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", infobuf[i]); |
infobuf | 3155 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %c ", infobuf[i]); |
infobuf | 3161 | drivers/cdrom/sbpcd.c | for (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break; |
infobuf | 3169 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
infobuf | 3170 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
infobuf | 3215 | drivers/cdrom/sbpcd.c | for (i=0;i<12;i++) infobuf[i]=0; |
infobuf | 3218 | drivers/cdrom/sbpcd.c | for (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break; |
infobuf | 3236 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
infobuf | 3254 | drivers/cdrom/sbpcd.c | j=infobuf[4]; /* one-byte version??? - here: 0x15 */ |
infobuf | 3257 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
infobuf | 3258 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
infobuf | 3259 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
infobuf | 3260 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
infobuf | 4754 | drivers/cdrom/sbpcd.c | infobuf[l++]=inb(CDi_info); |
infobuf | 4758 | drivers/cdrom/sbpcd.c | if (infobuf[0]==0x00) success=1; |
infobuf | 4760 | drivers/cdrom/sbpcd.c | for (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]); |
infobuf | 4764 | drivers/cdrom/sbpcd.c | if (infobuf[0]==0x02) |
infobuf | 4779 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
infobuf | 4780 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
infobuf | 4781 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |