taglinefilesource code
infobuf546drivers/cdrom/sbpcd.cstatic u_char infobuf[20];
infobuf979drivers/cdrom/sbpcd.cinfobuf[i]=inb(CDi_info);
infobuf984drivers/cdrom/sbpcd.cinfobuf[i++]=inb(CDi_info);
infobuf990drivers/cdrom/sbpcd.csprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1060drivers/cdrom/sbpcd.cif (i>=0) i=infobuf[0];
infobuf1183drivers/cdrom/sbpcd.cD_S[d].error_byte=infobuf[i];
infobuf1185drivers/cdrom/sbpcd.ci=sta2err(infobuf[i]);
infobuf1236drivers/cdrom/sbpcd.cinfobuf[l++]=inb(CDi_data);
infobuf1240drivers/cdrom/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1266drivers/cdrom/sbpcd.cinfobuf[l++]=inb(CDi_info);
infobuf1270drivers/cdrom/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1273drivers/cdrom/sbpcd.cif (infobuf[0]!=0x02) return (l); /* info length */
infobuf1285drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf1286drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
infobuf1287drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];
infobuf1533drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf1537drivers/cdrom/sbpcd.cD_S[d].frmsiz=make16(infobuf[2],infobuf[3]);
infobuf1538drivers/cdrom/sbpcd.cD_S[d].f_XA=infobuf[4];
infobuf1541drivers/cdrom/sbpcd.cD_S[d].mode_xb_6=infobuf[6];
infobuf1543drivers/cdrom/sbpcd.cD_S[d].mode_xb_8=infobuf[8];
infobuf1548drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2120drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2125drivers/cdrom/sbpcd.cif (infobuf[0]!=0) break;
infobuf2133drivers/cdrom/sbpcd.cif (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1];
infobuf2134drivers/cdrom/sbpcd.celse D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
infobuf2135drivers/cdrom/sbpcd.cD_S[d].SubQ_trk=byt2bcd(infobuf[2]);
infobuf2136drivers/cdrom/sbpcd.cD_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
infobuf2140drivers/cdrom/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2145drivers/cdrom/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2146drivers/cdrom/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
infobuf2181drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
infobuf2184drivers/cdrom/sbpcd.cif (infobuf[4]==0x01) D_S[d].xa_byte=0x20;
infobuf2188drivers/cdrom/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
infobuf2190drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2292drivers/cdrom/sbpcd.cchan0=infobuf[1]&0x0F;
infobuf2293drivers/cdrom/sbpcd.cvol0=infobuf[2];
infobuf2294drivers/cdrom/sbpcd.cchan1=infobuf[3]&0x0F;
infobuf2295drivers/cdrom/sbpcd.cvol1=infobuf[4];
infobuf2311drivers/cdrom/sbpcd.cchan0=infobuf[1];
infobuf2312drivers/cdrom/sbpcd.cvol0=infobuf[2];
infobuf2313drivers/cdrom/sbpcd.cchan1=infobuf[3];
infobuf2314drivers/cdrom/sbpcd.cvol1=infobuf[4];
infobuf2320drivers/cdrom/sbpcd.cvol0=vol1=infobuf[1];
infobuf2321drivers/cdrom/sbpcd.cswitches=infobuf[0];
infobuf2329drivers/cdrom/sbpcd.cvol0=vol1=infobuf[1];
infobuf2334drivers/cdrom/sbpcd.cswitches=infobuf[0];
infobuf2345drivers/cdrom/sbpcd.cvol0=infobuf[0];
infobuf2357drivers/cdrom/sbpcd.cD_S[d].volume_control=infobuf[7];
infobuf2416drivers/cdrom/sbpcd.cif (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET;
infobuf2417drivers/cdrom/sbpcd.celse if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
infobuf2419drivers/cdrom/sbpcd.celse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
infobuf2471drivers/cdrom/sbpcd.cD_S[d].xa_byte=infobuf[0];
infobuf2474drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[1];
infobuf2475drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[2];
infobuf2476drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[3];
infobuf2477drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[4];
infobuf2481drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
infobuf2499drivers/cdrom/sbpcd.cD_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
infobuf2512drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
infobuf2518drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
infobuf2521drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[2];
infobuf2522drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[3];
infobuf2526drivers/cdrom/sbpcd.cD_S[d].n_first_track=infobuf[1];
infobuf2527drivers/cdrom/sbpcd.cD_S[d].n_last_track=infobuf[2];
infobuf2528drivers/cdrom/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
infobuf2586drivers/cdrom/sbpcd.cD_S[d].TocEnt_nixbyte=infobuf[0];
infobuf2594drivers/cdrom/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
infobuf2597drivers/cdrom/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
infobuf2598drivers/cdrom/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
infobuf2605drivers/cdrom/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
infobuf2606drivers/cdrom/sbpcd.cmake16(infobuf[i+1],infobuf[i+2]));
infobuf2732drivers/cdrom/sbpcd.cchecksum |= infobuf[i];
infobuf2734drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2745drivers/cdrom/sbpcd.cif ((infobuf[i]&0x80)!=0)
infobuf2747drivers/cdrom/sbpcd.cconvert_UPC(&infobuf[i]);
infobuf2775drivers/cdrom/sbpcd.cif ((infobuf[0]&0x80)!=0)
infobuf2778drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
infobuf2779drivers/cdrom/sbpcd.cmake16(infobuf[2],infobuf[3])));
infobuf2791drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
infobuf2792drivers/cdrom/sbpcd.cmake16(infobuf[6],infobuf[7])));
infobuf2804drivers/cdrom/sbpcd.cD_S[d].first_session=infobuf[2];
infobuf2805drivers/cdrom/sbpcd.cD_S[d].last_session=infobuf[3];
infobuf2806drivers/cdrom/sbpcd.cD_S[d].track_of_last_session=infobuf[6];
infobuf2810drivers/cdrom/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11])));
infobuf2814drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2933drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2937drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf2961drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf2969drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf2973drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2978drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf2983drivers/cdrom/sbpcd.cfor (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break;
infobuf2990drivers/cdrom/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
infobuf2991drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf2997drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break;
infobuf3012drivers/cdrom/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break;
infobuf3016drivers/cdrom/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
infobuf3033drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3047drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf3051drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3055drivers/cdrom/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3061drivers/cdrom/sbpcd.cfor (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break;
infobuf3069drivers/cdrom/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf3070drivers/cdrom/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
infobuf3115drivers/cdrom/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3118drivers/cdrom/sbpcd.cfor (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break;
infobuf3136drivers/cdrom/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
infobuf3154drivers/cdrom/sbpcd.cj=infobuf[4]; /* one-byte version??? - here: 0x15 */
infobuf3157drivers/cdrom/sbpcd.cD_S[d].firmware_version[0]=infobuf[7];
infobuf3158drivers/cdrom/sbpcd.cD_S[d].firmware_version[1]=infobuf[8];
infobuf3159drivers/cdrom/sbpcd.cD_S[d].firmware_version[2]=infobuf[10];
infobuf3160drivers/cdrom/sbpcd.cD_S[d].firmware_version[3]=infobuf[11];
infobuf4630drivers/cdrom/sbpcd.cinfobuf[l++]=inb(CDi_info);
infobuf4634drivers/cdrom/sbpcd.cif (infobuf[0]==0x00) success=1;
infobuf4636drivers/cdrom/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]);
infobuf4640drivers/cdrom/sbpcd.cif (infobuf[0]==0x02)
infobuf4655drivers/cdrom/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf4656drivers/cdrom/sbpcd.cD_S[d].b3=infobuf[3];
infobuf4657drivers/cdrom/sbpcd.cD_S[d].b4=infobuf[4];