tag | line | file | source code |
DriveStruct | 640 | drivers/block/sbpcd.c | } DriveStruct[NR_SBPCD]; |
DriveStruct | 800 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
DriveStruct | 964 | drivers/block/sbpcd.c | DriveStruct[d].status_byte=0; |
DriveStruct | 965 | drivers/block/sbpcd.c | if (st&p_caddin_old) DriveStruct[d].status_byte |= p_door_closed|p_caddy_in; |
DriveStruct | 966 | drivers/block/sbpcd.c | if (st&p_spinning) DriveStruct[d].status_byte |= p_spinning; |
DriveStruct | 967 | drivers/block/sbpcd.c | if (st&p_check) DriveStruct[d].status_byte |= p_check; |
DriveStruct | 968 | drivers/block/sbpcd.c | if (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new; |
DriveStruct | 969 | drivers/block/sbpcd.c | if (st&p_disk_ok) DriveStruct[d].status_byte |= p_disk_ok; |
DriveStruct | 973 | drivers/block/sbpcd.c | DriveStruct[d].status_byte=0; |
DriveStruct | 974 | drivers/block/sbpcd.c | if (st&p_caddin_old) DriveStruct[d].status_byte |= p_disk_ok|p_caddy_in; |
DriveStruct | 975 | drivers/block/sbpcd.c | if (st&p_spinning) DriveStruct[d].status_byte |= p_spinning; |
DriveStruct | 976 | drivers/block/sbpcd.c | if (st&p_check) DriveStruct[d].status_byte |= p_check; |
DriveStruct | 977 | drivers/block/sbpcd.c | if (st&p_busy_old) DriveStruct[d].status_byte |= p_busy_new; |
DriveStruct | 978 | drivers/block/sbpcd.c | if (st&p_lcs_door_closed) DriveStruct[d].status_byte |= p_door_closed; |
DriveStruct | 979 | drivers/block/sbpcd.c | if (st&p_lcs_door_locked) DriveStruct[d].status_byte |= p_door_locked; |
DriveStruct | 983 | drivers/block/sbpcd.c | DriveStruct[d].status_byte=st; |
DriveStruct | 1091 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=0; |
DriveStruct | 1096 | drivers/block/sbpcd.c | DriveStruct[d].error_byte=infobuf[i]; |
DriveStruct | 1097 | drivers/block/sbpcd.c | DPRINTF((DBG_ERR,"SBPCD: xx_ReadError: infobuf[%d] is %d (%02X)\n",i,DriveStruct[d].error_byte,DriveStruct[d].error_byte)); |
DriveStruct | 1128 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to CDi_stat_loop.\n")); |
DriveStruct | 1137 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadStatus.\n")); |
DriveStruct | 1143 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to ResponseStatus.\n")); |
DriveStruct | 1160 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to xx_ReadError.\n")); |
DriveStruct | 1162 | drivers/block/sbpcd.c | if (DriveStruct[d].in_SpinUp != 0) DPRINTF((DBG_SPI,"SBPCD: to cmd_out OK.\n")); |
DriveStruct | 1218 | drivers/block/sbpcd.c | DriveStruct[d].in_SpinUp = 1; |
DriveStruct | 1243 | drivers/block/sbpcd.c | DriveStruct[d].in_SpinUp = 0; |
DriveStruct | 1324 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~volume_bit; |
DriveStruct | 1326 | drivers/block/sbpcd.c | channel0=DriveStruct[d].vol_chan0; |
DriveStruct | 1327 | drivers/block/sbpcd.c | volume0=DriveStruct[d].vol_ctrl0; |
DriveStruct | 1328 | drivers/block/sbpcd.c | channel1=control1=DriveStruct[d].vol_chan1; |
DriveStruct | 1329 | drivers/block/sbpcd.c | volume1=value1=DriveStruct[d].vol_ctrl1; |
DriveStruct | 1332 | drivers/block/sbpcd.c | if (((DriveStruct[d].drv_options&audio_mono)!=0)&&(DriveStruct[d].drv_type>=drv_211)) |
DriveStruct | 1401 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_300) |
DriveStruct | 1413 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type<drv_211) |
DriveStruct | 1446 | drivers/block/sbpcd.c | else if (DriveStruct[d].drv_type<drv_201) volume0=volume1=value0; |
DriveStruct | 1448 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
DriveStruct | 1453 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_211) |
DriveStruct | 1472 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= volume_bit; |
DriveStruct | 1517 | drivers/block/sbpcd.c | if (DriveStruct[d].error_byte!=aud_12) return -1; |
DriveStruct | 1525 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&(speed_auto|speed_300|speed_150))) return (0); |
DriveStruct | 1527 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&speed_auto)) |
DriveStruct | 1530 | drivers/block/sbpcd.c | if (!(DriveStruct[d].drv_options&speed_300)) speed=0; |
DriveStruct | 1550 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
DriveStruct | 1674 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~subq_bit; |
DriveStruct | 1717 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_ctl_adr=DriveStruct[d].SubQ_trk=DriveStruct[d].SubQ_pnt_idx=DriveStruct[d].SubQ_whatisthis=0; |
DriveStruct | 1718 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=DriveStruct[d].SubQ_run_trk=0; |
DriveStruct | 1722 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_ctl_adr=swap_nibbles(infobuf[1]); |
DriveStruct | 1723 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_trk=byt2bcd(infobuf[2]); |
DriveStruct | 1724 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_pnt_idx=byt2bcd(infobuf[3]); |
DriveStruct | 1727 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_tot=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
DriveStruct | 1730 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_run_trk=make32(make16(0,infobuf[i]),make16(infobuf[i+1],infobuf[i+2])); /* msf-bin */ |
DriveStruct | 1731 | drivers/block/sbpcd.c | DriveStruct[d].SubQ_whatisthis=infobuf[i+3]; |
DriveStruct | 1732 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= subq_bit; |
DriveStruct | 1741 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~frame_size_bit; |
DriveStruct | 1765 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].sense_byte=infobuf[i++]; |
DriveStruct | 1766 | drivers/block/sbpcd.c | else if (fam0L_drive) DriveStruct[d].sense_byte=0; |
DriveStruct | 1770 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=make16(infobuf[i],infobuf[i+1]); |
DriveStruct | 1779 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= frame_size_bit; |
DriveStruct | 1789 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~frame_size_bit; |
DriveStruct | 1791 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=framesize; |
DriveStruct | 1792 | drivers/block/sbpcd.c | if (framesize==CD_FRAMESIZE_RAW) DriveStruct[d].sense_byte=0x82; |
DriveStruct | 1793 | drivers/block/sbpcd.c | else DriveStruct[d].sense_byte=0x00; |
DriveStruct | 1796 | drivers/block/sbpcd.c | DriveStruct[d].sense_byte, DriveStruct[d].frame_size)); |
DriveStruct | 1802 | drivers/block/sbpcd.c | drvcmd[2]=DriveStruct[d].sense_byte; |
DriveStruct | 1803 | drivers/block/sbpcd.c | drvcmd[3]=(DriveStruct[d].frame_size>>8)&0xFF; |
DriveStruct | 1804 | drivers/block/sbpcd.c | drvcmd[4]=DriveStruct[d].frame_size&0xFF; |
DriveStruct | 1811 | drivers/block/sbpcd.c | drvcmd[2]=(DriveStruct[d].frame_size>>8)&0xFF; |
DriveStruct | 1812 | drivers/block/sbpcd.c | drvcmd[3]=DriveStruct[d].frame_size&0xFF; |
DriveStruct | 1826 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= frame_size_bit; |
DriveStruct | 1837 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~volume_bit; |
DriveStruct | 1909 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
DriveStruct | 1911 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type<drv_300) |
DriveStruct | 1916 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_211) |
DriveStruct | 1938 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan0=chan0; |
DriveStruct | 1939 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl0=vol0; |
DriveStruct | 1940 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan1=chan1; |
DriveStruct | 1941 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl1=vol1; |
DriveStruct | 1942 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan2=2; |
DriveStruct | 1943 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl2=0xFF; |
DriveStruct | 1944 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan3=3; |
DriveStruct | 1945 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl3=0xFF; |
DriveStruct | 1946 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= volume_bit; |
DriveStruct | 1956 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~cd_size_bit; |
DriveStruct | 1985 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].CDsize_frm=msf2blk(make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])))+CD_BLOCK_OFFSET; |
DriveStruct | 1986 | drivers/block/sbpcd.c | else if (fam0_drive) DriveStruct[d].CDsize_frm=make32(make16(0,infobuf[0]),make16(infobuf[1],infobuf[2])); |
DriveStruct | 1987 | drivers/block/sbpcd.c | else if (fam2_drive) DriveStruct[d].CDsize_frm=make32(make16(infobuf[0],infobuf[1]),make16(infobuf[2],infobuf[3])); |
DriveStruct | 1988 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= cd_size_bit; |
DriveStruct | 1996 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~toc_bit; |
DriveStruct | 2016 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=0; |
DriveStruct | 2030 | drivers/block/sbpcd.c | DriveStruct[d].xa_byte=infobuf[0]; |
DriveStruct | 2033 | drivers/block/sbpcd.c | DriveStruct[d].first_session=infobuf[1]; |
DriveStruct | 2034 | drivers/block/sbpcd.c | DriveStruct[d].last_session=infobuf[2]; |
DriveStruct | 2035 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track=infobuf[3]; |
DriveStruct | 2036 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track=infobuf[4]; |
DriveStruct | 2037 | drivers/block/sbpcd.c | if (DriveStruct[d].first_session!=DriveStruct[d].last_session) |
DriveStruct | 2039 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
DriveStruct | 2040 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7]))); |
DriveStruct | 2043 | drivers/block/sbpcd.c | if (DriveStruct[d].first_session!=DriveStruct[d].last_session) |
DriveStruct | 2045 | drivers/block/sbpcd.c | if (DriveStruct[d].last_session<=20) |
DriveStruct | 2046 | drivers/block/sbpcd.c | zwanzig=DriveStruct[d].last_session+1; |
DriveStruct | 2048 | drivers/block/sbpcd.c | for (count=DriveStruct[d].first_session;count<zwanzig;count++) |
DriveStruct | 2058 | drivers/block/sbpcd.c | DriveStruct[d].msf_multi_n[count]=make32(make16(0,infobuf[5]),make16(infobuf[6],infobuf[7])); |
DriveStruct | 2060 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= multisession_bit; |
DriveStruct | 2071 | drivers/block/sbpcd.c | DriveStruct[d].size_msf=make32(make16(0,infobuf[2]),make16(infobuf[3],infobuf[4])); |
DriveStruct | 2072 | drivers/block/sbpcd.c | DriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf); |
DriveStruct | 2076 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track=infobuf[1]; |
DriveStruct | 2077 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track=infobuf[2]; |
DriveStruct | 2078 | drivers/block/sbpcd.c | DriveStruct[d].size_msf=make32(make16(0,infobuf[3]),make16(infobuf[4],infobuf[5])); |
DriveStruct | 2079 | drivers/block/sbpcd.c | DriveStruct[d].size_blk=msf2blk(DriveStruct[d].size_msf); |
DriveStruct | 2080 | drivers/block/sbpcd.c | if (famL_drive) DriveStruct[d].CDsize_frm=DriveStruct[d].size_blk+1; |
DriveStruct | 2082 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= toc_bit; |
DriveStruct | 2084 | drivers/block/sbpcd.c | DriveStruct[d].xa_byte, |
DriveStruct | 2085 | drivers/block/sbpcd.c | DriveStruct[d].n_first_track, |
DriveStruct | 2086 | drivers/block/sbpcd.c | DriveStruct[d].n_last_track, |
DriveStruct | 2087 | drivers/block/sbpcd.c | DriveStruct[d].size_msf)); |
DriveStruct | 2130 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_nixbyte=infobuf[0]; |
DriveStruct | 2133 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_ctl_adr=swap_nibbles(infobuf[i++]); |
DriveStruct | 2136 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_number=infobuf[i++]; |
DriveStruct | 2137 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_format=infobuf[i]; |
DriveStruct | 2142 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address=make32(make16(0,infobuf[i]), |
DriveStruct | 2145 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_nixbyte, DriveStruct[d].TocEnt_ctl_adr, |
DriveStruct | 2146 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_number, DriveStruct[d].TocEnt_format, |
DriveStruct | 2147 | drivers/block/sbpcd.c | DriveStruct[d].TocEnt_address)); |
DriveStruct | 2178 | drivers/block/sbpcd.c | if (fam1_drive) DriveStruct[d].UPC_buf[i]=swap_nibbles(*p++); |
DriveStruct | 2181 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i]=((*p++)<<4)&0xFF; |
DriveStruct | 2182 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[i] |= *p++; |
DriveStruct | 2189 | drivers/block/sbpcd.c | DriveStruct[d].UPC_buf[6] &= 0xF0; |
DriveStruct | 2200 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~upc_bit; |
DriveStruct | 2257 | drivers/block/sbpcd.c | DriveStruct[d].UPC_ctl_adr=0; |
DriveStruct | 2263 | drivers/block/sbpcd.c | DriveStruct[d].UPC_ctl_adr = (DriveStruct[d].TocEnt_ctl_adr & 0xF0) | 0x02; |
DriveStruct | 2267 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"(%02X) ", DriveStruct[d].UPC_ctl_adr)); |
DriveStruct | 2270 | drivers/block/sbpcd.c | DPRINTF((DBG_UPC,"%02X ", DriveStruct[d].UPC_buf[i])); |
DriveStruct | 2274 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= upc_bit; |
DriveStruct | 2283 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=0; |
DriveStruct | 2284 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=0; |
DriveStruct | 2296 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
DriveStruct | 2297 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[1]), |
DriveStruct | 2300 | drivers/block/sbpcd.c | DriveStruct[d].last_redirect=19; |
DriveStruct | 2305 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi)); |
DriveStruct | 2317 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi=msf2blk(make32(make16(0,infobuf[5]), |
DriveStruct | 2322 | drivers/block/sbpcd.c | DriveStruct[d].lba_multi)); |
DriveStruct | 2323 | drivers/block/sbpcd.c | if (DriveStruct[d].lba_multi>200) |
DriveStruct | 2325 | drivers/block/sbpcd.c | DPRINTF((DBG_MUL,"SBPCD: MultiSession base: %06X\n", DriveStruct[d].lba_multi)); |
DriveStruct | 2326 | drivers/block/sbpcd.c | DriveStruct[d].f_multisession=1; |
DriveStruct | 2328 | drivers/block/sbpcd.c | DriveStruct[d].last_redirect=19; |
DriveStruct | 2347 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_playing) return (-ENODATA); |
DriveStruct | 2358 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=CD_FRAMESIZE_SUB; |
DriveStruct | 2526 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=0; |
DriveStruct | 2561 | drivers/block/sbpcd.c | OUT(CDo_enable,DriveStruct[d].drv_sel); |
DriveStruct | 2582 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
DriveStruct | 2583 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='D'; |
DriveStruct | 2584 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='2'; |
DriveStruct | 2585 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='0'; |
DriveStruct | 2586 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]='0'; |
DriveStruct | 2587 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
DriveStruct | 2588 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=infobuf[i++]; |
DriveStruct | 2589 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[7]=0; |
DriveStruct | 2590 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam2; |
DriveStruct | 2597 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
DriveStruct | 2598 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='D'; |
DriveStruct | 2599 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='-'; |
DriveStruct | 2600 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='5'; |
DriveStruct | 2601 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]='5'; |
DriveStruct | 2602 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]='A'; |
DriveStruct | 2603 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=infobuf[i++]; |
DriveStruct | 2604 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[7]=infobuf[i++]; |
DriveStruct | 2605 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[8]=0; |
DriveStruct | 2607 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_famT; /* assumed, not sure here */ |
DriveStruct | 2611 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
DriveStruct | 2642 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
DriveStruct | 2643 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='R'; |
DriveStruct | 2644 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='-'; |
DriveStruct | 2645 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='5'; |
DriveStruct | 2646 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]=infobuf[i++]; |
DriveStruct | 2647 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]=infobuf[i++]; |
DriveStruct | 2648 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=0; |
DriveStruct | 2649 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam1; |
DriveStruct | 2651 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
DriveStruct | 2656 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[0]='C'; |
DriveStruct | 2657 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[1]='R'; |
DriveStruct | 2658 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[2]='-'; |
DriveStruct | 2659 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[3]='5'; |
DriveStruct | 2660 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[4]='2'; |
DriveStruct | 2661 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[5]='x'; |
DriveStruct | 2662 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[6]=0; |
DriveStruct | 2663 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_fam0; |
DriveStruct | 2666 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
DriveStruct | 2672 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[j]=infobuf[j]; |
DriveStruct | 2673 | drivers/block/sbpcd.c | DriveStruct[d].drive_model[8]=0; |
DriveStruct | 2674 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_famL; |
DriveStruct | 2678 | drivers/block/sbpcd.c | if (!DriveStruct[d].drv_type) |
DriveStruct | 2683 | drivers/block/sbpcd.c | for (j=0;j<4;j++) DriveStruct[d].firmware_version[j]=infobuf[i+j]; |
DriveStruct | 2689 | drivers/block/sbpcd.c | if (DriveStruct[d].firmware_version[j]!=lcs_firm[i][j]) break; |
DriveStruct | 2693 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=drv_260; |
DriveStruct | 2700 | drivers/block/sbpcd.c | DriveStruct[d].drv_type=0; |
DriveStruct | 2705 | drivers/block/sbpcd.c | j = (DriveStruct[d].firmware_version[0] & 0x0F) * 100 + |
DriveStruct | 2706 | drivers/block/sbpcd.c | (DriveStruct[d].firmware_version[2] & 0x0F) *10 + |
DriveStruct | 2707 | drivers/block/sbpcd.c | (DriveStruct[d].firmware_version[3] & 0x0F); |
DriveStruct | 2710 | drivers/block/sbpcd.c | if (j<200) DriveStruct[d].drv_type=drv_199; |
DriveStruct | 2711 | drivers/block/sbpcd.c | else if (j<201) DriveStruct[d].drv_type=drv_200; |
DriveStruct | 2712 | drivers/block/sbpcd.c | else if (j<210) DriveStruct[d].drv_type=drv_201; |
DriveStruct | 2713 | drivers/block/sbpcd.c | else if (j<211) DriveStruct[d].drv_type=drv_210; |
DriveStruct | 2714 | drivers/block/sbpcd.c | else if (j<300) DriveStruct[d].drv_type=drv_211; |
DriveStruct | 2715 | drivers/block/sbpcd.c | else if (j>=300) DriveStruct[d].drv_type=drv_300; |
DriveStruct | 2719 | drivers/block/sbpcd.c | if (j<100) DriveStruct[d].drv_type=drv_099; |
DriveStruct | 2720 | drivers/block/sbpcd.c | else DriveStruct[d].drv_type=drv_100; |
DriveStruct | 2725 | drivers/block/sbpcd.c | DriveStruct[d].firmware_version); |
DriveStruct | 2731 | drivers/block/sbpcd.c | DPRINTF((DBG_LCS,"SBPCD: drive type %02X\n",DriveStruct[d].drv_type)); |
DriveStruct | 2739 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_id!=-1) |
DriveStruct | 2741 | drivers/block/sbpcd.c | OUT(CDo_enable,DriveStruct[d].drv_sel); |
DriveStruct | 2742 | drivers/block/sbpcd.c | DPRINTF((DBG_DID,"SBPCD: drive %d (ID=%d) activated.\n", i, DriveStruct[d].drv_id)); |
DriveStruct | 2761 | drivers/block/sbpcd.c | DriveStruct[ndrives].drv_id=j; |
DriveStruct | 2762 | drivers/block/sbpcd.c | if (sbpro_type==1) DriveStruct[ndrives].drv_sel=(j&0x01)<<1|(j&0x02)>>1; |
DriveStruct | 2763 | drivers/block/sbpcd.c | else DriveStruct[ndrives].drv_sel=j; |
DriveStruct | 2770 | drivers/block/sbpcd.c | DriveStruct[d].drv_options=drv_pattern[j]; |
DriveStruct | 2771 | drivers/block/sbpcd.c | if (fam0L_drive) DriveStruct[d].drv_options&=~(speed_auto|speed_300|speed_150); |
DriveStruct | 2773 | drivers/block/sbpcd.c | DriveStruct[d].drv_id, |
DriveStruct | 2774 | drivers/block/sbpcd.c | DriveStruct[d].drive_model, |
DriveStruct | 2775 | drivers/block/sbpcd.c | DriveStruct[d].firmware_version); |
DriveStruct | 2781 | drivers/block/sbpcd.c | for (j=ndrives;j<NR_SBPCD;j++) DriveStruct[j].drv_id=-1; |
DriveStruct | 2920 | drivers/block/sbpcd.c | i=msf2blk(DriveStruct[d].pos_audio_end)-1; |
DriveStruct | 2929 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~toc_bit; |
DriveStruct | 2930 | drivers/block/sbpcd.c | DriveStruct[d].ored_ctl_adr=0; |
DriveStruct | 2931 | drivers/block/sbpcd.c | for (j=DriveStruct[d].n_first_track;j<=DriveStruct[d].n_last_track;j++) |
DriveStruct | 2935 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=DriveStruct[d].TocEnt_nixbyte; |
DriveStruct | 2936 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=DriveStruct[d].TocEnt_ctl_adr; |
DriveStruct | 2937 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=DriveStruct[d].TocEnt_number; |
DriveStruct | 2938 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=DriveStruct[d].TocEnt_format; |
DriveStruct | 2939 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].TocEnt_address; |
DriveStruct | 2940 | drivers/block/sbpcd.c | DriveStruct[d].ored_ctl_adr |= DriveStruct[d].TocEnt_ctl_adr; |
DriveStruct | 2943 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].nixbyte=0; |
DriveStruct | 2944 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].ctl_adr=0; |
DriveStruct | 2945 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].number=CDROM_LEADOUT; |
DriveStruct | 2946 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].format=0; |
DriveStruct | 2947 | drivers/block/sbpcd.c | DriveStruct[d].TocBuffer[j].address=DriveStruct[d].size_msf; |
DriveStruct | 2949 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags |= toc_bit; |
DriveStruct | 2957 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
DriveStruct | 3001 | drivers/block/sbpcd.c | i=xx_ReadTocEntry(DriveStruct[d].n_first_track); |
DriveStruct | 3014 | drivers/block/sbpcd.c | if ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */ |
DriveStruct | 3041 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) |
DriveStruct | 3045 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
DriveStruct | 3047 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3058 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
DriveStruct | 3069 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
DriveStruct | 3071 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3079 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_pausing) |
DriveStruct | 3087 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) seek_pos_audio_end(); |
DriveStruct | 3088 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3097 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
DriveStruct | 3099 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3113 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) return (-EINVAL); |
DriveStruct | 3219 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
DriveStruct | 3250 | drivers/block/sbpcd.c | switch (DriveStruct[d].audio_state) |
DriveStruct | 3259 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot; |
DriveStruct | 3260 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_pausing; |
DriveStruct | 3263 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
DriveStruct | 3275 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state!=audio_pausing) return -EINVAL; |
DriveStruct | 3277 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start, |
DriveStruct | 3278 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end); |
DriveStruct | 3281 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
DriveStruct | 3286 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) |
DriveStruct | 3292 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].SubQ_run_tot; |
DriveStruct | 3293 | drivers/block/sbpcd.c | i=xx_Seek(DriveStruct[d].pos_audio_start,1); |
DriveStruct | 3299 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start = (msf.cdmsf_min0<<16) | |
DriveStruct | 3302 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end = (msf.cdmsf_min1<<16) | |
DriveStruct | 3306 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end)); |
DriveStruct | 3307 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
DriveStruct | 3312 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
DriveStruct | 3317 | drivers/block/sbpcd.c | if (DriveStruct[d].audio_state==audio_playing) |
DriveStruct | 3332 | drivers/block/sbpcd.c | if (ti.cdti_trk0<DriveStruct[d].n_first_track) return (-EINVAL); |
DriveStruct | 3333 | drivers/block/sbpcd.c | if (ti.cdti_trk0>DriveStruct[d].n_last_track) return (-EINVAL); |
DriveStruct | 3335 | drivers/block/sbpcd.c | if (ti.cdti_trk1>DriveStruct[d].n_last_track) ti.cdti_trk1=DriveStruct[d].n_last_track; |
DriveStruct | 3336 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_start=DriveStruct[d].TocBuffer[ti.cdti_trk0].address; |
DriveStruct | 3337 | drivers/block/sbpcd.c | DriveStruct[d].pos_audio_end=DriveStruct[d].TocBuffer[ti.cdti_trk1+1].address; |
DriveStruct | 3338 | drivers/block/sbpcd.c | i=xx_PlayAudio(DriveStruct[d].pos_audio_start,DriveStruct[d].pos_audio_end); |
DriveStruct | 3342 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=audio_playing; |
DriveStruct | 3347 | drivers/block/sbpcd.c | tochdr.cdth_trk0=DriveStruct[d].n_first_track; |
DriveStruct | 3348 | drivers/block/sbpcd.c | tochdr.cdth_trk1=DriveStruct[d].n_last_track; |
DriveStruct | 3360 | drivers/block/sbpcd.c | if (i==CDROM_LEADOUT) i=DriveStruct[d].n_last_track+1; |
DriveStruct | 3361 | drivers/block/sbpcd.c | else if (i<DriveStruct[d].n_first_track||i>DriveStruct[d].n_last_track) return (-EINVAL); |
DriveStruct | 3362 | drivers/block/sbpcd.c | tocentry.cdte_adr=DriveStruct[d].TocBuffer[i].ctl_adr&0x0F; |
DriveStruct | 3363 | drivers/block/sbpcd.c | tocentry.cdte_ctrl=(DriveStruct[d].TocBuffer[i].ctl_adr>>4)&0x0F; |
DriveStruct | 3364 | drivers/block/sbpcd.c | tocentry.cdte_datamode=DriveStruct[d].TocBuffer[i].format; |
DriveStruct | 3366 | drivers/block/sbpcd.c | { tocentry.cdte_addr.msf.minute=(DriveStruct[d].TocBuffer[i].address>>16)&0x00FF; |
DriveStruct | 3367 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.second=(DriveStruct[d].TocBuffer[i].address>>8)&0x00FF; |
DriveStruct | 3368 | drivers/block/sbpcd.c | tocentry.cdte_addr.msf.frame=DriveStruct[d].TocBuffer[i].address&0x00FF; |
DriveStruct | 3371 | drivers/block/sbpcd.c | tocentry.cdte_addr.lba=msf2blk(DriveStruct[d].TocBuffer[i].address); |
DriveStruct | 3381 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3387 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3395 | drivers/block/sbpcd.c | DriveStruct[d].open_count=0; /* to get it locked next time again */ |
DriveStruct | 3399 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
DriveStruct | 3400 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags=0; |
DriveStruct | 3401 | drivers/block/sbpcd.c | DriveStruct[d].audio_state=0; |
DriveStruct | 3407 | drivers/block/sbpcd.c | DriveStruct[d].f_eject=arg; |
DriveStruct | 3415 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan0=0; |
DriveStruct | 3416 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl0=volctrl.channel0; |
DriveStruct | 3417 | drivers/block/sbpcd.c | DriveStruct[d].vol_chan1=1; |
DriveStruct | 3418 | drivers/block/sbpcd.c | DriveStruct[d].vol_ctrl1=volctrl.channel1; |
DriveStruct | 3430 | drivers/block/sbpcd.c | switch (DriveStruct[d].audio_state) |
DriveStruct | 3442 | drivers/block/sbpcd.c | SC.cdsc_adr=DriveStruct[d].SubQ_ctl_adr; |
DriveStruct | 3443 | drivers/block/sbpcd.c | SC.cdsc_ctrl=DriveStruct[d].SubQ_ctl_adr>>4; |
DriveStruct | 3444 | drivers/block/sbpcd.c | SC.cdsc_trk=bcd2bin(DriveStruct[d].SubQ_trk); |
DriveStruct | 3445 | drivers/block/sbpcd.c | SC.cdsc_ind=bcd2bin(DriveStruct[d].SubQ_pnt_idx); |
DriveStruct | 3448 | drivers/block/sbpcd.c | SC.cdsc_absaddr.lba=msf2blk(DriveStruct[d].SubQ_run_tot); |
DriveStruct | 3449 | drivers/block/sbpcd.c | SC.cdsc_reladdr.lba=msf2blk(DriveStruct[d].SubQ_run_trk); |
DriveStruct | 3453 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.minute=(DriveStruct[d].SubQ_run_tot>>16)&0x00FF; |
DriveStruct | 3454 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.second=(DriveStruct[d].SubQ_run_tot>>8)&0x00FF; |
DriveStruct | 3455 | drivers/block/sbpcd.c | SC.cdsc_absaddr.msf.frame=DriveStruct[d].SubQ_run_tot&0x00FF; |
DriveStruct | 3456 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.minute=(DriveStruct[d].SubQ_run_trk>>16)&0x00FF; |
DriveStruct | 3457 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.second=(DriveStruct[d].SubQ_run_trk>>8)&0x00FF; |
DriveStruct | 3458 | drivers/block/sbpcd.c | SC.cdsc_reladdr.msf.frame=DriveStruct[d].SubQ_run_trk&0x00FF; |
DriveStruct | 3472 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
DriveStruct | 3479 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M2; |
DriveStruct | 3499 | drivers/block/sbpcd.c | if (DriveStruct[d].aud_buf==NULL) return (-EINVAL); |
DriveStruct | 3524 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_AU; |
DriveStruct | 3602 | drivers/block/sbpcd.c | p = DriveStruct[d].aud_buf; |
DriveStruct | 3655 | drivers/block/sbpcd.c | DriveStruct[d].status_byte)); |
DriveStruct | 3667 | drivers/block/sbpcd.c | (u_char *) DriveStruct[d].aud_buf, |
DriveStruct | 3674 | drivers/block/sbpcd.c | DriveStruct[d].mode=READ_M1; |
DriveStruct | 3691 | drivers/block/sbpcd.c | lba2msf(DriveStruct[d].lba_multi,&ms_info.addr.msf.minute); |
DriveStruct | 3693 | drivers/block/sbpcd.c | ms_info.addr.lba=DriveStruct[d].lba_multi; |
DriveStruct | 3695 | drivers/block/sbpcd.c | if (DriveStruct[d].f_multisession) ms_info.xa_flag=1; /* valid redirection address */ |
DriveStruct | 3725 | drivers/block/sbpcd.c | (CURRENT->sector/4 >= DriveStruct[d].sbp_first_frame) && |
DriveStruct | 3726 | drivers/block/sbpcd.c | (CURRENT->sector/4 <= DriveStruct[d].sbp_last_frame) ) |
DriveStruct | 3728 | drivers/block/sbpcd.c | offs = (CURRENT->sector - DriveStruct[d].sbp_first_frame * 4) * 512; |
DriveStruct | 3729 | drivers/block/sbpcd.c | memcpy(CURRENT->buffer, DriveStruct[d].sbp_buf + offs, 512); |
DriveStruct | 3753 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
DriveStruct | 3793 | drivers/block/sbpcd.c | if ((fam0L_drive) && (DriveStruct[d].xa_byte==0x20)) /* XA disk with old drive */ |
DriveStruct | 3843 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1; /* purge buffer */ |
DriveStruct | 3851 | drivers/block/sbpcd.c | if (DriveStruct[d].f_multisession) |
DriveStruct | 3854 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
DriveStruct | 3856 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
DriveStruct | 3859 | drivers/block/sbpcd.c | if ((block<=DriveStruct[d].last_redirect) |
DriveStruct | 3860 | drivers/block/sbpcd.c | && (DriveStruct[d].f_multisession)) |
DriveStruct | 3863 | drivers/block/sbpcd.c | blk2msf(DriveStruct[d].lba_multi+block), |
DriveStruct | 3865 | drivers/block/sbpcd.c | block=DriveStruct[d].lba_multi+block; |
DriveStruct | 3871 | drivers/block/sbpcd.c | if (block+SBP_BUFFER_FRAMES <= DriveStruct[d].CDsize_frm) |
DriveStruct | 3872 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames = SBP_BUFFER_FRAMES; |
DriveStruct | 3875 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=DriveStruct[d].CDsize_frm-block; |
DriveStruct | 3877 | drivers/block/sbpcd.c | if (DriveStruct[d].sbp_read_frames < 1) |
DriveStruct | 3880 | drivers/block/sbpcd.c | block, DriveStruct[d].CDsize_frm)); |
DriveStruct | 3881 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames=1; |
DriveStruct | 3884 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current = 0; |
DriveStruct | 3894 | drivers/block/sbpcd.c | if (DriveStruct[d].xa_byte==0x20) |
DriveStruct | 3902 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
DriveStruct | 3909 | drivers/block/sbpcd.c | if (DriveStruct[d].drv_type>=drv_201) |
DriveStruct | 3923 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
DriveStruct | 3924 | drivers/block/sbpcd.c | drvcmd[6]=(DriveStruct[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ |
DriveStruct | 3933 | drivers/block/sbpcd.c | drvcmd[6]=DriveStruct[d].sbp_read_frames; |
DriveStruct | 3940 | drivers/block/sbpcd.c | drvcmd[5]=DriveStruct[d].sbp_read_frames; |
DriveStruct | 3970 | drivers/block/sbpcd.c | for (frame=DriveStruct[d].sbp_current;frame<DriveStruct[d].sbp_read_frames&&!error_flag; frame++) |
DriveStruct | 4002 | drivers/block/sbpcd.c | if ((DriveStruct[d].ored_ctl_adr&0x40)==0) |
DriveStruct | 4011 | drivers/block/sbpcd.c | p = DriveStruct[d].sbp_buf + frame * CD_FRAMESIZE; |
DriveStruct | 4018 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current++; |
DriveStruct | 4081 | drivers/block/sbpcd.c | DriveStruct[d].status_byte)); |
DriveStruct | 4093 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame = CURRENT -> sector / 4; |
DriveStruct | 4094 | drivers/block/sbpcd.c | DriveStruct[d].sbp_last_frame = DriveStruct[d].sbp_first_frame + DriveStruct[d].sbp_read_frames - 1; |
DriveStruct | 4108 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
DriveStruct | 4140 | drivers/block/sbpcd.c | DPRINTF((DBG_STA,"SBPCD: sbpcd_open: status %02X\n", DriveStruct[d].status_byte)); |
DriveStruct | 4156 | drivers/block/sbpcd.c | DriveStruct[d].open_count,DriveStruct[d].open_count+1)); |
DriveStruct | 4157 | drivers/block/sbpcd.c | if (++DriveStruct[d].open_count==1) |
DriveStruct | 4166 | drivers/block/sbpcd.c | if ((DriveStruct[d].ored_ctl_adr&0x40)==0) |
DriveStruct | 4179 | drivers/block/sbpcd.c | if ((i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1)) |
DriveStruct | 4186 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame=DriveStruct[d].sbp_last_frame=-1; |
DriveStruct | 4194 | drivers/block/sbpcd.c | DriveStruct[d].open_count,DriveStruct[d].open_count-1)); |
DriveStruct | 4195 | drivers/block/sbpcd.c | if (DriveStruct[d].open_count!=0) /* CDROMEJECT may have been done */ |
DriveStruct | 4197 | drivers/block/sbpcd.c | if (--DriveStruct[d].open_count==0) |
DriveStruct | 4202 | drivers/block/sbpcd.c | if (DriveStruct[d].f_eject) yy_SpinDown(); |
DriveStruct | 4203 | drivers/block/sbpcd.c | DriveStruct[d].diskstate_flags &= ~cd_size_bit; |
DriveStruct | 4434 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_id==-1) continue; |
DriveStruct | 4438 | drivers/block/sbpcd.c | DriveStruct[d].sbp_first_frame = -1; /* First frame in buffer */ |
DriveStruct | 4439 | drivers/block/sbpcd.c | DriveStruct[d].sbp_last_frame = -1; /* Last frame in buffer */ |
DriveStruct | 4440 | drivers/block/sbpcd.c | DriveStruct[d].sbp_read_frames = 0; /* Number of frames being read to buffer */ |
DriveStruct | 4441 | drivers/block/sbpcd.c | DriveStruct[d].sbp_current = 0; /* Frame being currently read */ |
DriveStruct | 4442 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
DriveStruct | 4443 | drivers/block/sbpcd.c | DriveStruct[d].frame_size=CD_FRAMESIZE; |
DriveStruct | 4445 | drivers/block/sbpcd.c | if (!fam0_drive) DriveStruct[d].f_eject=1; |
DriveStruct | 4446 | drivers/block/sbpcd.c | else DriveStruct[d].f_eject=0; |
DriveStruct | 4448 | drivers/block/sbpcd.c | DriveStruct[d].f_eject=0; |
DriveStruct | 4465 | drivers/block/sbpcd.c | DriveStruct[d].error_byte)); |
DriveStruct | 4466 | drivers/block/sbpcd.c | if (DriveStruct[d].error_byte==aud_12) |
DriveStruct | 4472 | drivers/block/sbpcd.c | DriveStruct[d].error_byte)); |
DriveStruct | 4479 | drivers/block/sbpcd.c | if (i>=0) DriveStruct[d].CD_changed=1; |
DriveStruct | 4513 | drivers/block/sbpcd.c | if (DriveStruct[j].drv_id==-1) continue; |
DriveStruct | 4518 | drivers/block/sbpcd.c | DriveStruct[j].sbp_buf=(u_char *)mem_start; |
DriveStruct | 4522 | drivers/block/sbpcd.c | DriveStruct[j].aud_buf=(u_char *)mem_start; |
DriveStruct | 4525 | drivers/block/sbpcd.c | else DriveStruct[j].aud_buf=NULL; |
DriveStruct | 4564 | drivers/block/sbpcd.c | if ( (i<0) || (i>=NR_SBPCD) || (DriveStruct[i].drv_id==-1) ) |
DriveStruct | 4574 | drivers/block/sbpcd.c | DPRINTF((DBG_CHK,"SBPCD: media_check: %02X\n",DriveStruct[d].status_byte)); |
DriveStruct | 4580 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) DPRINTF((DBG_CHK,"SBPCD: media_check: \"changed\" assumed.\n")); |
DriveStruct | 4585 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
DriveStruct | 4590 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=0xFF; |
DriveStruct | 4595 | drivers/block/sbpcd.c | if (DriveStruct[d].CD_changed==0xFF) |
DriveStruct | 4597 | drivers/block/sbpcd.c | DriveStruct[d].CD_changed=1; |
DriveStruct | 158 | include/linux/sbpcd.h | #define upc_valid (DriveStruct[d].diskstate_flags&upc_bit) |
DriveStruct | 159 | include/linux/sbpcd.h | #define volume_valid (DriveStruct[d].diskstate_flags&volume_bit) |
DriveStruct | 160 | include/linux/sbpcd.h | #define toc_valid (DriveStruct[d].diskstate_flags&toc_bit) |
DriveStruct | 161 | include/linux/sbpcd.h | #define cd_size_valid (DriveStruct[d].diskstate_flags&cd_size_bit) |
DriveStruct | 162 | include/linux/sbpcd.h | #define subq_valid (DriveStruct[d].diskstate_flags&subq_bit) |
DriveStruct | 163 | include/linux/sbpcd.h | #define frame_size_valid (DriveStruct[d].diskstate_flags&frame_size_bit) |
DriveStruct | 218 | include/linux/sbpcd.h | #define st_door_closed (DriveStruct[d].status_byte&p_door_closed) |
DriveStruct | 219 | include/linux/sbpcd.h | #define st_caddy_in (DriveStruct[d].status_byte&p_caddy_in) |
DriveStruct | 220 | include/linux/sbpcd.h | #define st_spinning (DriveStruct[d].status_byte&p_spinning) |
DriveStruct | 221 | include/linux/sbpcd.h | #define st_check (DriveStruct[d].status_byte&p_check) |
DriveStruct | 222 | include/linux/sbpcd.h | #define st_busy (DriveStruct[d].status_byte&p_busy_new) |
DriveStruct | 223 | include/linux/sbpcd.h | #define st_door_locked (DriveStruct[d].status_byte&p_door_locked) |
DriveStruct | 224 | include/linux/sbpcd.h | #define st_diskok (DriveStruct[d].status_byte&p_disk_ok) |
DriveStruct | 260 | include/linux/sbpcd.h | #define fam0_drive (DriveStruct[d].drv_type&drv_fam0) |
DriveStruct | 261 | include/linux/sbpcd.h | #define famL_drive (DriveStruct[d].drv_type&drv_famL) |
DriveStruct | 262 | include/linux/sbpcd.h | #define fam1_drive (DriveStruct[d].drv_type&drv_fam1) |
DriveStruct | 263 | include/linux/sbpcd.h | #define famT_drive (DriveStruct[d].drv_type&drv_famT) |
DriveStruct | 264 | include/linux/sbpcd.h | #define fam2_drive (DriveStruct[d].drv_type&drv_fam2) |
DriveStruct | 265 | include/linux/sbpcd.h | #define fam0L_drive (DriveStruct[d].drv_type&(drv_fam0|drv_famL)) |
DriveStruct | 266 | include/linux/sbpcd.h | #define fam1L_drive (DriveStruct[d].drv_type&(drv_fam1|drv_famL)) |
DriveStruct | 267 | include/linux/sbpcd.h | #define fam01_drive (DriveStruct[d].drv_type&(drv_fam0|drv_fam1)) |