taglinefilesource code
infobuf539drivers/block/sbpcd.cstatic u_char infobuf[20];
infobuf1015drivers/block/sbpcd.cinfobuf[i]=inb(CDi_info);
infobuf1033drivers/block/sbpcd.cinfobuf[i]=inb(CDi_info);
infobuf1039drivers/block/sbpcd.cinfobuf[i++]=inb(CDi_info);
infobuf1045drivers/block/sbpcd.csprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1115drivers/block/sbpcd.cif (i>=0) i=infobuf[0];
infobuf1263drivers/block/sbpcd.cD_S[d].error_byte=infobuf[i];
infobuf1265drivers/block/sbpcd.ci=sta2err(infobuf[i]);
infobuf1316drivers/block/sbpcd.cinfobuf[l++]=inb(CDi_data);
infobuf1320drivers/block/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1346drivers/block/sbpcd.cinfobuf[l++]=inb(CDi_info);
infobuf1350drivers/block/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3]," %02X",infobuf[j]);
infobuf1353drivers/block/sbpcd.cif (infobuf[0]!=0x02) return (l); /* info length */
infobuf1365drivers/block/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf1366drivers/block/sbpcd.cD_S[d].b3=infobuf[3];
infobuf1367drivers/block/sbpcd.cD_S[d].b4=infobuf[4];
infobuf1613drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf1617drivers/block/sbpcd.cD_S[d].frmsiz=make16(infobuf[2],infobuf[3]);
infobuf1618drivers/block/sbpcd.cD_S[d].f_XA=infobuf[4];
infobuf1621drivers/block/sbpcd.cD_S[d].mode_xb_6=infobuf[6];
infobuf1623drivers/block/sbpcd.cD_S[d].mode_xb_8=infobuf[8];
infobuf1628drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2200drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2205drivers/block/sbpcd.cif (infobuf[0]!=0) break;
infobuf2213drivers/block/sbpcd.cif (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1];
infobuf2214drivers/block/sbpcd.celse D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]);
infobuf2215drivers/block/sbpcd.cD_S[d].SubQ_trk=byt2bcd(infobuf[2]);
infobuf2216drivers/block/sbpcd.cD_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]);
infobuf2220drivers/block/sbpcd.cD_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2225drivers/block/sbpcd.cD_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */
infobuf2226drivers/block/sbpcd.cD_S[d].SubQ_whatisthis=infobuf[i+3];
infobuf2260drivers/block/sbpcd.cif (fam1_drive) D_S[d].sense_byte=infobuf[i++];
infobuf2265drivers/block/sbpcd.cif (infobuf[4]==0x01) D_S[d].xa_byte=0x20; /* wrong!!!! */
infobuf2268drivers/block/sbpcd.cD_S[d].frame_size=make16(infobuf[i],infobuf[i+1]);
infobuf2270drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2372drivers/block/sbpcd.cchan0=infobuf[1]&0x0F;
infobuf2373drivers/block/sbpcd.cvol0=infobuf[2];
infobuf2374drivers/block/sbpcd.cchan1=infobuf[3]&0x0F;
infobuf2375drivers/block/sbpcd.cvol1=infobuf[4];
infobuf2391drivers/block/sbpcd.cchan0=infobuf[1];
infobuf2392drivers/block/sbpcd.cvol0=infobuf[2];
infobuf2393drivers/block/sbpcd.cchan1=infobuf[3];
infobuf2394drivers/block/sbpcd.cvol1=infobuf[4];
infobuf2400drivers/block/sbpcd.cvol0=vol1=infobuf[1];
infobuf2401drivers/block/sbpcd.cswitches=infobuf[0];
infobuf2409drivers/block/sbpcd.cvol0=vol1=infobuf[1];
infobuf2414drivers/block/sbpcd.cswitches=infobuf[0];
infobuf2425drivers/block/sbpcd.cvol0=infobuf[0];
infobuf2437drivers/block/sbpcd.cD_S[d].volume_control=infobuf[7];
infobuf2501drivers/block/sbpcd.cif (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_BLOCK_OFFSET;
infobuf2502drivers/block/sbpcd.celse if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2]));
infobuf2503drivers/block/sbpcd.celse if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3]));
infobuf2506drivers/block/sbpcd.cD_S[d].CDsize_frm=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
infobuf2507drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[2];
infobuf2508drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[3];
infobuf2561drivers/block/sbpcd.cD_S[d].xa_byte=infobuf[0];
infobuf2564drivers/block/sbpcd.cD_S[d].first_session=infobuf[1];
infobuf2565drivers/block/sbpcd.cD_S[d].last_session=infobuf[2];
infobuf2566drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[3];
infobuf2567drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[4];
infobuf2571drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])));
infobuf2589drivers/block/sbpcd.cD_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]));
infobuf2602drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4]));
infobuf2607drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11]));
infobuf2609drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[2];
infobuf2610drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[3];
infobuf2614drivers/block/sbpcd.cD_S[d].n_first_track=infobuf[1];
infobuf2615drivers/block/sbpcd.cD_S[d].n_last_track=infobuf[2];
infobuf2616drivers/block/sbpcd.cD_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5]));
infobuf2674drivers/block/sbpcd.cD_S[d].TocEnt_nixbyte=infobuf[0];
infobuf2682drivers/block/sbpcd.cD_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]);
infobuf2685drivers/block/sbpcd.cD_S[d].TocEnt_number=infobuf[i++];
infobuf2686drivers/block/sbpcd.cD_S[d].TocEnt_format=infobuf[i];
infobuf2693drivers/block/sbpcd.cD_S[d].TocEnt_address=make32(make16(0,infobuf[i]),
infobuf2694drivers/block/sbpcd.cmake16(infobuf[i+1],infobuf[i+2]));
infobuf2820drivers/block/sbpcd.cchecksum |= infobuf[i];
infobuf2822drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf2833drivers/block/sbpcd.cif ((infobuf[i]&0x80)!=0)
infobuf2835drivers/block/sbpcd.cconvert_UPC(&infobuf[i]);
infobuf2863drivers/block/sbpcd.cif ((infobuf[0]&0x80)!=0)
infobuf2866drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]),
infobuf2867drivers/block/sbpcd.cmake16(infobuf[2],infobuf[3])));
infobuf2879drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),
infobuf2880drivers/block/sbpcd.cmake16(infobuf[6],infobuf[7])));
infobuf2892drivers/block/sbpcd.cD_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11])));
infobuf2895drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3009drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3013drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3037drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3045drivers/block/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf3049drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3054drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3059drivers/block/sbpcd.cfor (i=0;i<4;i++) if (infobuf[i]!=family1[i]) break;
infobuf3066drivers/block/sbpcd.cD_S[d].drive_model[4]=infobuf[i++];
infobuf3067drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf3073drivers/block/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=family0[i]) break;
infobuf3088drivers/block/sbpcd.cfor (i=0;i<8;i++) if (infobuf[i]!=familyL[i]) break;
infobuf3092drivers/block/sbpcd.cD_S[d].drive_model[j]=infobuf[j];
infobuf3109drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3123drivers/block/sbpcd.cfor (i=0;i<12;i++) j+=infobuf[i];
infobuf3127drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %02X", infobuf[i]);
infobuf3131drivers/block/sbpcd.csprintf(&msgbuf[i*3], " %c ", infobuf[i]);
infobuf3137drivers/block/sbpcd.cfor (i=0;i<5;i++) if (infobuf[i]!=family2[i]) break;
infobuf3145drivers/block/sbpcd.cD_S[d].drive_model[5]=infobuf[i++];
infobuf3146drivers/block/sbpcd.cD_S[d].drive_model[6]=infobuf[i++];
infobuf3191drivers/block/sbpcd.cfor (i=0;i<12;i++) infobuf[i]=0;
infobuf3194drivers/block/sbpcd.cfor (i=1;i<6;i++) if (infobuf[i]!=familyT[i-1]) break;
infobuf3212drivers/block/sbpcd.cfor (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j];
infobuf3230drivers/block/sbpcd.cj=infobuf[4]; /* one-byte version??? - here: 0x15 */
infobuf3233drivers/block/sbpcd.cD_S[d].firmware_version[0]=infobuf[7];
infobuf3234drivers/block/sbpcd.cD_S[d].firmware_version[1]=infobuf[8];
infobuf3235drivers/block/sbpcd.cD_S[d].firmware_version[2]=infobuf[10];
infobuf3236drivers/block/sbpcd.cD_S[d].firmware_version[3]=infobuf[11];
infobuf4693drivers/block/sbpcd.cinfobuf[l++]=inb(CDi_info);
infobuf4697drivers/block/sbpcd.cif (infobuf[0]==0x00) success=1;
infobuf4699drivers/block/sbpcd.cfor (j=0;j<l;j++) sprintf(&msgbuf[j*3], " %02X", infobuf[j]);
infobuf4703drivers/block/sbpcd.cif (infobuf[0]==0x02)
infobuf4718drivers/block/sbpcd.cD_S[d].error_state=infobuf[2];
infobuf4719drivers/block/sbpcd.cD_S[d].b3=infobuf[3];
infobuf4720drivers/block/sbpcd.cD_S[d].b4=infobuf[4];