tag | line | file | source code |
D_S | 684 | drivers/block/sbpcd.c | } D_S[NR_SBPCD]; |
D_S | 898 | drivers/block/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 1069 | drivers/block/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1070 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].status_bits=st|p_success; |
D_S | 1073 | drivers/block/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in; |
D_S | 1074 | drivers/block/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
D_S | 1075 | drivers/block/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
D_S | 1076 | drivers/block/sbpcd.c | if (st&p_success_old) D_S[d].status_bits |= p_success; |
D_S | 1077 | drivers/block/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
D_S | 1078 | drivers/block/sbpcd.c | if (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok; |
D_S | 1082 | drivers/block/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1083 | drivers/block/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in; |
D_S | 1084 | drivers/block/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
D_S | 1085 | drivers/block/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
D_S | 1086 | drivers/block/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
D_S | 1087 | drivers/block/sbpcd.c | if (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed; |
D_S | 1088 | drivers/block/sbpcd.c | if (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked; |
D_S | 1092 | drivers/block/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1093 | drivers/block/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
D_S | 1094 | drivers/block/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
D_S | 1095 | drivers/block/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
D_S | 1096 | drivers/block/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
D_S | 1097 | drivers/block/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
D_S | 1098 | drivers/block/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
D_S | 1099 | drivers/block/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
D_S | 1100 | drivers/block/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
D_S | 1105 | drivers/block/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1106 | drivers/block/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
D_S | 1107 | drivers/block/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
D_S | 1108 | drivers/block/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
D_S | 1109 | drivers/block/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
D_S | 1110 | drivers/block/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
D_S | 1111 | drivers/block/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
D_S | 1112 | drivers/block/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
D_S | 1113 | drivers/block/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
D_S | 1126 | drivers/block/sbpcd.c | D_S[d].n_bytes=1; |
D_S | 1137 | drivers/block/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok; |
D_S | 1138 | drivers/block/sbpcd.c | else if (D_S[d].error_state==6) |
D_S | 1140 | drivers/block/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in; |
D_S | 1141 | drivers/block/sbpcd.c | else if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00)) |
D_S | 1144 | drivers/block/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
D_S | 1145 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 1147 | drivers/block/sbpcd.c | else if (D_S[d].b4==0x01) |
D_S | 1150 | drivers/block/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1151 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 1156 | drivers/block/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
D_S | 1157 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 1159 | drivers/block/sbpcd.c | msg(DBG_TE2,"get_state_T done (%02X)...\n", D_S[d].status_bits); |
D_S | 1160 | drivers/block/sbpcd.c | return (D_S[d].status_bits); |
D_S | 1208 | drivers/block/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1217 | drivers/block/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
D_S | 1219 | drivers/block/sbpcd.c | return (D_S[d].status_bits); |
D_S | 1272 | drivers/block/sbpcd.c | D_S[d].error_byte=0; |
D_S | 1277 | drivers/block/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
D_S | 1278 | drivers/block/sbpcd.c | msg(DBG_ERR,"cc_ReadError: infobuf[%d] is %d (%02X)\n",i,D_S[d].error_byte,D_S[d].error_byte); |
D_S | 1291 | drivers/block/sbpcd.c | D_S[d].error_state=0; |
D_S | 1292 | drivers/block/sbpcd.c | D_S[d].b3=0; |
D_S | 1293 | drivers/block/sbpcd.c | D_S[d].b4=0; |
D_S | 1294 | drivers/block/sbpcd.c | D_S[d].f_drv_error=0; |
D_S | 1300 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 1379 | drivers/block/sbpcd.c | D_S[d].error_state=infobuf[2]; |
D_S | 1380 | drivers/block/sbpcd.c | D_S[d].b3=infobuf[3]; |
D_S | 1381 | drivers/block/sbpcd.c | D_S[d].b4=infobuf[4]; |
D_S | 1382 | drivers/block/sbpcd.c | if (D_S[d].f_drv_error) |
D_S | 1384 | drivers/block/sbpcd.c | D_S[d].f_drv_error=0; |
D_S | 1386 | drivers/block/sbpcd.c | D_S[d].error_state=2; |
D_S | 1388 | drivers/block/sbpcd.c | return (-D_S[d].error_state-400); |
D_S | 1395 | drivers/block/sbpcd.c | D_S[d].f_drv_error=1; |
D_S | 1397 | drivers/block/sbpcd.c | D_S[d].error_state=2; |
D_S | 1429 | drivers/block/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n"); |
D_S | 1438 | drivers/block/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n"); |
D_S | 1444 | drivers/block/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n"); |
D_S | 1460 | drivers/block/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n"); |
D_S | 1462 | drivers/block/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n"); |
D_S | 1513 | drivers/block/sbpcd.c | D_S[d].n_bytes=1; |
D_S | 1525 | drivers/block/sbpcd.c | D_S[d].in_SpinUp = 1; |
D_S | 1551 | drivers/block/sbpcd.c | D_S[d].in_SpinUp = 0; |
D_S | 1607 | drivers/block/sbpcd.c | drvcmd[1]=D_S[d].speed_byte; |
D_S | 1608 | drivers/block/sbpcd.c | drvcmd[2]=D_S[d].frmsiz>>8; |
D_S | 1609 | drivers/block/sbpcd.c | drvcmd[3]=D_S[d].frmsiz&0x0FF; |
D_S | 1610 | drivers/block/sbpcd.c | drvcmd[4]=D_S[d].f_XA; /* 1: XA */ |
D_S | 1611 | drivers/block/sbpcd.c | drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ |
D_S | 1612 | drivers/block/sbpcd.c | drvcmd[6]=D_S[d].mode_xb_6; |
D_S | 1613 | drivers/block/sbpcd.c | drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; |
D_S | 1614 | drivers/block/sbpcd.c | drvcmd[8]=D_S[d].mode_xb_8; |
D_S | 1615 | drivers/block/sbpcd.c | drvcmd[9]=D_S[d].delay; |
D_S | 1630 | drivers/block/sbpcd.c | D_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */ |
D_S | 1631 | drivers/block/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
D_S | 1632 | drivers/block/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
D_S | 1633 | drivers/block/sbpcd.c | if (D_S[d].f_XA==0) D_S[d].type_byte=0; |
D_S | 1634 | drivers/block/sbpcd.c | else D_S[d].type_byte=1; |
D_S | 1635 | drivers/block/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
D_S | 1636 | drivers/block/sbpcd.c | D_S[d].mode_yb_7=1; |
D_S | 1637 | drivers/block/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
D_S | 1638 | drivers/block/sbpcd.c | D_S[d].delay=0; /* 0, 1, 2, 3 */ |
D_S | 1693 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
D_S | 1695 | drivers/block/sbpcd.c | channel0=D_S[d].vol_chan0; |
D_S | 1696 | drivers/block/sbpcd.c | volume0=D_S[d].vol_ctrl0; |
D_S | 1697 | drivers/block/sbpcd.c | channel1=control1=D_S[d].vol_chan1; |
D_S | 1698 | drivers/block/sbpcd.c | volume1=value1=D_S[d].vol_ctrl1; |
D_S | 1701 | drivers/block/sbpcd.c | if (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211)) |
D_S | 1770 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_300) |
D_S | 1782 | drivers/block/sbpcd.c | if (D_S[d].drv_type<drv_211) |
D_S | 1815 | drivers/block/sbpcd.c | else if (D_S[d].drv_type<drv_201) volume0=volume1=value0; |
D_S | 1817 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 1822 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
D_S | 1836 | drivers/block/sbpcd.c | D_S[d].volume_control=0; |
D_S | 1837 | drivers/block/sbpcd.c | if (!volume0) D_S[d].volume_control|=0x10; |
D_S | 1838 | drivers/block/sbpcd.c | if (!volume1) D_S[d].volume_control|=0x20; |
D_S | 1848 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
D_S | 1888 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 1905 | drivers/block/sbpcd.c | if (D_S[d].error_byte!=aud_12) return -501; |
D_S | 1913 | drivers/block/sbpcd.c | if (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
D_S | 1915 | drivers/block/sbpcd.c | if (!(D_S[d].drv_options&speed_auto)) |
D_S | 1918 | drivers/block/sbpcd.c | if (!(D_S[d].drv_options&speed_300)) speed=0; |
D_S | 1939 | drivers/block/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 1953 | drivers/block/sbpcd.c | if (D_S[d].audio_state==audio_playing) return (-EINVAL); |
D_S | 2038 | drivers/block/sbpcd.c | if (pau_res==3) return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end)); |
D_S | 2173 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~subq_bit; |
D_S | 2222 | drivers/block/sbpcd.c | D_S[d].SubQ_ctl_adr=D_S[d].SubQ_trk=D_S[d].SubQ_pnt_idx=D_S[d].SubQ_whatisthis=0; |
D_S | 2223 | drivers/block/sbpcd.c | D_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0; |
D_S | 2227 | drivers/block/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
D_S | 2228 | drivers/block/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
D_S | 2229 | drivers/block/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
D_S | 2230 | drivers/block/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
D_S | 2234 | drivers/block/sbpcd.c | D_S[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
D_S | 2239 | drivers/block/sbpcd.c | D_S[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
D_S | 2240 | drivers/block/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
D_S | 2241 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= subq_bit; |
D_S | 2250 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
D_S | 2274 | drivers/block/sbpcd.c | D_S[d].sense_byte=0; |
D_S | 2275 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
D_S | 2278 | drivers/block/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
D_S | 2279 | drivers/block/sbpcd.c | else D_S[d].xa_byte=0; |
D_S | 2282 | drivers/block/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
D_S | 2288 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
D_S | 2298 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
D_S | 2300 | drivers/block/sbpcd.c | D_S[d].frame_size=framesize; |
D_S | 2301 | drivers/block/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82; |
D_S | 2302 | drivers/block/sbpcd.c | else D_S[d].sense_byte=0x00; |
D_S | 2305 | drivers/block/sbpcd.c | D_S[d].sense_byte, D_S[d].frame_size); |
D_S | 2311 | drivers/block/sbpcd.c | drvcmd[2]=D_S[d].sense_byte; |
D_S | 2312 | drivers/block/sbpcd.c | drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; |
D_S | 2313 | drivers/block/sbpcd.c | drvcmd[4]=D_S[d].frame_size&0xFF; |
D_S | 2320 | drivers/block/sbpcd.c | drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; |
D_S | 2321 | drivers/block/sbpcd.c | drvcmd[3]=D_S[d].frame_size&0xFF; |
D_S | 2335 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
D_S | 2348 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
D_S | 2424 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 2426 | drivers/block/sbpcd.c | if (D_S[d].drv_type<drv_300) |
D_S | 2431 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
D_S | 2451 | drivers/block/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
D_S | 2454 | drivers/block/sbpcd.c | if (D_S[d].volume_control&0x10) vol0=0; |
D_S | 2456 | drivers/block/sbpcd.c | if (D_S[d].volume_control&0x20) vol1=0; |
D_S | 2459 | drivers/block/sbpcd.c | D_S[d].vol_chan0=chan0; |
D_S | 2460 | drivers/block/sbpcd.c | D_S[d].vol_ctrl0=vol0; |
D_S | 2461 | drivers/block/sbpcd.c | D_S[d].vol_chan1=chan1; |
D_S | 2462 | drivers/block/sbpcd.c | D_S[d].vol_ctrl1=vol1; |
D_S | 2464 | drivers/block/sbpcd.c | D_S[d].vol_chan2=2; |
D_S | 2465 | drivers/block/sbpcd.c | D_S[d].vol_ctrl2=0xFF; |
D_S | 2466 | drivers/block/sbpcd.c | D_S[d].vol_chan3=3; |
D_S | 2467 | drivers/block/sbpcd.c | D_S[d].vol_ctrl3=0xFF; |
D_S | 2469 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
D_S | 2479 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
D_S | 2507 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_MSF_OFFSET; |
D_S | 2508 | drivers/block/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
D_S | 2509 | drivers/block/sbpcd.c | else if (fam2_drive) D_S[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3])); |
D_S | 2510 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= cd_size_bit; |
D_S | 2511 | drivers/block/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm); |
D_S | 2519 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
D_S | 2539 | drivers/block/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2549 | drivers/block/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2560 | drivers/block/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
D_S | 2563 | drivers/block/sbpcd.c | D_S[d].first_session=infobuf[1]; |
D_S | 2564 | drivers/block/sbpcd.c | D_S[d].last_session=infobuf[2]; |
D_S | 2565 | drivers/block/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
D_S | 2566 | drivers/block/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
D_S | 2567 | drivers/block/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2569 | drivers/block/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2570 | drivers/block/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
D_S | 2573 | drivers/block/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2575 | drivers/block/sbpcd.c | if (D_S[d].last_session<=20) |
D_S | 2576 | drivers/block/sbpcd.c | zwanzig=D_S[d].last_session+1; |
D_S | 2578 | drivers/block/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
D_S | 2588 | drivers/block/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
D_S | 2590 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= multisession_bit; |
D_S | 2601 | drivers/block/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
D_S | 2602 | drivers/block/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2606 | drivers/block/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
D_S | 2607 | drivers/block/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2608 | drivers/block/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
D_S | 2609 | drivers/block/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
D_S | 2610 | drivers/block/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
D_S | 2614 | drivers/block/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
D_S | 2615 | drivers/block/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
D_S | 2616 | drivers/block/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
D_S | 2617 | drivers/block/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2618 | drivers/block/sbpcd.c | if (famL_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1; |
D_S | 2620 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
D_S | 2622 | drivers/block/sbpcd.c | D_S[d].xa_byte, |
D_S | 2623 | drivers/block/sbpcd.c | D_S[d].n_first_track, |
D_S | 2624 | drivers/block/sbpcd.c | D_S[d].n_last_track, |
D_S | 2625 | drivers/block/sbpcd.c | D_S[d].size_msf); |
D_S | 2674 | drivers/block/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
D_S | 2682 | drivers/block/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
D_S | 2685 | drivers/block/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
D_S | 2686 | drivers/block/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
D_S | 2688 | drivers/block/sbpcd.c | else D_S[d].TocEnt_number=num; |
D_S | 2693 | drivers/block/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
D_S | 2696 | drivers/block/sbpcd.c | D_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr, |
D_S | 2697 | drivers/block/sbpcd.c | D_S[d].TocEnt_number, D_S[d].TocEnt_format, |
D_S | 2698 | drivers/block/sbpcd.c | D_S[d].TocEnt_address); |
D_S | 2729 | drivers/block/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
D_S | 2732 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
D_S | 2733 | drivers/block/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
D_S | 2744 | drivers/block/sbpcd.c | D_S[d].UPC_buf[6] &= 0xF0; |
D_S | 2761 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~upc_bit; |
D_S | 2830 | drivers/block/sbpcd.c | D_S[d].UPC_ctl_adr=0; |
D_S | 2836 | drivers/block/sbpcd.c | D_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
D_S | 2839 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
D_S | 2840 | drivers/block/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
D_S | 2843 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= upc_bit; |
D_S | 2852 | drivers/block/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2853 | drivers/block/sbpcd.c | D_S[d].lba_multi=0; |
D_S | 2865 | drivers/block/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2866 | drivers/block/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
D_S | 2879 | drivers/block/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
D_S | 2892 | drivers/block/sbpcd.c | D_S[d].first_session=infobuf[2]; |
D_S | 2893 | drivers/block/sbpcd.c | D_S[d].last_session=infobuf[3]; |
D_S | 2894 | drivers/block/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
D_S | 2895 | drivers/block/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2897 | drivers/block/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2898 | drivers/block/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); |
D_S | 2904 | drivers/block/sbpcd.c | msg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi); |
D_S | 2905 | drivers/block/sbpcd.c | if (D_S[d].lba_multi>200) |
D_S | 2907 | drivers/block/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2908 | drivers/block/sbpcd.c | msg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi); |
D_S | 2925 | drivers/block/sbpcd.c | if (D_S[d].audio_state!=audio_playing) return (-ENODATA); |
D_S | 2936 | drivers/block/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE_SUB; |
D_S | 3019 | drivers/block/sbpcd.c | CDo_command, type, D_S[d].drive_model, D_S[d].drv_id); |
D_S | 3036 | drivers/block/sbpcd.c | msg(DBG_TE2,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d); |
D_S | 3037 | drivers/block/sbpcd.c | D_S[d].drv_type=0; |
D_S | 3074 | drivers/block/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3075 | drivers/block/sbpcd.c | D_S[d].drive_model[1]='R'; |
D_S | 3076 | drivers/block/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3077 | drivers/block/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3078 | drivers/block/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
D_S | 3079 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
D_S | 3080 | drivers/block/sbpcd.c | D_S[d].drive_model[6]=0; |
D_S | 3081 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_fam1; |
D_S | 3083 | drivers/block/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3088 | drivers/block/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3089 | drivers/block/sbpcd.c | D_S[d].drive_model[1]='R'; |
D_S | 3090 | drivers/block/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3091 | drivers/block/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3092 | drivers/block/sbpcd.c | D_S[d].drive_model[4]='2'; |
D_S | 3093 | drivers/block/sbpcd.c | D_S[d].drive_model[5]='x'; |
D_S | 3094 | drivers/block/sbpcd.c | D_S[d].drive_model[6]=0; |
D_S | 3095 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_fam0; |
D_S | 3098 | drivers/block/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3104 | drivers/block/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
D_S | 3105 | drivers/block/sbpcd.c | D_S[d].drive_model[8]=0; |
D_S | 3106 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_famL; |
D_S | 3109 | drivers/block/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3126 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3152 | drivers/block/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3153 | drivers/block/sbpcd.c | D_S[d].drive_model[1]='D'; |
D_S | 3154 | drivers/block/sbpcd.c | D_S[d].drive_model[2]='2'; |
D_S | 3155 | drivers/block/sbpcd.c | D_S[d].drive_model[3]='0'; |
D_S | 3156 | drivers/block/sbpcd.c | D_S[d].drive_model[4]='0'; |
D_S | 3157 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
D_S | 3158 | drivers/block/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
D_S | 3159 | drivers/block/sbpcd.c | D_S[d].drive_model[7]=0; |
D_S | 3160 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_fam2; |
D_S | 3164 | drivers/block/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3168 | drivers/block/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
D_S | 3170 | drivers/block/sbpcd.c | for (l=1;l<=((D_S[d].drv_id==0)?10:1);l++) |
D_S | 3176 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3182 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3209 | drivers/block/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3210 | drivers/block/sbpcd.c | D_S[d].drive_model[1]='D'; |
D_S | 3211 | drivers/block/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3212 | drivers/block/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3213 | drivers/block/sbpcd.c | D_S[d].drive_model[4]='5'; |
D_S | 3214 | drivers/block/sbpcd.c | D_S[d].drive_model[5]=0; |
D_S | 3215 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_famT; |
D_S | 3219 | drivers/block/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3221 | drivers/block/sbpcd.c | msg(DBG_TEA,"no drive found at address %03X under ID %d.\n",CDo_command,D_S[d].drv_id); |
D_S | 3224 | drivers/block/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
D_S | 3231 | drivers/block/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
D_S | 3232 | drivers/block/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
D_S | 3235 | drivers/block/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
D_S | 3236 | drivers/block/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
D_S | 3238 | drivers/block/sbpcd.c | if (D_S[d].drv_type==drv_famL) ask_mail(); |
D_S | 3245 | drivers/block/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
D_S | 3246 | drivers/block/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
D_S | 3247 | drivers/block/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
D_S | 3248 | drivers/block/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
D_S | 3253 | drivers/block/sbpcd.c | D_S[d].firmware_version[0]='0'; |
D_S | 3254 | drivers/block/sbpcd.c | D_S[d].firmware_version[1]='.'; |
D_S | 3255 | drivers/block/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
D_S | 3256 | drivers/block/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
D_S | 3261 | drivers/block/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
D_S | 3262 | drivers/block/sbpcd.c | (D_S[d].firmware_version[2] & 0x0F) *10 + |
D_S | 3263 | drivers/block/sbpcd.c | (D_S[d].firmware_version[3] & 0x0F); |
D_S | 3266 | drivers/block/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
D_S | 3267 | drivers/block/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
D_S | 3268 | drivers/block/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
D_S | 3269 | drivers/block/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
D_S | 3270 | drivers/block/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
D_S | 3271 | drivers/block/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
D_S | 3275 | drivers/block/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
D_S | 3278 | drivers/block/sbpcd.c | D_S[d].drv_type=drv_100; |
D_S | 3284 | drivers/block/sbpcd.c | msg(DBG_INF,"new drive CD200 (%s)detected.\n", D_S[d].firmware_version); |
D_S | 3289 | drivers/block/sbpcd.c | msg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type); |
D_S | 3297 | drivers/block/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3298 | drivers/block/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
D_S | 3418 | drivers/block/sbpcd.c | D_S[ndrives].drv_id=j; |
D_S | 3419 | drivers/block/sbpcd.c | if (sbpro_type==1) D_S[ndrives].drv_sel=(j&0x01)<<1|(j&0x02)>>1; |
D_S | 3420 | drivers/block/sbpcd.c | else D_S[ndrives].drv_sel=j; |
D_S | 3428 | drivers/block/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
D_S | 3429 | drivers/block/sbpcd.c | if (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150); |
D_S | 3432 | drivers/block/sbpcd.c | D_S[d].drv_id, |
D_S | 3433 | drivers/block/sbpcd.c | D_S[d].drive_model, |
D_S | 3434 | drivers/block/sbpcd.c | D_S[d].firmware_version, |
D_S | 3440 | drivers/block/sbpcd.c | for (j=ndrives;j<NR_SBPCD;j++) D_S[j].drv_id=-1; |
D_S | 3570 | drivers/block/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
D_S | 3580 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
D_S | 3581 | drivers/block/sbpcd.c | D_S[d].ored_ctl_adr=0; |
D_S | 3582 | drivers/block/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
D_S | 3590 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
D_S | 3591 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
D_S | 3592 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
D_S | 3593 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
D_S | 3594 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
D_S | 3595 | drivers/block/sbpcd.c | D_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr; |
D_S | 3598 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
D_S | 3599 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
D_S | 3600 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
D_S | 3601 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
D_S | 3602 | drivers/block/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
D_S | 3604 | drivers/block/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
D_S | 3612 | drivers/block/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 3657 | drivers/block/sbpcd.c | if (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1; /* possibly a weird PhotoCD */ |
D_S | 3658 | drivers/block/sbpcd.c | else D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES; |
D_S | 3659 | drivers/block/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
D_S | 3667 | drivers/block/sbpcd.c | if ((fam0L_drive) && (D_S[d].xa_byte==0x20)) |
D_S | 3695 | drivers/block/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
D_S | 3697 | drivers/block/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3698 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3709 | drivers/block/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 3718 | drivers/block/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3719 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3727 | drivers/block/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) |
D_S | 3735 | drivers/block/sbpcd.c | if (D_S[d].audio_state==audio_playing) seek_pos_audio_end(); |
D_S | 3736 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3743 | drivers/block/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3744 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3815 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 3847 | drivers/block/sbpcd.c | switch (D_S[d].audio_state) |
D_S | 3856 | drivers/block/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
D_S | 3857 | drivers/block/sbpcd.c | D_S[d].audio_state=audio_pausing; |
D_S | 3860 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
D_S | 3872 | drivers/block/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) return -EINVAL; |
D_S | 3874 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
D_S | 3875 | drivers/block/sbpcd.c | D_S[d].pos_audio_end); |
D_S | 3878 | drivers/block/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3883 | drivers/block/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
D_S | 3889 | drivers/block/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
D_S | 3890 | drivers/block/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
D_S | 3896 | drivers/block/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
D_S | 3899 | drivers/block/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
D_S | 3903 | drivers/block/sbpcd.c | D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3904 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3909 | drivers/block/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3914 | drivers/block/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
D_S | 3929 | drivers/block/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
D_S | 3930 | drivers/block/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
D_S | 3932 | drivers/block/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
D_S | 3933 | drivers/block/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
D_S | 3934 | drivers/block/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
D_S | 3935 | drivers/block/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3939 | drivers/block/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3944 | drivers/block/sbpcd.c | tochdr.cdth_trk0=D_S[d].n_first_track; |
D_S | 3945 | drivers/block/sbpcd.c | tochdr.cdth_trk1=D_S[d].n_last_track; |
D_S | 3957 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
D_S | 3958 | drivers/block/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
D_S | 3959 | drivers/block/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
D_S | 3960 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
D_S | 3961 | drivers/block/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
D_S | 3964 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
D_S | 3965 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
D_S | 3966 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
D_S | 3969 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
D_S | 3979 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3985 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3991 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3997 | drivers/block/sbpcd.c | if (D_S[d].open_count>1) return (-EBUSY); |
D_S | 3999 | drivers/block/sbpcd.c | D_S[d].open_count=-9; /* to get it locked next time again */ |
D_S | 4004 | drivers/block/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 4005 | drivers/block/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 4006 | drivers/block/sbpcd.c | D_S[d].audio_state=0; |
D_S | 4012 | drivers/block/sbpcd.c | D_S[d].f_eject=arg; |
D_S | 4020 | drivers/block/sbpcd.c | D_S[d].vol_chan0=0; |
D_S | 4021 | drivers/block/sbpcd.c | D_S[d].vol_ctrl0=volctrl.channel0; |
D_S | 4022 | drivers/block/sbpcd.c | D_S[d].vol_chan1=1; |
D_S | 4023 | drivers/block/sbpcd.c | D_S[d].vol_ctrl1=volctrl.channel1; |
D_S | 4033 | drivers/block/sbpcd.c | volctrl.channel0=D_S[d].vol_ctrl0; |
D_S | 4034 | drivers/block/sbpcd.c | volctrl.channel1=D_S[d].vol_ctrl1; |
D_S | 4050 | drivers/block/sbpcd.c | switch (D_S[d].audio_state) |
D_S | 4062 | drivers/block/sbpcd.c | SC.cdsc_adr=D_S[d].SubQ_ctl_adr; |
D_S | 4063 | drivers/block/sbpcd.c | SC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4; |
D_S | 4064 | drivers/block/sbpcd.c | SC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk); |
D_S | 4065 | drivers/block/sbpcd.c | SC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx); |
D_S | 4068 | drivers/block/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot); |
D_S | 4069 | drivers/block/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk); |
D_S | 4073 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
D_S | 4074 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
D_S | 4075 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
D_S | 4076 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
D_S | 4077 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
D_S | 4078 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
D_S | 4092 | drivers/block/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 4099 | drivers/block/sbpcd.c | D_S[d].mode=READ_M2; |
D_S | 4105 | drivers/block/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
D_S | 4106 | drivers/block/sbpcd.c | vfree(D_S[d].aud_buf); |
D_S | 4108 | drivers/block/sbpcd.c | D_S[d].aud_buf=NULL; |
D_S | 4109 | drivers/block/sbpcd.c | D_S[d].sbp_audsiz=arg; |
D_S | 4110 | drivers/block/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
D_S | 4112 | drivers/block/sbpcd.c | D_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW); |
D_S | 4113 | drivers/block/sbpcd.c | if (D_S[d].aud_buf==NULL) |
D_S | 4115 | drivers/block/sbpcd.c | msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz); |
D_S | 4116 | drivers/block/sbpcd.c | D_S[d].sbp_audsiz=0; |
D_S | 4118 | drivers/block/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz); |
D_S | 4120 | drivers/block/sbpcd.c | return (D_S[d].sbp_audsiz); |
D_S | 4139 | drivers/block/sbpcd.c | if (D_S[d].aud_buf==NULL) return (-EINVAL); |
D_S | 4143 | drivers/block/sbpcd.c | if (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL); |
D_S | 4164 | drivers/block/sbpcd.c | D_S[d].mode=READ_AU; |
D_S | 4245 | drivers/block/sbpcd.c | p = D_S[d].aud_buf; |
D_S | 4292 | drivers/block/sbpcd.c | D_S[d].status_bits); |
D_S | 4304 | drivers/block/sbpcd.c | (u_char *) D_S[d].aud_buf, |
D_S | 4311 | drivers/block/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 4328 | drivers/block/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
D_S | 4330 | drivers/block/sbpcd.c | ms_info.addr.lba=D_S[d].lba_multi; |
D_S | 4332 | drivers/block/sbpcd.c | if (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
D_S | 4362 | drivers/block/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
D_S | 4363 | drivers/block/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
D_S | 4365 | drivers/block/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
D_S | 4366 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
D_S | 4394 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4402 | drivers/block/sbpcd.c | if (D_S[i].audio_state==audio_playing) goto err_done; |
D_S | 4471 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
D_S | 4472 | drivers/block/sbpcd.c | D_S[d].sbp_current = 0; |
D_S | 4474 | drivers/block/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
D_S | 4475 | drivers/block/sbpcd.c | D_S[d].sbp_read_frames = D_S[d].sbp_bufsiz; |
D_S | 4478 | drivers/block/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
D_S | 4480 | drivers/block/sbpcd.c | if (D_S[d].sbp_read_frames < 1) |
D_S | 4483 | drivers/block/sbpcd.c | block, D_S[d].CDsize_frm); |
D_S | 4484 | drivers/block/sbpcd.c | D_S[d].sbp_read_frames=1; |
D_S | 4493 | drivers/block/sbpcd.c | if (D_S[d].xa_byte==0x20) |
D_S | 4500 | drivers/block/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
D_S | 4505 | drivers/block/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 4518 | drivers/block/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
D_S | 4519 | drivers/block/sbpcd.c | drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
D_S | 4526 | drivers/block/sbpcd.c | drvcmd[6]=D_S[d].sbp_read_frames; |
D_S | 4532 | drivers/block/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames; |
D_S | 4542 | drivers/block/sbpcd.c | drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4543 | drivers/block/sbpcd.c | drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4584 | drivers/block/sbpcd.c | if (D_S[d].f_multisession) max_latency=9*HZ; |
D_S | 4589 | drivers/block/sbpcd.c | for (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++) |
D_S | 4599 | drivers/block/sbpcd.c | if (D_S[d].f_multisession) try=maxtim_data*4; |
D_S | 4644 | drivers/block/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
D_S | 4653 | drivers/block/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
D_S | 4659 | drivers/block/sbpcd.c | D_S[d].sbp_current++; |
D_S | 4730 | drivers/block/sbpcd.c | D_S[d].error_state=infobuf[2]; |
D_S | 4731 | drivers/block/sbpcd.c | D_S[d].b3=infobuf[3]; |
D_S | 4732 | drivers/block/sbpcd.c | D_S[d].b4=infobuf[4]; |
D_S | 4802 | drivers/block/sbpcd.c | msg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits); |
D_S | 4816 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
D_S | 4817 | drivers/block/sbpcd.c | D_S[d].sbp_current = 0; |
D_S | 4822 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
D_S | 4823 | drivers/block/sbpcd.c | D_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1; |
D_S | 4840 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4883 | drivers/block/sbpcd.c | if (famT_drive) msg(DBG_TE2,"sbpcd_open: status %02X\n", D_S[d].status_bits); |
D_S | 4887 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 4902 | drivers/block/sbpcd.c | D_S[d].open_count,D_S[d].open_count+1); |
D_S | 4903 | drivers/block/sbpcd.c | if (++D_S[d].open_count<=1) |
D_S | 4906 | drivers/block/sbpcd.c | D_S[d].open_count=1; |
D_S | 4910 | drivers/block/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
D_S | 4925 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4932 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; |
D_S | 4941 | drivers/block/sbpcd.c | D_S[d].open_count,D_S[d].open_count-1); |
D_S | 4942 | drivers/block/sbpcd.c | if (D_S[d].open_count>-2) /* CDROMEJECT may have been done */ |
D_S | 4944 | drivers/block/sbpcd.c | if (--D_S[d].open_count<=0) |
D_S | 4947 | drivers/block/sbpcd.c | if (D_S[d].audio_state!=audio_playing) |
D_S | 4948 | drivers/block/sbpcd.c | if (D_S[d].f_eject) cc_SpinDown(); |
D_S | 4949 | drivers/block/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
D_S | 4950 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 5182 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5188 | drivers/block/sbpcd.c | D_S[d].sbp_first_frame = -1; /* First frame in buffer */ |
D_S | 5189 | drivers/block/sbpcd.c | D_S[d].sbp_last_frame = -1; /* Last frame in buffer */ |
D_S | 5190 | drivers/block/sbpcd.c | D_S[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
D_S | 5191 | drivers/block/sbpcd.c | D_S[d].sbp_current = 0; /* Frame being currently read */ |
D_S | 5192 | drivers/block/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 5193 | drivers/block/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE; |
D_S | 5195 | drivers/block/sbpcd.c | if (!fam0_drive) D_S[d].f_eject=1; |
D_S | 5196 | drivers/block/sbpcd.c | else D_S[d].f_eject=0; |
D_S | 5198 | drivers/block/sbpcd.c | D_S[d].f_eject=0; |
D_S | 5217 | drivers/block/sbpcd.c | D_S[d].error_byte); |
D_S | 5218 | drivers/block/sbpcd.c | if (D_S[d].error_byte==aud_12) |
D_S | 5227 | drivers/block/sbpcd.c | D_S[d].error_byte); |
D_S | 5234 | drivers/block/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
D_S | 5269 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5274 | drivers/block/sbpcd.c | D_S[j].aud_buf=NULL; |
D_S | 5275 | drivers/block/sbpcd.c | D_S[j].sbp_audsiz=0; |
D_S | 5276 | drivers/block/sbpcd.c | D_S[j].sbp_bufsiz=SBP_BUFFER_FRAMES; |
D_S | 5277 | drivers/block/sbpcd.c | if (D_S[j].drv_type&drv_fam1) |
D_S | 5278 | drivers/block/sbpcd.c | if (READ_AUDIO>0) D_S[j].sbp_audsiz=READ_AUDIO; |
D_S | 5280 | drivers/block/sbpcd.c | D_S[j].sbp_buf=(u_char *) vmalloc(D_S[j].sbp_bufsiz*CD_FRAMESIZE); |
D_S | 5281 | drivers/block/sbpcd.c | if (D_S[j].sbp_buf==NULL) |
D_S | 5283 | drivers/block/sbpcd.c | msg(DBG_INF,"data buffer (%d frames) not available.\n",D_S[j].sbp_bufsiz); |
D_S | 5287 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
D_S | 5289 | drivers/block/sbpcd.c | D_S[j].aud_buf=(u_char *) vmalloc(D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW); |
D_S | 5290 | drivers/block/sbpcd.c | if (D_S[j].aud_buf==NULL) msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[j].sbp_audsiz); |
D_S | 5291 | drivers/block/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[j].sbp_audsiz); |
D_S | 5294 | drivers/block/sbpcd.c | D_S[j].sbp_buf=(u_char *)mem_start; |
D_S | 5295 | drivers/block/sbpcd.c | mem_start += D_S[j].sbp_bufsiz*CD_FRAMESIZE; |
D_S | 5296 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
D_S | 5298 | drivers/block/sbpcd.c | D_S[j].aud_buf=(u_char *)mem_start; |
D_S | 5299 | drivers/block/sbpcd.c | mem_start += D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW; |
D_S | 5347 | drivers/block/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5348 | drivers/block/sbpcd.c | vfree(D_S[j].sbp_buf); |
D_S | 5349 | drivers/block/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
D_S | 5350 | drivers/block/sbpcd.c | vfree(D_S[j].aud_buf); |
D_S | 5369 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) ) |
D_S | 5379 | drivers/block/sbpcd.c | msg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits); |
D_S | 5385 | drivers/block/sbpcd.c | if (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n"); |
D_S | 5390 | drivers/block/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 5395 | drivers/block/sbpcd.c | D_S[d].open_count=0; |
D_S | 5396 | drivers/block/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 5401 | drivers/block/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
D_S | 5403 | drivers/block/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 216 | include/linux/sbpcd.h | #define upc_valid (D_S[d].diskstate_flags&upc_bit) |
D_S | 217 | include/linux/sbpcd.h | #define volume_valid (D_S[d].diskstate_flags&volume_bit) |
D_S | 218 | include/linux/sbpcd.h | #define toc_valid (D_S[d].diskstate_flags&toc_bit) |
D_S | 219 | include/linux/sbpcd.h | #define cd_size_valid (D_S[d].diskstate_flags&cd_size_bit) |
D_S | 220 | include/linux/sbpcd.h | #define subq_valid (D_S[d].diskstate_flags&subq_bit) |
D_S | 221 | include/linux/sbpcd.h | #define frame_size_valid (D_S[d].diskstate_flags&frame_size_bit) |
D_S | 290 | include/linux/sbpcd.h | #define st_door_closed (D_S[d].status_bits&p_door_closed) |
D_S | 291 | include/linux/sbpcd.h | #define st_caddy_in (D_S[d].status_bits&p_caddy_in) |
D_S | 292 | include/linux/sbpcd.h | #define st_spinning (D_S[d].status_bits&p_spinning) |
D_S | 293 | include/linux/sbpcd.h | #define st_check (D_S[d].status_bits&p_check) |
D_S | 294 | include/linux/sbpcd.h | #define st_busy (D_S[d].status_bits&p_busy_new) |
D_S | 295 | include/linux/sbpcd.h | #define st_door_locked (D_S[d].status_bits&p_door_locked) |
D_S | 296 | include/linux/sbpcd.h | #define st_diskok (D_S[d].status_bits&p_disk_ok) |
D_S | 334 | include/linux/sbpcd.h | #define fam0_drive (D_S[d].drv_type&drv_fam0) |
D_S | 335 | include/linux/sbpcd.h | #define famL_drive (D_S[d].drv_type&drv_famL) |
D_S | 336 | include/linux/sbpcd.h | #define fam1_drive (D_S[d].drv_type&drv_fam1) |
D_S | 337 | include/linux/sbpcd.h | #define fam2_drive (D_S[d].drv_type&drv_fam2) |
D_S | 338 | include/linux/sbpcd.h | #define famT_drive (D_S[d].drv_type&drv_famT) |
D_S | 339 | include/linux/sbpcd.h | #define fam0L_drive (D_S[d].drv_type&(drv_fam0|drv_famL)) |
D_S | 340 | include/linux/sbpcd.h | #define fam1L_drive (D_S[d].drv_type&(drv_fam1|drv_famL)) |
D_S | 341 | include/linux/sbpcd.h | #define fam01_drive (D_S[d].drv_type&(drv_fam0|drv_fam1)) |
D_S | 342 | include/linux/sbpcd.h | #define fam12_drive (D_S[d].drv_type&(drv_fam1|drv_fam2)) |
D_S | 343 | include/linux/sbpcd.h | #define fam2T_drive (D_S[d].drv_type&(drv_fam2|drv_famT)) |