tag | line | file | source code |
D_S | 710 | drivers/cdrom/sbpcd.c | } D_S[NR_SBPCD]; |
D_S | 913 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 1028 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1029 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].status_bits=st|p_success; |
D_S | 1032 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_door_closed|p_caddy_in; |
D_S | 1033 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
D_S | 1034 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
D_S | 1035 | drivers/cdrom/sbpcd.c | if (st&p_success_old) D_S[d].status_bits |= p_success; |
D_S | 1036 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
D_S | 1037 | drivers/cdrom/sbpcd.c | if (st&p_disk_ok) D_S[d].status_bits |= p_disk_ok; |
D_S | 1041 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1042 | drivers/cdrom/sbpcd.c | if (st&p_caddin_old) D_S[d].status_bits |= p_disk_ok|p_caddy_in; |
D_S | 1043 | drivers/cdrom/sbpcd.c | if (st&p_spinning) D_S[d].status_bits |= p_spinning; |
D_S | 1044 | drivers/cdrom/sbpcd.c | if (st&p_check) D_S[d].status_bits |= p_check; |
D_S | 1045 | drivers/cdrom/sbpcd.c | if (st&p_busy_old) D_S[d].status_bits |= p_busy_new; |
D_S | 1046 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_closed) D_S[d].status_bits |= p_door_closed; |
D_S | 1047 | drivers/cdrom/sbpcd.c | if (st&p_lcs_door_locked) D_S[d].status_bits |= p_door_locked; |
D_S | 1051 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1052 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
D_S | 1053 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
D_S | 1054 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
D_S | 1055 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
D_S | 1056 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
D_S | 1057 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
D_S | 1058 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
D_S | 1059 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
D_S | 1064 | drivers/cdrom/sbpcd.c | D_S[d].status_bits |= p_success; |
D_S | 1065 | drivers/cdrom/sbpcd.c | if (st&p2_check) D_S[d].status_bits |= p1_check; |
D_S | 1066 | drivers/cdrom/sbpcd.c | if (st&p2_door_closed) D_S[d].status_bits |= p1_door_closed; |
D_S | 1067 | drivers/cdrom/sbpcd.c | if (st&p2_disk_in) D_S[d].status_bits |= p1_disk_in; |
D_S | 1068 | drivers/cdrom/sbpcd.c | if (st&p2_busy1) D_S[d].status_bits |= p1_busy; |
D_S | 1069 | drivers/cdrom/sbpcd.c | if (st&p2_busy2) D_S[d].status_bits |= p1_busy; |
D_S | 1070 | drivers/cdrom/sbpcd.c | if (st&p2_spinning) D_S[d].status_bits |= p1_spinning; |
D_S | 1071 | drivers/cdrom/sbpcd.c | if (st&p2_door_locked) D_S[d].status_bits |= p1_door_locked; |
D_S | 1072 | drivers/cdrom/sbpcd.c | if (st&p2_disk_ok) D_S[d].status_bits |= p1_disk_ok; |
D_S | 1084 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
D_S | 1095 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in|p1_spinning|p1_disk_ok; |
D_S | 1096 | drivers/cdrom/sbpcd.c | else if (D_S[d].error_state==6) |
D_S | 1098 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed|p1_disk_in; |
D_S | 1099 | drivers/cdrom/sbpcd.c | else if ((D_S[d].error_state!=2)||(D_S[d].b3!=0x3A)||(D_S[d].b4==0x00)) |
D_S | 1102 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
D_S | 1103 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 1105 | drivers/cdrom/sbpcd.c | else if (D_S[d].b4==0x01) |
D_S | 1108 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1109 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 1114 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=p1_door_closed; |
D_S | 1115 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 1117 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
D_S | 1147 | drivers/cdrom/sbpcd.c | D_S[d].status_bits=0; |
D_S | 1153 | drivers/cdrom/sbpcd.c | msg(DBG_STA,"status_bits=%02X, i=%02X\n",D_S[d].status_bits,i); |
D_S | 1154 | drivers/cdrom/sbpcd.c | return (D_S[d].status_bits); |
D_S | 1204 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=0; |
D_S | 1209 | drivers/cdrom/sbpcd.c | D_S[d].error_byte=infobuf[i]; |
D_S | 1210 | drivers/cdrom/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 | 1225 | drivers/cdrom/sbpcd.c | D_S[d].error_state=0; |
D_S | 1226 | drivers/cdrom/sbpcd.c | D_S[d].b3=0; |
D_S | 1227 | drivers/cdrom/sbpcd.c | D_S[d].b4=0; |
D_S | 1228 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
D_S | 1234 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 1339 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
D_S | 1340 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
D_S | 1341 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
D_S | 1342 | drivers/cdrom/sbpcd.c | if (D_S[d].f_drv_error) |
D_S | 1344 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=0; |
D_S | 1346 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
D_S | 1348 | drivers/cdrom/sbpcd.c | return (-D_S[d].error_state-400); |
D_S | 1355 | drivers/cdrom/sbpcd.c | D_S[d].f_drv_error=1; |
D_S | 1357 | drivers/cdrom/sbpcd.c | D_S[d].error_state=2; |
D_S | 1389 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to CDi_stat_loop.\n"); |
D_S | 1398 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadStatus.\n"); |
D_S | 1404 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to ResponseStatus.\n"); |
D_S | 1420 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cc_ReadError.\n"); |
D_S | 1422 | drivers/cdrom/sbpcd.c | if (D_S[d].in_SpinUp) msg(DBG_SPI,"in_SpinUp: to cmd_out OK.\n"); |
D_S | 1476 | drivers/cdrom/sbpcd.c | D_S[d].n_bytes=1; |
D_S | 1488 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 1; |
D_S | 1517 | drivers/cdrom/sbpcd.c | D_S[d].in_SpinUp = 0; |
D_S | 1578 | drivers/cdrom/sbpcd.c | drvcmd[1]=D_S[d].speed_byte; |
D_S | 1579 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].frmsiz>>8; |
D_S | 1580 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frmsiz&0x0FF; |
D_S | 1581 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].f_XA; /* 1: XA */ |
D_S | 1582 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ |
D_S | 1583 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].mode_xb_6; |
D_S | 1584 | drivers/cdrom/sbpcd.c | drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; |
D_S | 1585 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].mode_xb_8; |
D_S | 1586 | drivers/cdrom/sbpcd.c | drvcmd[9]=D_S[d].delay; |
D_S | 1601 | drivers/cdrom/sbpcd.c | D_S[d].speed_byte=0x02; /* 0x02: auto quad, 0x82: quad, 0x81: double, 0x80: single */ |
D_S | 1602 | drivers/cdrom/sbpcd.c | D_S[d].frmsiz=make16(infobuf[2],infobuf[3]); |
D_S | 1603 | drivers/cdrom/sbpcd.c | D_S[d].f_XA=infobuf[4]; |
D_S | 1604 | drivers/cdrom/sbpcd.c | if (D_S[d].f_XA==0) D_S[d].type_byte=0; |
D_S | 1605 | drivers/cdrom/sbpcd.c | else D_S[d].type_byte=1; |
D_S | 1606 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_6=infobuf[6]; |
D_S | 1607 | drivers/cdrom/sbpcd.c | D_S[d].mode_yb_7=1; |
D_S | 1608 | drivers/cdrom/sbpcd.c | D_S[d].mode_xb_8=infobuf[8]; |
D_S | 1609 | drivers/cdrom/sbpcd.c | D_S[d].delay=0; /* 0, 1, 2, 3 */ |
D_S | 1664 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
D_S | 1666 | drivers/cdrom/sbpcd.c | channel0=D_S[d].vol_chan0; |
D_S | 1667 | drivers/cdrom/sbpcd.c | volume0=D_S[d].vol_ctrl0; |
D_S | 1668 | drivers/cdrom/sbpcd.c | channel1=control1=D_S[d].vol_chan1; |
D_S | 1669 | drivers/cdrom/sbpcd.c | volume1=value1=D_S[d].vol_ctrl1; |
D_S | 1674 | drivers/cdrom/sbpcd.c | if (((D_S[d].drv_options&audio_mono)!=0)&&(D_S[d].drv_type>=drv_211)) |
D_S | 1743 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_300) |
D_S | 1755 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_211) |
D_S | 1788 | drivers/cdrom/sbpcd.c | else if (D_S[d].drv_type<drv_201) volume0=volume1=value0; |
D_S | 1790 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 1795 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
D_S | 1809 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=0; |
D_S | 1810 | drivers/cdrom/sbpcd.c | if (!volume0) D_S[d].volume_control|=0x10; |
D_S | 1811 | drivers/cdrom/sbpcd.c | if (!volume1) D_S[d].volume_control|=0x20; |
D_S | 1821 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
D_S | 1861 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 1878 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte!=aud_12) return -501; |
D_S | 1886 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
D_S | 1888 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_auto)) |
D_S | 1891 | drivers/cdrom/sbpcd.c | if (!(D_S[d].drv_options&speed_300)) speed=0; |
D_S | 1912 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 1926 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) return (-EINVAL); |
D_S | 2016 | drivers/cdrom/sbpcd.c | if (pau_res==3) return (cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end)); |
D_S | 2157 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~subq_bit; |
D_S | 2206 | drivers/cdrom/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 | 2207 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_run_tot=D_S[d].SubQ_run_trk=0; |
D_S | 2211 | drivers/cdrom/sbpcd.c | if (famT_drive) D_S[d].SubQ_ctl_adr=infobuf[1]; |
D_S | 2212 | drivers/cdrom/sbpcd.c | else D_S[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
D_S | 2213 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_trk=byt2bcd(infobuf[2]); |
D_S | 2214 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
D_S | 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 */ |
D_S | 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 */ |
D_S | 2224 | drivers/cdrom/sbpcd.c | D_S[d].SubQ_whatisthis=infobuf[i+3]; |
D_S | 2225 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= subq_bit; |
D_S | 2235 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
D_S | 2259 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte=0; |
D_S | 2260 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].sense_byte=infobuf[i++]; |
D_S | 2263 | drivers/cdrom/sbpcd.c | if (infobuf[4]==0x01) D_S[d].xa_byte=0x20; |
D_S | 2264 | drivers/cdrom/sbpcd.c | else D_S[d].xa_byte=0; |
D_S | 2267 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
D_S | 2273 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
D_S | 2284 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~frame_size_bit; |
D_S | 2286 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=framesize; |
D_S | 2287 | drivers/cdrom/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) D_S[d].sense_byte=0x82; |
D_S | 2288 | drivers/cdrom/sbpcd.c | else D_S[d].sense_byte=0x00; |
D_S | 2291 | drivers/cdrom/sbpcd.c | D_S[d].sense_byte, D_S[d].frame_size); |
D_S | 2297 | drivers/cdrom/sbpcd.c | drvcmd[2]=D_S[d].sense_byte; |
D_S | 2298 | drivers/cdrom/sbpcd.c | drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; |
D_S | 2299 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].frame_size&0xFF; |
D_S | 2306 | drivers/cdrom/sbpcd.c | drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; |
D_S | 2307 | drivers/cdrom/sbpcd.c | drvcmd[3]=D_S[d].frame_size&0xFF; |
D_S | 2321 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= frame_size_bit; |
D_S | 2335 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~volume_bit; |
D_S | 2411 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 2413 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type<drv_300) |
D_S | 2418 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_211) |
D_S | 2438 | drivers/cdrom/sbpcd.c | D_S[d].volume_control=infobuf[7]; |
D_S | 2441 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x10) vol0=0; |
D_S | 2443 | drivers/cdrom/sbpcd.c | if (D_S[d].volume_control&0x20) vol1=0; |
D_S | 2446 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=chan0; |
D_S | 2447 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=vol0; |
D_S | 2448 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=chan1; |
D_S | 2449 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=vol1; |
D_S | 2451 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan2=2; |
D_S | 2452 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl2=0xFF; |
D_S | 2453 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan3=3; |
D_S | 2454 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl3=0xFF; |
D_S | 2456 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= volume_bit; |
D_S | 2467 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
D_S | 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; |
D_S | 2498 | drivers/cdrom/sbpcd.c | else if (fam0_drive) D_S[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
D_S | 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])); |
D_S | 2502 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= cd_size_bit; |
D_S | 2503 | drivers/cdrom/sbpcd.c | msg(DBG_000,"cc_ReadCapacity: %d frames.\n", D_S[d].CDsize_frm); |
D_S | 2511 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
D_S | 2531 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2541 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2553 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte=infobuf[0]; |
D_S | 2556 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[1]; |
D_S | 2557 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[2]; |
D_S | 2558 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[3]; |
D_S | 2559 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[4]; |
D_S | 2560 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2562 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2563 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
D_S | 2566 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2568 | drivers/cdrom/sbpcd.c | if (D_S[d].last_session<=20) |
D_S | 2569 | drivers/cdrom/sbpcd.c | zwanzig=D_S[d].last_session+1; |
D_S | 2571 | drivers/cdrom/sbpcd.c | for (count=D_S[d].first_session;count<zwanzig;count++) |
D_S | 2581 | drivers/cdrom/sbpcd.c | D_S[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
D_S | 2583 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= multisession_bit; |
D_S | 2594 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
D_S | 2595 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2596 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
D_S | 2600 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(infobuf[8],infobuf[9]),make16(infobuf[10],infobuf[11])); |
D_S | 2601 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2602 | drivers/cdrom/sbpcd.c | D_S[d].CDsize_frm=D_S[d].size_blk+1; |
D_S | 2603 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[2]; |
D_S | 2604 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[3]; |
D_S | 2608 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track=infobuf[1]; |
D_S | 2609 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track=infobuf[2]; |
D_S | 2610 | drivers/cdrom/sbpcd.c | D_S[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
D_S | 2611 | drivers/cdrom/sbpcd.c | D_S[d].size_blk=msf2blk(D_S[d].size_msf); |
D_S | 2612 | drivers/cdrom/sbpcd.c | if (famLV_drive) D_S[d].CDsize_frm=D_S[d].size_blk+1; |
D_S | 2614 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
D_S | 2616 | drivers/cdrom/sbpcd.c | D_S[d].xa_byte, |
D_S | 2617 | drivers/cdrom/sbpcd.c | D_S[d].n_first_track, |
D_S | 2618 | drivers/cdrom/sbpcd.c | D_S[d].n_last_track, |
D_S | 2619 | drivers/cdrom/sbpcd.c | D_S[d].size_msf); |
D_S | 2669 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte=infobuf[0]; |
D_S | 2674 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
D_S | 2677 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=infobuf[i++]; |
D_S | 2678 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=infobuf[i]; |
D_S | 2682 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number=num; |
D_S | 2683 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_format=0; |
D_S | 2689 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address=make32(make16(0,infobuf[i]), |
D_S | 2696 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_nixbyte, D_S[d].TocEnt_ctl_adr, |
D_S | 2697 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_number, D_S[d].TocEnt_format, |
D_S | 2698 | drivers/cdrom/sbpcd.c | D_S[d].TocEnt_address); |
D_S | 2729 | drivers/cdrom/sbpcd.c | if (fam1_drive) D_S[d].UPC_buf[i]=swap_nibbles(*p++); |
D_S | 2732 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
D_S | 2733 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[i] |= *p++; |
D_S | 2744 | drivers/cdrom/sbpcd.c | D_S[d].UPC_buf[6] &= 0xF0; |
D_S | 2762 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~upc_bit; |
D_S | 2831 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr=0; |
D_S | 2837 | drivers/cdrom/sbpcd.c | D_S[d].UPC_ctl_adr = (D_S[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
D_S | 2840 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " %02X", D_S[d].UPC_buf[i]); |
D_S | 2841 | drivers/cdrom/sbpcd.c | sprintf(&msgbuf[i*3], " (%02X)", D_S[d].UPC_ctl_adr); |
D_S | 2844 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= upc_bit; |
D_S | 2853 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=0; |
D_S | 2854 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=0; |
D_S | 2866 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2867 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
D_S | 2880 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
D_S | 2894 | drivers/cdrom/sbpcd.c | D_S[d].first_session=infobuf[2]; |
D_S | 2895 | drivers/cdrom/sbpcd.c | D_S[d].last_session=infobuf[3]; |
D_S | 2896 | drivers/cdrom/sbpcd.c | D_S[d].track_of_last_session=infobuf[6]; |
D_S | 2897 | drivers/cdrom/sbpcd.c | if (D_S[d].first_session!=D_S[d].last_session) |
D_S | 2899 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2900 | drivers/cdrom/sbpcd.c | D_S[d].lba_multi=msf2blk(make32(make16(0,infobuf[9]),make16(infobuf[10],infobuf[11]))); |
D_S | 2906 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession Info:%s (%d)\n", msgbuf, D_S[d].lba_multi); |
D_S | 2907 | drivers/cdrom/sbpcd.c | if (D_S[d].lba_multi>200) |
D_S | 2909 | drivers/cdrom/sbpcd.c | D_S[d].f_multisession=1; |
D_S | 2910 | drivers/cdrom/sbpcd.c | msg(DBG_MUL,"MultiSession base: %06X\n", D_S[d].lba_multi); |
D_S | 2927 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) return (-ENODATA); |
D_S | 2938 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE_SUB; |
D_S | 3022 | drivers/cdrom/sbpcd.c | CDo_command, type, D_S[d].drive_model, D_S[d].drv_id); |
D_S | 3038 | drivers/cdrom/sbpcd.c | msg(DBG_INI,"check_version: id=%d, d=%d.\n", D_S[d].drv_id, d); |
D_S | 3039 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=0; |
D_S | 3074 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3075 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
D_S | 3076 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3077 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3078 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]=infobuf[i++]; |
D_S | 3079 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
D_S | 3080 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
D_S | 3081 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam1; |
D_S | 3083 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3088 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3089 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='R'; |
D_S | 3090 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3091 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3092 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='2'; |
D_S | 3093 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]='x'; |
D_S | 3094 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
D_S | 3095 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam0; |
D_S | 3098 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3104 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
D_S | 3105 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[8]=0; |
D_S | 3106 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famL; |
D_S | 3109 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3115 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[j]=infobuf[j]; |
D_S | 3116 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=0; |
D_S | 3117 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famV; |
D_S | 3121 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3138 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3164 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3165 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
D_S | 3166 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='2'; |
D_S | 3167 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='0'; |
D_S | 3168 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='0'; |
D_S | 3169 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=infobuf[i++]; |
D_S | 3170 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[6]=infobuf[i++]; |
D_S | 3171 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[7]=0; |
D_S | 3172 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_fam2; |
D_S | 3176 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3180 | drivers/cdrom/sbpcd.c | for (j=1;j<=((D_S[d].drv_id==0)?3:1);j++) |
D_S | 3182 | drivers/cdrom/sbpcd.c | for (l=1;l<=((D_S[d].drv_id==0)?10:1);l++) |
D_S | 3188 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3194 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3221 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[0]='C'; |
D_S | 3222 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[1]='D'; |
D_S | 3223 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[2]='-'; |
D_S | 3224 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[3]='5'; |
D_S | 3225 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[4]='5'; |
D_S | 3226 | drivers/cdrom/sbpcd.c | D_S[d].drive_model[5]=0; |
D_S | 3227 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_famT; |
D_S | 3231 | drivers/cdrom/sbpcd.c | if (!D_S[d].drv_type) |
D_S | 3233 | drivers/cdrom/sbpcd.c | msg(DBG_TEA,"no drive found at address %03X under ID %d.\n",CDo_command,D_S[d].drv_id); |
D_S | 3236 | drivers/cdrom/sbpcd.c | for (j=0;j<4;j++) D_S[d].firmware_version[j]=infobuf[i+j]; |
D_S | 3243 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_e1[j]) break; |
D_S | 3244 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_e1; |
D_S | 3247 | drivers/cdrom/sbpcd.c | if (D_S[d].firmware_version[j]!=lcs_firm_f4[j]) break; |
D_S | 3248 | drivers/cdrom/sbpcd.c | if (j==4) D_S[d].drv_type=drv_f4; |
D_S | 3250 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type==drv_famL) ask_mail(); |
D_S | 3257 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]=infobuf[7]; |
D_S | 3258 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]=infobuf[8]; |
D_S | 3259 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]=infobuf[10]; |
D_S | 3260 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]=infobuf[11]; |
D_S | 3265 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[0]='0'; |
D_S | 3266 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[1]='.'; |
D_S | 3267 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[2]='0'+(j>>4); |
D_S | 3268 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version[3]='0'+(j&0x0f); |
D_S | 3273 | drivers/cdrom/sbpcd.c | j = (D_S[d].firmware_version[0] & 0x0F) * 100 + |
D_S | 3274 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[2] & 0x0F) *10 + |
D_S | 3275 | drivers/cdrom/sbpcd.c | (D_S[d].firmware_version[3] & 0x0F); |
D_S | 3278 | drivers/cdrom/sbpcd.c | if (j<200) D_S[d].drv_type=drv_199; |
D_S | 3279 | drivers/cdrom/sbpcd.c | else if (j<201) D_S[d].drv_type=drv_200; |
D_S | 3280 | drivers/cdrom/sbpcd.c | else if (j<210) D_S[d].drv_type=drv_201; |
D_S | 3281 | drivers/cdrom/sbpcd.c | else if (j<211) D_S[d].drv_type=drv_210; |
D_S | 3282 | drivers/cdrom/sbpcd.c | else if (j<300) D_S[d].drv_type=drv_211; |
D_S | 3283 | drivers/cdrom/sbpcd.c | else if (j>=300) D_S[d].drv_type=drv_300; |
D_S | 3287 | drivers/cdrom/sbpcd.c | if (j<100) D_S[d].drv_type=drv_099; |
D_S | 3290 | drivers/cdrom/sbpcd.c | D_S[d].drv_type=drv_100; |
D_S | 3296 | drivers/cdrom/sbpcd.c | if (D_S[d].drive_model[5]=='F') |
D_S | 3310 | drivers/cdrom/sbpcd.c | if (j==100) D_S[d].drv_type=drv_at; |
D_S | 3314 | drivers/cdrom/sbpcd.c | msg(DBG_LCS,"drive type %02X\n",D_S[d].drv_type); |
D_S | 3322 | drivers/cdrom/sbpcd.c | OUT(CDo_enable,D_S[d].drv_sel); |
D_S | 3323 | drivers/cdrom/sbpcd.c | msg(DBG_DID,"drive %d (ID=%d) activated.\n", i, D_S[d].drv_id); |
D_S | 3443 | drivers/cdrom/sbpcd.c | D_S[ndrives].drv_id=j; |
D_S | 3444 | drivers/cdrom/sbpcd.c | if (sbpro_type==1) D_S[ndrives].drv_sel=(j&0x01)<<1|(j&0x02)>>1; |
D_S | 3445 | drivers/cdrom/sbpcd.c | else D_S[ndrives].drv_sel=j; |
D_S | 3453 | drivers/cdrom/sbpcd.c | D_S[d].drv_options=drv_pattern[j]; |
D_S | 3454 | drivers/cdrom/sbpcd.c | if (fam0L_drive) D_S[d].drv_options&=~(speed_auto|speed_300|speed_150); |
D_S | 3457 | drivers/cdrom/sbpcd.c | D_S[d].drv_id, |
D_S | 3458 | drivers/cdrom/sbpcd.c | D_S[d].drive_model, |
D_S | 3459 | drivers/cdrom/sbpcd.c | D_S[d].firmware_version, |
D_S | 3465 | drivers/cdrom/sbpcd.c | for (j=ndrives;j<NR_SBPCD;j++) D_S[j].drv_id=-1; |
D_S | 3595 | drivers/cdrom/sbpcd.c | i=msf2blk(D_S[d].pos_audio_end)-1; |
D_S | 3605 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~toc_bit; |
D_S | 3606 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr=0; |
D_S | 3607 | drivers/cdrom/sbpcd.c | for (j=D_S[d].n_first_track;j<=D_S[d].n_last_track;j++) |
D_S | 3615 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=D_S[d].TocEnt_nixbyte; |
D_S | 3616 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=D_S[d].TocEnt_ctl_adr; |
D_S | 3617 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=D_S[d].TocEnt_number; |
D_S | 3618 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=D_S[d].TocEnt_format; |
D_S | 3619 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].TocEnt_address; |
D_S | 3620 | drivers/cdrom/sbpcd.c | D_S[d].ored_ctl_adr |= D_S[d].TocEnt_ctl_adr; |
D_S | 3623 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].nixbyte=0; |
D_S | 3624 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].ctl_adr=0; |
D_S | 3625 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].number=CDROM_LEADOUT; |
D_S | 3626 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].format=0; |
D_S | 3627 | drivers/cdrom/sbpcd.c | D_S[d].TocBuffer[j].address=D_S[d].size_msf; |
D_S | 3629 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags |= toc_bit; |
D_S | 3637 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 3682 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) D_S[d].sbp_bufsiz=1; /* possibly a weird PhotoCD */ |
D_S | 3683 | drivers/cdrom/sbpcd.c | else D_S[d].sbp_bufsiz=SBP_BUFFER_FRAMES; |
D_S | 3684 | drivers/cdrom/sbpcd.c | i=cc_ReadTocEntry(D_S[d].n_first_track); |
D_S | 3692 | drivers/cdrom/sbpcd.c | if ((fam0L_drive) && (D_S[d].xa_byte==0x20)) |
D_S | 3720 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
D_S | 3722 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3723 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3734 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 3743 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3744 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3752 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) |
D_S | 3760 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) seek_pos_audio_end(); |
D_S | 3761 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3768 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 3769 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 3840 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 3872 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
D_S | 3881 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
D_S | 3882 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_pausing; |
D_S | 3885 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
D_S | 3897 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_pausing) return -EINVAL; |
D_S | 3899 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start, |
D_S | 3900 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end); |
D_S | 3903 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3908 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
D_S | 3914 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].SubQ_run_tot; |
D_S | 3915 | drivers/cdrom/sbpcd.c | i=cc_Seek(D_S[d].pos_audio_start,1); |
D_S | 3921 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
D_S | 3924 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
D_S | 3928 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3929 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3934 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3939 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state==audio_playing) |
D_S | 3954 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0<D_S[d].n_first_track) return (-EINVAL); |
D_S | 3955 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk0>D_S[d].n_last_track) return (-EINVAL); |
D_S | 3957 | drivers/cdrom/sbpcd.c | if (ti.cdti_trk1>D_S[d].n_last_track) ti.cdti_trk1=D_S[d].n_last_track; |
D_S | 3958 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_start=D_S[d].TocBuffer[ti.cdti_trk0].address; |
D_S | 3959 | drivers/cdrom/sbpcd.c | D_S[d].pos_audio_end=D_S[d].TocBuffer[ti.cdti_trk1+1].address; |
D_S | 3960 | drivers/cdrom/sbpcd.c | i=cc_PlayAudio(D_S[d].pos_audio_start,D_S[d].pos_audio_end); |
D_S | 3964 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=audio_playing; |
D_S | 3969 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk0=D_S[d].n_first_track; |
D_S | 3970 | drivers/cdrom/sbpcd.c | tochdr.cdth_trk1=D_S[d].n_last_track; |
D_S | 3982 | drivers/cdrom/sbpcd.c | if (i==CDROM_LEADOUT) i=D_S[d].n_last_track+1; |
D_S | 3983 | drivers/cdrom/sbpcd.c | else if (i<D_S[d].n_first_track||i>D_S[d].n_last_track) return (-EINVAL); |
D_S | 3984 | drivers/cdrom/sbpcd.c | tocentry.cdte_adr=D_S[d].TocBuffer[i].ctl_adr&0x0F; |
D_S | 3985 | drivers/cdrom/sbpcd.c | tocentry.cdte_ctrl=(D_S[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
D_S | 3986 | drivers/cdrom/sbpcd.c | tocentry.cdte_datamode=D_S[d].TocBuffer[i].format; |
D_S | 3989 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.minute=(D_S[d].TocBuffer[i].address>>16)&0x00FF; |
D_S | 3990 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.second=(D_S[d].TocBuffer[i].address>>8)&0x00FF; |
D_S | 3991 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.msf.frame=D_S[d].TocBuffer[i].address&0x00FF; |
D_S | 3994 | drivers/cdrom/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(D_S[d].TocBuffer[i].address); |
D_S | 4004 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 4010 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 4016 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 4022 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>1) return (-EBUSY); |
D_S | 4024 | drivers/cdrom/sbpcd.c | D_S[d].open_count=-9; /* to get it locked next time again */ |
D_S | 4029 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 4030 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags=0; |
D_S | 4031 | drivers/cdrom/sbpcd.c | D_S[d].audio_state=0; |
D_S | 4037 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=arg; |
D_S | 4045 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan0=0; |
D_S | 4046 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl0=volctrl.channel0; |
D_S | 4047 | drivers/cdrom/sbpcd.c | D_S[d].vol_chan1=1; |
D_S | 4048 | drivers/cdrom/sbpcd.c | D_S[d].vol_ctrl1=volctrl.channel1; |
D_S | 4058 | drivers/cdrom/sbpcd.c | volctrl.channel0=D_S[d].vol_ctrl0; |
D_S | 4059 | drivers/cdrom/sbpcd.c | volctrl.channel1=D_S[d].vol_ctrl1; |
D_S | 4075 | drivers/cdrom/sbpcd.c | switch (D_S[d].audio_state) |
D_S | 4087 | drivers/cdrom/sbpcd.c | SC.cdsc_adr=D_S[d].SubQ_ctl_adr; |
D_S | 4088 | drivers/cdrom/sbpcd.c | SC.cdsc_ctrl=D_S[d].SubQ_ctl_adr>>4; |
D_S | 4089 | drivers/cdrom/sbpcd.c | SC.cdsc_trk=bcd2bin(D_S[d].SubQ_trk); |
D_S | 4090 | drivers/cdrom/sbpcd.c | SC.cdsc_ind=bcd2bin(D_S[d].SubQ_pnt_idx); |
D_S | 4093 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(D_S[d].SubQ_run_tot); |
D_S | 4094 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(D_S[d].SubQ_run_trk); |
D_S | 4098 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.minute=(D_S[d].SubQ_run_tot>>16)&0x00FF; |
D_S | 4099 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.second=(D_S[d].SubQ_run_tot>>8)&0x00FF; |
D_S | 4100 | drivers/cdrom/sbpcd.c | SC.cdsc_absaddr.msf.frame=D_S[d].SubQ_run_tot&0x00FF; |
D_S | 4101 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.minute=(D_S[d].SubQ_run_trk>>16)&0x00FF; |
D_S | 4102 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.second=(D_S[d].SubQ_run_trk>>8)&0x00FF; |
D_S | 4103 | drivers/cdrom/sbpcd.c | SC.cdsc_reladdr.msf.frame=D_S[d].SubQ_run_trk&0x00FF; |
D_S | 4117 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 4124 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M2; |
D_S | 4129 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) vfree(D_S[d].aud_buf); |
D_S | 4130 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=NULL; |
D_S | 4131 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=arg; |
D_S | 4132 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_audsiz>0) |
D_S | 4134 | drivers/cdrom/sbpcd.c | D_S[d].aud_buf=(u_char *) vmalloc(D_S[d].sbp_audsiz*CD_FRAMESIZE_RAW); |
D_S | 4135 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) |
D_S | 4137 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"audio buffer (%d frames) not available.\n",D_S[d].sbp_audsiz); |
D_S | 4138 | drivers/cdrom/sbpcd.c | D_S[d].sbp_audsiz=0; |
D_S | 4140 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[d].sbp_audsiz); |
D_S | 4142 | drivers/cdrom/sbpcd.c | return (D_S[d].sbp_audsiz); |
D_S | 4161 | drivers/cdrom/sbpcd.c | if (D_S[d].aud_buf==NULL) return (-EINVAL); |
D_S | 4165 | drivers/cdrom/sbpcd.c | if (read_audio.nframes>D_S[d].sbp_audsiz) return (-EINVAL); |
D_S | 4188 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_AU; |
D_S | 4278 | drivers/cdrom/sbpcd.c | p = D_S[d].aud_buf; |
D_S | 4326 | drivers/cdrom/sbpcd.c | D_S[d].status_bits); |
D_S | 4338 | drivers/cdrom/sbpcd.c | (u_char *) D_S[d].aud_buf, |
D_S | 4345 | drivers/cdrom/sbpcd.c | D_S[d].mode=READ_M1; |
D_S | 4362 | drivers/cdrom/sbpcd.c | lba2msf(D_S[d].lba_multi,&ms_info.addr.msf.minute); |
D_S | 4364 | drivers/cdrom/sbpcd.c | ms_info.addr.lba=D_S[d].lba_multi; |
D_S | 4366 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
D_S | 4396 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 >= D_S[d].sbp_first_frame) && |
D_S | 4397 | drivers/cdrom/sbpcd.c | (CURRENT->sector/4 <= D_S[d].sbp_last_frame) ) |
D_S | 4399 | drivers/cdrom/sbpcd.c | offs = (CURRENT->sector - D_S[d].sbp_first_frame * 4) * 512; |
D_S | 4400 | drivers/cdrom/sbpcd.c | memcpy(CURRENT->buffer, D_S[d].sbp_buf + offs, 512); |
D_S | 4430 | drivers/cdrom/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4439 | drivers/cdrom/sbpcd.c | if (D_S[i].audio_state==audio_playing) goto err_done; |
D_S | 4508 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
D_S | 4509 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
D_S | 4511 | drivers/cdrom/sbpcd.c | if (block+D_S[d].sbp_bufsiz <= D_S[d].CDsize_frm) |
D_S | 4512 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = D_S[d].sbp_bufsiz; |
D_S | 4515 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=D_S[d].CDsize_frm-block; |
D_S | 4517 | drivers/cdrom/sbpcd.c | if (D_S[d].sbp_read_frames < 1) |
D_S | 4520 | drivers/cdrom/sbpcd.c | block, D_S[d].CDsize_frm); |
D_S | 4521 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames=1; |
D_S | 4534 | drivers/cdrom/sbpcd.c | drvcmd[4]=D_S[d].sbp_read_frames>>8; |
D_S | 4535 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0xff; |
D_S | 4541 | drivers/cdrom/sbpcd.c | if (D_S[d].xa_byte==0x20) |
D_S | 4548 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4549 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4554 | drivers/cdrom/sbpcd.c | if (D_S[d].drv_type>=drv_201) |
D_S | 4567 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4568 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4569 | drivers/cdrom/sbpcd.c | drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
D_S | 4576 | drivers/cdrom/sbpcd.c | drvcmd[5]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4577 | drivers/cdrom/sbpcd.c | drvcmd[6]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4583 | drivers/cdrom/sbpcd.c | drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4584 | drivers/cdrom/sbpcd.c | drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4594 | drivers/cdrom/sbpcd.c | drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; |
D_S | 4595 | drivers/cdrom/sbpcd.c | drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; |
D_S | 4629 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) max_latency=9*HZ; |
D_S | 4633 | drivers/cdrom/sbpcd.c | for (frame=0;frame<D_S[d].sbp_read_frames&&!error_flag; frame++) |
D_S | 4643 | drivers/cdrom/sbpcd.c | if (D_S[d].f_multisession) try=maxtim_data*4; |
D_S | 4688 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
D_S | 4697 | drivers/cdrom/sbpcd.c | p = D_S[d].sbp_buf + frame * CD_FRAMESIZE; |
D_S | 4707 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current++; |
D_S | 4779 | drivers/cdrom/sbpcd.c | D_S[d].error_state=infobuf[2]; |
D_S | 4780 | drivers/cdrom/sbpcd.c | D_S[d].b3=infobuf[3]; |
D_S | 4781 | drivers/cdrom/sbpcd.c | D_S[d].b4=infobuf[4]; |
D_S | 4851 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"bad cc_ReadStatus after read: %02X\n", D_S[d].status_bits); |
D_S | 4865 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; /* purge buffer */ |
D_S | 4866 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; |
D_S | 4871 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = CURRENT -> sector / 4; |
D_S | 4872 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = D_S[d].sbp_first_frame + D_S[d].sbp_read_frames - 1; |
D_S | 4886 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4929 | drivers/cdrom/sbpcd.c | if (famT_drive) msg(DBG_TEA,"sbpcd_open: status %02X\n", D_S[d].status_bits); |
D_S | 4933 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 4948 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count+1); |
D_S | 4949 | drivers/cdrom/sbpcd.c | if (++D_S[d].open_count<=1) |
D_S | 4952 | drivers/cdrom/sbpcd.c | D_S[d].open_count=1; |
D_S | 4956 | drivers/cdrom/sbpcd.c | if ((D_S[d].ored_ctl_adr&0x40)==0) |
D_S | 4971 | drivers/cdrom/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1)) |
D_S | 4978 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame=D_S[d].sbp_last_frame=-1; |
D_S | 4987 | drivers/cdrom/sbpcd.c | D_S[d].open_count,D_S[d].open_count-1); |
D_S | 4988 | drivers/cdrom/sbpcd.c | if (D_S[d].open_count>-2) /* CDROMEJECT may have been done */ |
D_S | 4990 | drivers/cdrom/sbpcd.c | if (--D_S[d].open_count<=0) |
D_S | 4993 | drivers/cdrom/sbpcd.c | if (D_S[d].audio_state!=audio_playing) |
D_S | 4994 | drivers/cdrom/sbpcd.c | if (D_S[d].f_eject) cc_SpinDown(); |
D_S | 4995 | drivers/cdrom/sbpcd.c | D_S[d].diskstate_flags &= ~cd_size_bit; |
D_S | 4996 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 5246 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5252 | drivers/cdrom/sbpcd.c | D_S[d].sbp_first_frame = -1; /* First frame in buffer */ |
D_S | 5253 | drivers/cdrom/sbpcd.c | D_S[d].sbp_last_frame = -1; /* Last frame in buffer */ |
D_S | 5254 | drivers/cdrom/sbpcd.c | D_S[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
D_S | 5255 | drivers/cdrom/sbpcd.c | D_S[d].sbp_current = 0; /* Frame being currently read */ |
D_S | 5256 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 5257 | drivers/cdrom/sbpcd.c | D_S[d].frame_size=CD_FRAMESIZE; |
D_S | 5258 | drivers/cdrom/sbpcd.c | D_S[d].f_eject=0; |
D_S | 5260 | drivers/cdrom/sbpcd.c | if (!fam0_drive) D_S[d].f_eject=1; |
D_S | 5278 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
D_S | 5279 | drivers/cdrom/sbpcd.c | if (D_S[d].error_byte==aud_12) |
D_S | 5288 | drivers/cdrom/sbpcd.c | D_S[d].error_byte); |
D_S | 5295 | drivers/cdrom/sbpcd.c | if (i>=0) D_S[d].CD_changed=1; |
D_S | 5323 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5328 | drivers/cdrom/sbpcd.c | D_S[j].aud_buf=NULL; |
D_S | 5329 | drivers/cdrom/sbpcd.c | D_S[j].sbp_audsiz=0; |
D_S | 5330 | drivers/cdrom/sbpcd.c | D_S[j].sbp_bufsiz=SBP_BUFFER_FRAMES; |
D_S | 5331 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_type&drv_fam1) |
D_S | 5332 | drivers/cdrom/sbpcd.c | if (READ_AUDIO>0) D_S[j].sbp_audsiz=READ_AUDIO; |
D_S | 5333 | drivers/cdrom/sbpcd.c | D_S[j].sbp_buf=(u_char *) vmalloc(D_S[j].sbp_bufsiz*CD_FRAMESIZE); |
D_S | 5334 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_buf==NULL) |
D_S | 5336 | drivers/cdrom/sbpcd.c | msg(DBG_INF,"data buffer (%d frames) not available.\n",D_S[j].sbp_bufsiz); |
D_S | 5342 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_audsiz>0) |
D_S | 5344 | drivers/cdrom/sbpcd.c | D_S[j].aud_buf=(u_char *) vmalloc(D_S[j].sbp_audsiz*CD_FRAMESIZE_RAW); |
D_S | 5345 | drivers/cdrom/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 | 5346 | drivers/cdrom/sbpcd.c | else msg(DBG_INF,"audio buffer size: %d frames.\n",D_S[j].sbp_audsiz); |
D_S | 5386 | drivers/cdrom/sbpcd.c | if (D_S[j].drv_id==-1) continue; |
D_S | 5387 | drivers/cdrom/sbpcd.c | vfree(D_S[j].sbp_buf); |
D_S | 5388 | drivers/cdrom/sbpcd.c | if (D_S[j].sbp_audsiz>0) vfree(D_S[j].aud_buf); |
D_S | 5407 | drivers/cdrom/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1) ) |
D_S | 5417 | drivers/cdrom/sbpcd.c | msg(DBG_CHK,"media_check: %02X\n",D_S[d].status_bits); |
D_S | 5423 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) msg(DBG_CHK,"media_check: \"changed\" assumed.\n"); |
D_S | 5428 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 5433 | drivers/cdrom/sbpcd.c | D_S[d].open_count=0; |
D_S | 5434 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=0xFF; |
D_S | 5439 | drivers/cdrom/sbpcd.c | if (D_S[d].CD_changed==0xFF) |
D_S | 5441 | drivers/cdrom/sbpcd.c | D_S[d].CD_changed=1; |
D_S | 225 | include/linux/sbpcd.h | #define upc_valid (D_S[d].diskstate_flags&upc_bit) |
D_S | 226 | include/linux/sbpcd.h | #define volume_valid (D_S[d].diskstate_flags&volume_bit) |
D_S | 227 | include/linux/sbpcd.h | #define toc_valid (D_S[d].diskstate_flags&toc_bit) |
D_S | 228 | include/linux/sbpcd.h | #define cd_size_valid (D_S[d].diskstate_flags&cd_size_bit) |
D_S | 229 | include/linux/sbpcd.h | #define subq_valid (D_S[d].diskstate_flags&subq_bit) |
D_S | 230 | include/linux/sbpcd.h | #define frame_size_valid (D_S[d].diskstate_flags&frame_size_bit) |
D_S | 307 | include/linux/sbpcd.h | #define st_door_closed (D_S[d].status_bits&p_door_closed) |
D_S | 308 | include/linux/sbpcd.h | #define st_caddy_in (D_S[d].status_bits&p_caddy_in) |
D_S | 309 | include/linux/sbpcd.h | #define st_spinning (D_S[d].status_bits&p_spinning) |
D_S | 310 | include/linux/sbpcd.h | #define st_check (D_S[d].status_bits&p_check) |
D_S | 311 | include/linux/sbpcd.h | #define st_busy (D_S[d].status_bits&p_busy_new) |
D_S | 312 | include/linux/sbpcd.h | #define st_door_locked (D_S[d].status_bits&p_door_locked) |
D_S | 313 | include/linux/sbpcd.h | #define st_diskok (D_S[d].status_bits&p_disk_ok) |
D_S | 355 | include/linux/sbpcd.h | #define fam0_drive (D_S[d].drv_type&drv_fam0) |
D_S | 356 | include/linux/sbpcd.h | #define famL_drive (D_S[d].drv_type&drv_famL) |
D_S | 357 | include/linux/sbpcd.h | #define famV_drive (D_S[d].drv_type&drv_famV) |
D_S | 358 | include/linux/sbpcd.h | #define fam1_drive (D_S[d].drv_type&drv_fam1) |
D_S | 359 | include/linux/sbpcd.h | #define fam2_drive (D_S[d].drv_type&drv_fam2) |
D_S | 360 | include/linux/sbpcd.h | #define famT_drive (D_S[d].drv_type&drv_famT) |
D_S | 361 | include/linux/sbpcd.h | #define fam0L_drive (D_S[d].drv_type&(drv_fam0|drv_famL)) |
D_S | 362 | include/linux/sbpcd.h | #define fam0V_drive (D_S[d].drv_type&(drv_fam0|drv_famV)) |
D_S | 363 | include/linux/sbpcd.h | #define famLV_drive (D_S[d].drv_type&(drv_famL|drv_famV)) |
D_S | 364 | include/linux/sbpcd.h | #define fam0LV_drive (D_S[d].drv_type&(drv_fam0|drv_famL|drv_famV)) |
D_S | 365 | include/linux/sbpcd.h | #define fam1L_drive (D_S[d].drv_type&(drv_fam1|drv_famL)) |
D_S | 366 | include/linux/sbpcd.h | #define fam1V_drive (D_S[d].drv_type&(drv_fam1|drv_famV)) |
D_S | 367 | include/linux/sbpcd.h | #define fam1LV_drive (D_S[d].drv_type&(drv_fam1|drv_famL|drv_famV)) |
D_S | 368 | include/linux/sbpcd.h | #define fam01_drive (D_S[d].drv_type&(drv_fam0|drv_fam1)) |
D_S | 369 | include/linux/sbpcd.h | #define fam12_drive (D_S[d].drv_type&(drv_fam1|drv_fam2)) |
D_S | 370 | include/linux/sbpcd.h | #define fam2T_drive (D_S[d].drv_type&(drv_fam2|drv_famT)) |