taglinefilesource code
infobuf574drivers/cdrom/sbpcd.cstatic u_char infobuf[20];
infobuf1007drivers/cdrom/sbpcd.cinfobuf[i]=inb(CDi_info);
infobuf1012drivers/cdrom/sbpcd.cinfobuf[i++]=inb(CDi_info);
infobuf1018drivers/cdrom/sbpcd.csprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1087drivers/cdrom/sbpcd.cif (i>=0) i=infobuf[0];
infobuf1209drivers/cdrom/sbpcd.cD_S[d].error_byte=infobuf[i];
infobuf1211drivers/cdrom/sbpcd.ci=sta2err(infobuf[i]);
infobuf1271drivers/cdrom/sbpcd.cinfobuf[l++]=i&0x0ff;
infobuf1272drivers/cdrom/sbpcd.cinfobuf[l++]=i>>8;
infobuf1274drivers/cdrom/sbpcd.cif ((l==2)&&(infobuf[0]==0x0ff))
infobuf1276drivers/cdrom/sbpcd.cinfobuf[0]=infobuf[1];
infobuf1282drivers/cdrom/sbpcd.celse infobuf[l++]=inb(CDi_data);
infobuf1286drivers/cdrom/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1315drivers/cdrom/sbpcd.cinfobuf[m++]=inb(CDi_info);
infobuf1319drivers/cdrom/sbpcd.cfor (j=0;j<m;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1324drivers/cdrom/sbpcd.cinfobuf[0]=infobuf[l];
infobuf1325drivers/cdrom/sbpcd.cif (infobuf[0]!=0x02) return (l); /* data length */
infobuf1327drivers/cdrom/sbpcd.celse if (infobuf[0]!=0x02) return (m); /* info length */
infobuf1339drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf1340drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
infobuf1341drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];
infobuf1598drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf1602drivers/cdrom/sbpcd.cD_S[d].frmsiz=make16(infobuf[2],infobuf[3]);
infobuf1603drivers/cdrom/sbpcd.cD_S[d].f_XA=infobuf[4];
infobuf1606drivers/cdrom/sbpcd.cD_S[d].mode_xb_6=infobuf[6];
infobuf1608drivers/cdrom/sbpcd.cD_S[d].mode_xb_8=infobuf[8];
infobuf1613drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2198drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2203drivers/cdrom/sbpcd.cif (infobuf[0]!=0) break;
infobuf2211drivers/cdrom/sbpcd.cif (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1];
infobuf2212drivers/cdrom/sbpcd.celse D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
infobuf2213drivers/cdrom/sbpcd.cD_S[d].SubQ_trk=byt2bcd(infobuf[2]);
infobuf2214drivers/cdrom/sbpcd.cD_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
infobuf2218drivers/cdrom/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2223drivers/cdrom/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2224drivers/cdrom/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
infobuf2260drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
infobuf2263drivers/cdrom/sbpcd.cif (infobuf[4]==0x01) D_S[d].xa_byte=0x20;
infobuf2267drivers/cdrom/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
infobuf2269drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2373drivers/cdrom/sbpcd.cchan0=infobuf[1]&0x0F;
infobuf2374drivers/cdrom/sbpcd.cvol0=infobuf[2];
infobuf2375drivers/cdrom/sbpcd.cchan1=infobuf[3]&0x0F;
infobuf2376drivers/cdrom/sbpcd.cvol1=infobuf[4];
infobuf2392drivers/cdrom/sbpcd.cchan0=infobuf[1];
infobuf2393drivers/cdrom/sbpcd.cvol0=infobuf[2];
infobuf2394drivers/cdrom/sbpcd.cchan1=infobuf[3];
infobuf2395drivers/cdrom/sbpcd.cvol1=infobuf[4];
infobuf2401drivers/cdrom/sbpcd.cvol0=vol1=infobuf[1];
infobuf2402drivers/cdrom/sbpcd.cswitches=infobuf[0];
infobuf2410drivers/cdrom/sbpcd.cvol0=vol1=infobuf[1];
infobuf2415drivers/cdrom/sbpcd.cswitches=infobuf[0];
infobuf2426drivers/cdrom/sbpcd.cvol0=infobuf[0];
infobuf2438drivers/cdrom/sbpcd.cD_S[d].volume_control=infobuf[7];
infobuf2497drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET;
infobuf2498drivers/cdrom/sbpcd.celse if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
infobuf2500drivers/cdrom/sbpcd.celse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
infobuf2553drivers/cdrom/sbpcd.cD_S[d].xa_byte=infobuf[0];
infobuf2556drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[1];
infobuf2557drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[2];
infobuf2558drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[3];
infobuf2559drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[4];
infobuf2563drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
infobuf2581drivers/cdrom/sbpcd.cD_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
infobuf2594drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
infobuf2600drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
infobuf2603drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[2];
infobuf2604drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[3];
infobuf2608drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[1];
infobuf2609drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[2];
infobuf2610drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
infobuf2669drivers/cdrom/sbpcd.cD_S[d].TocEnt_nixbyte=infobuf[0];
infobuf2674drivers/cdrom/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
infobuf2677drivers/cdrom/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
infobuf2678drivers/cdrom/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
infobuf2689drivers/cdrom/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
infobuf2690drivers/cdrom/sbpcd.cmake16(infobuf[i+1],infobuf[i+2]));
infobuf2692drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2821drivers/cdrom/sbpcd.cchecksum |= infobuf[i];
infobuf2823drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2834drivers/cdrom/sbpcd.cif ((infobuf[i]&0x80)!=0)
infobuf2836drivers/cdrom/sbpcd.cconvert_UPC(&infobuf[i]);
infobuf2864drivers/cdrom/sbpcd.cif ((infobuf[0]&0x80)!=0)
infobuf2867drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
infobuf2868drivers/cdrom/sbpcd.cmake16(infobuf[2],infobuf[3])));
infobuf2880drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
infobuf2881drivers/cdrom/sbpcd.cmake16(infobuf[6],infobuf[7])));
infobuf2894drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[2];
infobuf2895drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[3];
infobuf2896drivers/cdrom/sbpcd.cD_S[d].track_of_last_session=infobuf[6];
infobuf2900drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11])));
infobuf2904drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3024drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3028drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3051drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3059drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf3063drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3067drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3071drivers/cdrom/sbpcd.cfor (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break;
infobuf3078drivers/cdrom/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
infobuf3079drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf3085drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break;
infobuf3100drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break;
infobuf3104drivers/cdrom/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
infobuf3111drivers/cdrom/sbpcd.cfor (i=0;i<6;i++) if (infobuf[i]!=familyV[i]) break;
infobuf3115drivers/cdrom/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
infobuf3133drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3147drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf3151drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3155drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3161drivers/cdrom/sbpcd.cfor (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break;
infobuf3169drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf3170drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
infobuf3215drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3218drivers/cdrom/sbpcd.cfor (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break;
infobuf3236drivers/cdrom/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
infobuf3254drivers/cdrom/sbpcd.cj=infobuf[4]; /* one-byte version??? - here: 0x15 */
infobuf3257drivers/cdrom/sbpcd.cD_S[d].firmware_version[0]=infobuf[7];
infobuf3258drivers/cdrom/sbpcd.cD_S[d].firmware_version[1]=infobuf[8];
infobuf3259drivers/cdrom/sbpcd.cD_S[d].firmware_version[2]=infobuf[10];
infobuf3260drivers/cdrom/sbpcd.cD_S[d].firmware_version[3]=infobuf[11];
infobuf4754drivers/cdrom/sbpcd.cinfobuf[l++]=inb(CDi_info);
infobuf4758drivers/cdrom/sbpcd.cif (infobuf[0]==0x00) success=1;
infobuf4760drivers/cdrom/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]);
infobuf4764drivers/cdrom/sbpcd.cif (infobuf[0]==0x02)
infobuf4779drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf4780drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
infobuf4781drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];