Lines Matching refs:drvcmd
644 static u_char drvcmd[10]; variable
1011 for (i=0;i<10;i++) drvcmd[i]=0; in clr_cmdbuf()
1220 drvcmd[0]=CMDT_STATUS; in get_state_T()
1318 drvcmd[0]=CMD1_READ_ERR; in cc_ReadError()
1324 drvcmd[0]=CMD0_READ_ERR; in cc_ReadError()
1333 drvcmd[0]=CMD2_READ_ERR; in cc_ReadError()
1340 drvcmd[0]=CMDT_READ_ERR; in cc_ReadError()
1372 for (i=0;i<10;i++) sprintf(&msgbuf[i*3]," %02X",drvcmd[i]); in cmd_out_T()
1395 for (i=0;i<10;i++) OUT(CDo_command,drvcmd[i]); in cmd_out_T()
1399 if (drvcmd[0]==CMDT_READ_VER) sbp_sleep(HZ); /* fixme */ in cmd_out_T()
1417 if (drvcmd[0]==CMDT_READ) return (0); /* handled elsewhere */ in cmd_out_T()
1418 if (drvcmd[0]==CMDT_DISKINFO) in cmd_out_T()
1448 drvcmd[0]); in cmd_out_T()
1466 if (drvcmd[0]==CMDT_DISKINFO) m=l; in cmd_out_T()
1477 if (drvcmd[0]==CMDT_DISKINFO) in cmd_out_T()
1486 …,"cmd_out_T READ_ERR recursion (%02X): %d !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n", drvcmd[0], recursion); in cmd_out_T()
1488 drvcmd[0]=CMDT_READ_ERR; in cmd_out_T()
1505 if (drvcmd[0]==CMDT_READ) return (0); /* handled elsewhere */ in cmd_out_T()
1509 msg(DBG_TEA,"cmd_out_T: next CMDT_TRIES (%02X): %d.\n", drvcmd[0], ntries-1); in cmd_out_T()
1527 sprintf(&msgbuf[i*3], " %02X", drvcmd[i]); in cmd_out()
1531 for (i=0;i<7;i++) OUT(CDo_command,drvcmd[i]); in cmd_out()
1592 drvcmd[0]=CMD0_SEEK; in cc_Seek()
1594 drvcmd[2]=(pos>>16)&0x00FF; in cc_Seek()
1595 drvcmd[3]=(pos>>8)&0x00FF; in cc_Seek()
1596 drvcmd[4]=pos&0x00FF; in cc_Seek()
1605 drvcmd[0]=CMD1_SEEK; /* same as CMD1_ and CMDL_ */ in cc_Seek()
1607 drvcmd[1]=(pos>>16)&0x00FF; in cc_Seek()
1608 drvcmd[2]=(pos>>8)&0x00FF; in cc_Seek()
1609 drvcmd[3]=pos&0x00FF; in cc_Seek()
1617 drvcmd[0]=CMD2_SEEK; in cc_Seek()
1619 drvcmd[2]=(pos>>24)&0x00FF; in cc_Seek()
1620 drvcmd[3]=(pos>>16)&0x00FF; in cc_Seek()
1621 drvcmd[4]=(pos>>8)&0x00FF; in cc_Seek()
1622 drvcmd[5]=pos&0x00FF; in cc_Seek()
1627 drvcmd[0]=CMDT_SEEK; in cc_Seek()
1629 drvcmd[2]=(pos>>24)&0x00FF; in cc_Seek()
1630 drvcmd[3]=(pos>>16)&0x00FF; in cc_Seek()
1631 drvcmd[4]=(pos>>8)&0x00FF; in cc_Seek()
1632 drvcmd[5]=pos&0x00FF; in cc_Seek()
1649 drvcmd[0]=CMD0_SPINUP; in cc_SpinUp()
1658 drvcmd[0]=CMD1_SPINUP; in cc_SpinUp()
1663 drvcmd[0]=CMD2_TRAY_CTL; in cc_SpinUp()
1664 drvcmd[4]=0x01; /* "spinup" */ in cc_SpinUp()
1669 drvcmd[0]=CMDT_TRAY_CTL; in cc_SpinUp()
1670 drvcmd[4]=0x03; /* "insert", it hopefully spins the drive up */ in cc_SpinUp()
1687 drvcmd[0]=CMD1_SPINDOWN; in cc_SpinDown()
1692 drvcmd[0]=CMD2_TRAY_CTL; in cc_SpinDown()
1693 drvcmd[4]=0x02; /* "eject" */ in cc_SpinDown()
1698 drvcmd[0]=CMDL_SPINDOWN; in cc_SpinDown()
1699 drvcmd[1]=1; in cc_SpinDown()
1704 drvcmd[0]=CMDV_SPINDOWN; in cc_SpinDown()
1709 drvcmd[0]=CMDT_TRAY_CTL; in cc_SpinDown()
1710 drvcmd[4]=0x02; /* "eject" */ in cc_SpinDown()
1722 drvcmd[0]=CMDT_GETMODE; in cc_get_mode_T()
1723 drvcmd[4]=response_count; in cc_get_mode_T()
1734 drvcmd[0]=CMDT_SETMODE; in cc_set_mode_T()
1735 drvcmd[1]=D_S[d].speed_byte; in cc_set_mode_T()
1736 drvcmd[2]=D_S[d].frmsiz>>8; in cc_set_mode_T()
1737 drvcmd[3]=D_S[d].frmsiz&0x0FF; in cc_set_mode_T()
1738 drvcmd[4]=D_S[d].f_XA; /* 1: XA */ in cc_set_mode_T()
1739 drvcmd[5]=D_S[d].type_byte; /* 0, 1, 3 */ in cc_set_mode_T()
1740 drvcmd[6]=D_S[d].mode_xb_6; in cc_set_mode_T()
1741 drvcmd[7]=D_S[d].mode_yb_7|D_S[d].volume_control; in cc_set_mode_T()
1742 drvcmd[8]=D_S[d].mode_xb_8; in cc_set_mode_T()
1743 drvcmd[9]=D_S[d].delay; in cc_set_mode_T()
1785 drvcmd[0]=CMD1_SETMODE; in cc_SetSpeed()
1786 drvcmd[1]=0x03; in cc_SetSpeed()
1787 drvcmd[2]=speed; in cc_SetSpeed()
1788 drvcmd[3]=x1; in cc_SetSpeed()
1789 drvcmd[4]=x2; in cc_SetSpeed()
1794 drvcmd[0]=CMD2_SETSPEED; in cc_SetSpeed()
1797 drvcmd[2]=0xFF; in cc_SetSpeed()
1798 drvcmd[3]=0xFF; in cc_SetSpeed()
1802 drvcmd[2]=0; in cc_SetSpeed()
1803 drvcmd[3]=150; in cc_SetSpeed()
1863 drvcmd[0]=CMD1_SETMODE; in cc_SetVolume()
1864 drvcmd[1]=0x05; in cc_SetVolume()
1865 drvcmd[3]=control0; in cc_SetVolume()
1866 drvcmd[4]=value0; in cc_SetVolume()
1867 drvcmd[5]=control1; in cc_SetVolume()
1868 drvcmd[6]=value1; in cc_SetVolume()
1879 drvcmd[0]=CMD2_SETMODE; in cc_SetVolume()
1880 drvcmd[1]=0x0E; in cc_SetVolume()
1881 drvcmd[3]=control0; in cc_SetVolume()
1882 drvcmd[4]=value0; in cc_SetVolume()
1883 drvcmd[5]=control1; in cc_SetVolume()
1884 drvcmd[6]=value1; in cc_SetVolume()
1892 drvcmd[0]=CMDL_SETMODE; in cc_SetVolume()
1893 drvcmd[1]=0x03; in cc_SetVolume()
1894 drvcmd[4]=control0; in cc_SetVolume()
1895 drvcmd[5]=value0; in cc_SetVolume()
1958 drvcmd[0]=CMD0_SETMODE; in cc_SetVolume()
1959 drvcmd[1]=0x83; in cc_SetVolume()
1960 drvcmd[4]=control0; in cc_SetVolume()
1961 drvcmd[5]=value0; in cc_SetVolume()
2004 drvcmd[0]=CMD1_RESET; in cc_DriveReset()
2010 drvcmd[0]=CMD2_RESET; in cc_DriveReset()
2115 drvcmd[0]=CMDL_PLAY; in cc_PlayAudio()
2118 drvcmd[1]=(i>>16)&0x00FF; in cc_PlayAudio()
2119 drvcmd[2]=(i>>8)&0x00FF; in cc_PlayAudio()
2120 drvcmd[3]=i&0x00FF; in cc_PlayAudio()
2121 drvcmd[4]=(n>>16)&0x00FF; in cc_PlayAudio()
2122 drvcmd[5]=(n>>8)&0x00FF; in cc_PlayAudio()
2123 drvcmd[6]=n&0x00FF; in cc_PlayAudio()
2135 drvcmd[0]=CMD1_PLAY_MSF; in cc_PlayAudio()
2141 drvcmd[0]=CMD2_PLAY_MSF; in cc_PlayAudio()
2146 drvcmd[0]=CMDT_PLAY_MSF; in cc_PlayAudio()
2152 drvcmd[0]=CMD0_PLAY_MSF; in cc_PlayAudio()
2156 drvcmd[j]=(pos_audio_start>>16)&0x00FF; in cc_PlayAudio()
2157 drvcmd[j+1]=(pos_audio_start>>8)&0x00FF; in cc_PlayAudio()
2158 drvcmd[j+2]=pos_audio_start&0x00FF; in cc_PlayAudio()
2159 drvcmd[j+3]=(pos_audio_end>>16)&0x00FF; in cc_PlayAudio()
2160 drvcmd[j+4]=(pos_audio_end>>8)&0x00FF; in cc_PlayAudio()
2161 drvcmd[j+5]=pos_audio_end&0x00FF; in cc_PlayAudio()
2175 drvcmd[0]=CMD1_PAU_RES; in cc_Pause_Resume()
2176 if (pau_res!=1) drvcmd[1]=0x80; in cc_Pause_Resume()
2181 drvcmd[0]=CMD2_PAU_RES; in cc_Pause_Resume()
2182 if (pau_res!=1) drvcmd[2]=0x01; in cc_Pause_Resume()
2187 drvcmd[0]=CMD0_PAU_RES; in cc_Pause_Resume()
2188 if (pau_res!=1) drvcmd[1]=0x80; in cc_Pause_Resume()
2201 else if (pau_res==1) drvcmd[0]=CMDT_PAUSE; in cc_Pause_Resume()
2219 drvcmd[0]=CMD1_LOCK_CTL; in cc_LockDoor()
2220 if (lock==1) drvcmd[1]=0x01; in cc_LockDoor()
2225 drvcmd[0]=CMD2_LOCK_CTL; in cc_LockDoor()
2226 if (lock==1) drvcmd[4]=0x01; in cc_LockDoor()
2231 drvcmd[0]=CMDL_LOCK_CTL; in cc_LockDoor()
2232 if (lock==1) drvcmd[1]=0x01; in cc_LockDoor()
2240 drvcmd[0]=CMDT_LOCK_CTL; in cc_LockDoor()
2241 if (lock==1) drvcmd[4]=0x01; in cc_LockDoor()
2314 drvcmd[0]=CMD1_TRAY_CTL; in cc_CloseTray()
2319 drvcmd[0]=CMD2_TRAY_CTL; in cc_CloseTray()
2320 drvcmd[1]=0x01; in cc_CloseTray()
2321 drvcmd[4]=0x03; /* "insert" */ in cc_CloseTray()
2326 drvcmd[0]=CMDL_TRAY_CTL; in cc_CloseTray()
2335 drvcmd[0]=CMDT_TRAY_CTL; in cc_CloseTray()
2336 drvcmd[4]=0x03; /* "insert" */ in cc_CloseTray()
2404 drvcmd[0]=CMD1_READSUBQ; in cc_ReadSubQ()
2410 drvcmd[0]=CMD2_READSUBQ; in cc_ReadSubQ()
2411 drvcmd[1]=0x02; in cc_ReadSubQ()
2412 drvcmd[3]=0x01; in cc_ReadSubQ()
2418 drvcmd[0]=CMD0_READSUBQ; in cc_ReadSubQ()
2419 drvcmd[1]=0x02; in cc_ReadSubQ()
2429 drvcmd[0]=CMDT_READSUBQ; in cc_ReadSubQ()
2430 drvcmd[1]=0x02; in cc_ReadSubQ()
2431 drvcmd[2]=0x40; in cc_ReadSubQ()
2432 drvcmd[3]=0x01; in cc_ReadSubQ()
2433 drvcmd[8]=response_count; in cc_ReadSubQ()
2481 drvcmd[0]=CMD1_GETMODE; in cc_ModeSense()
2487 drvcmd[0]=CMD0_GETMODE; in cc_ModeSense()
2494 drvcmd[0]=CMDT_GETMODE; in cc_ModeSense()
2495 drvcmd[4]=response_count; in cc_ModeSense()
2536 drvcmd[0]=CMD1_SETMODE; in cc_ModeSelect()
2537 drvcmd[1]=0x00; in cc_ModeSelect()
2538 drvcmd[2]=D_S[d].sense_byte; in cc_ModeSelect()
2539 drvcmd[3]=(D_S[d].frame_size>>8)&0xFF; in cc_ModeSelect()
2540 drvcmd[4]=D_S[d].frame_size&0xFF; in cc_ModeSelect()
2545 drvcmd[0]=CMD0_SETMODE; in cc_ModeSelect()
2546 drvcmd[1]=0x00; in cc_ModeSelect()
2547 drvcmd[2]=(D_S[d].frame_size>>8)&0xFF; in cc_ModeSelect()
2548 drvcmd[3]=D_S[d].frame_size&0xFF; in cc_ModeSelect()
2549 drvcmd[4]=0x00; in cc_ModeSelect()
2580 drvcmd[0]=CMD1_GETMODE; in cc_GetVolume()
2581 drvcmd[1]=0x05; in cc_GetVolume()
2587 drvcmd[0]=CMD2_GETMODE; in cc_GetVolume()
2588 drvcmd[1]=0x0E; in cc_GetVolume()
2594 drvcmd[0]=CMD0_GETMODE; in cc_GetVolume()
2595 drvcmd[1]=0x03; in cc_GetVolume()
2714 drvcmd[0]=CMD1_CAPACITY; in cc_ReadCapacity()
2721 drvcmd[0]=CMD2_CAPACITY; in cc_ReadCapacity()
2728 drvcmd[0]=CMD0_CAPACITY; in cc_ReadCapacity()
2756 drvcmd[0]=CMD1_DISKINFO; in cc_ReadTocDescr()
2762 drvcmd[0]=CMD0_DISKINFO; in cc_ReadTocDescr()
2773 drvcmd[0]=CMD2_DISKINFO; in cc_ReadTocDescr()
2774 drvcmd[1]=0x02; in cc_ReadTocDescr()
2775 drvcmd[2]=0xAB; in cc_ReadTocDescr()
2776 drvcmd[3]=0xFF; /* session */ in cc_ReadTocDescr()
2784 drvcmd[0]=CMDT_DISKINFO; in cc_ReadTocDescr()
2785 drvcmd[1]=0x02; in cc_ReadTocDescr()
2786 drvcmd[6]=CDROM_LEADOUT; in cc_ReadTocDescr()
2787 drvcmd[8]=response_count; in cc_ReadTocDescr()
2788 drvcmd[9]=0x00; in cc_ReadTocDescr()
2814 drvcmd[0]=CMD2_DISKINFO; in cc_ReadTocDescr()
2815 drvcmd[1]=0x02; in cc_ReadTocDescr()
2816 drvcmd[2]=0xAB; in cc_ReadTocDescr()
2817 drvcmd[3]=count; in cc_ReadTocDescr()
2827 drvcmd[0]=CMD2_DISKINFO; in cc_ReadTocDescr()
2828 drvcmd[1]=0x02; in cc_ReadTocDescr()
2829 drvcmd[2]=0xAA; in cc_ReadTocDescr()
2830 drvcmd[3]=0xFF; in cc_ReadTocDescr()
2873 drvcmd[0]=CMD1_READTOC; in cc_ReadTocEntry()
2874 drvcmd[2]=num; in cc_ReadTocEntry()
2881 drvcmd[0]=CMD2_DISKINFO; in cc_ReadTocEntry()
2882 drvcmd[1]=0x02; in cc_ReadTocEntry()
2883 drvcmd[2]=num; in cc_ReadTocEntry()
2889 drvcmd[0]=CMD0_READTOC; in cc_ReadTocEntry()
2890 drvcmd[1]=0x02; in cc_ReadTocEntry()
2891 drvcmd[2]=num; in cc_ReadTocEntry()
2901 drvcmd[0]=CMDT_DISKINFO; in cc_ReadTocEntry()
2902 drvcmd[1]=0x02; in cc_ReadTocEntry()
2903 drvcmd[6]=num; in cc_ReadTocEntry()
2904 drvcmd[8]=response_count; in cc_ReadTocEntry()
2905 drvcmd[9]=0x00; in cc_ReadTocEntry()
2950 drvcmd[0]=CMD0_PACKET; in cc_ReadPacket()
2951 drvcmd[1]=response_count; in cc_ReadPacket()
3013 drvcmd[0]=CMD1_READ_UPC; in cc_ReadUPC()
3015 drvcmd[1]=(block>>16)&0xFF; in cc_ReadUPC()
3016 drvcmd[2]=(block>>8)&0xFF; in cc_ReadUPC()
3017 drvcmd[3]=block&0xFF; in cc_ReadUPC()
3024 drvcmd[0]=CMD0_READ_UPC; in cc_ReadUPC()
3026 drvcmd[2]=(block>>16)&0xFF; in cc_ReadUPC()
3027 drvcmd[3]=(block>>8)&0xFF; in cc_ReadUPC()
3028 drvcmd[4]=block&0xFF; in cc_ReadUPC()
3101 drvcmd[0]=CMD1_READ_UPC; in sbpcd_get_mcn()
3107 drvcmd[0]=CMD0_READ_UPC; in sbpcd_get_mcn()
3175 drvcmd[0]=CMD1_MULTISESS; in cc_CheckMultiSession()
3189 drvcmd[0]=CMDL_MULTISESS; in cc_CheckMultiSession()
3190 drvcmd[1]=3; in cc_CheckMultiSession()
3191 drvcmd[2]=1; in cc_CheckMultiSession()
3202 drvcmd[0]=CMDT_DISKINFO; in cc_CheckMultiSession()
3203 drvcmd[1]=0x02; in cc_CheckMultiSession()
3204 drvcmd[6]=0; in cc_CheckMultiSession()
3205 drvcmd[8]=response_count; in cc_CheckMultiSession()
3206 drvcmd[9]=0x40; in cc_CheckMultiSession()
3246 drvcmd[0]=CMD1_SUBCHANINF; in cc_SubChanInfo()
3247 drvcmd[1]=(frame>>16)&0xFF; in cc_SubChanInfo()
3248 drvcmd[2]=(frame>>8)&0xFF; in cc_SubChanInfo()
3249 drvcmd[3]=frame&0xFF; in cc_SubChanInfo()
3250 drvcmd[5]=(count>>8)&0xFF; in cc_SubChanInfo()
3251 drvcmd[6]=count&0xFF; in cc_SubChanInfo()
3317 drvcmd[0]=CMD0_READ_ERR; /* same as CMD1_ and CMDL_ */
3322 drvcmd[0]=CMD2_READ_ERR;
3360 drvcmd[0]=CMD0_READ_ERR; /* same as CMD1_ and CMDL_ */ in check_version()
3368 drvcmd[0]=CMD0_READ_VER; /* same as CMD1_ and CMDL_ */ in check_version()
3441 drvcmd[0]=CMD2_READ_ERR; in check_version()
3456 drvcmd[0]=CMD2_READ_VER; in check_version()
3529 drvcmd[0]=CMDT_READ_VER; in check_version()
3530 drvcmd[4]=response_count; in check_version()
4364 drvcmd[0]=CMD0_READ_XA; /* "read XA frames", old drives */ in sbpcd_dev_ioctl()
4365 drvcmd[1]=(block>>16)&0x000000ff; in sbpcd_dev_ioctl()
4366 drvcmd[2]=(block>>8)&0x000000ff; in sbpcd_dev_ioctl()
4367 drvcmd[3]=block&0x000000ff; in sbpcd_dev_ioctl()
4368 drvcmd[4]=0; in sbpcd_dev_ioctl()
4369 drvcmd[5]=read_audio.nframes; /* # of frames */ in sbpcd_dev_ioctl()
4370 drvcmd[6]=0; in sbpcd_dev_ioctl()
4374 drvcmd[0]=CMD1_READ; /* "read frames", new drives */ in sbpcd_dev_ioctl()
4375 lba2msf(block,&drvcmd[1]); /* msf-bin format required */ in sbpcd_dev_ioctl()
4376 drvcmd[4]=0; in sbpcd_dev_ioctl()
4377 drvcmd[5]=0; in sbpcd_dev_ioctl()
4378 drvcmd[6]=read_audio.nframes; /* # of frames */ in sbpcd_dev_ioctl()
4382 drvcmd[0]=CMD2_READ_XA2; in sbpcd_dev_ioctl()
4383 lba2msf(block,&drvcmd[1]); /* msf-bin format required */ in sbpcd_dev_ioctl()
4384 drvcmd[4]=0; in sbpcd_dev_ioctl()
4385 drvcmd[5]=read_audio.nframes; /* # of frames */ in sbpcd_dev_ioctl()
4386 drvcmd[6]=0x11; /* raw mode */ in sbpcd_dev_ioctl()
5065 drvcmd[0]=CMDV_READ; in sbp_read_cmd()
5066 lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ in sbp_read_cmd()
5067 bin2bcdx(&drvcmd[1]); in sbp_read_cmd()
5068 bin2bcdx(&drvcmd[2]); in sbp_read_cmd()
5069 bin2bcdx(&drvcmd[3]); in sbp_read_cmd()
5070 drvcmd[4]=D_S[d].sbp_read_frames>>8; in sbp_read_cmd()
5071 drvcmd[5]=D_S[d].sbp_read_frames&0xff; in sbp_read_cmd()
5072 drvcmd[6]=0x02; /* flag "msf-bcd" */ in sbp_read_cmd()
5080 drvcmd[0]=CMD0_READ_XA; /* "read XA frames", old drives */ in sbp_read_cmd()
5081 drvcmd[1]=(block>>16)&0x0ff; in sbp_read_cmd()
5082 drvcmd[2]=(block>>8)&0x0ff; in sbp_read_cmd()
5083 drvcmd[3]=block&0x0ff; in sbp_read_cmd()
5084 drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; in sbp_read_cmd()
5085 drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; in sbp_read_cmd()
5089 drvcmd[0]=CMD0_READ; /* "read frames", old drives */ in sbp_read_cmd()
5092 lba2msf(block,&drvcmd[1]); /* msf-bcd format required */ in sbp_read_cmd()
5093 bin2bcdx(&drvcmd[1]); in sbp_read_cmd()
5094 bin2bcdx(&drvcmd[2]); in sbp_read_cmd()
5095 bin2bcdx(&drvcmd[3]); in sbp_read_cmd()
5099 drvcmd[1]=(block>>16)&0x0ff; in sbp_read_cmd()
5100 drvcmd[2]=(block>>8)&0x0ff; in sbp_read_cmd()
5101 drvcmd[3]=block&0x0ff; in sbp_read_cmd()
5103 drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; in sbp_read_cmd()
5104 drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; in sbp_read_cmd()
5105 drvcmd[6]=(D_S[d].drv_type<drv_201)?0:2; /* flag "lba or msf-bcd format" */ in sbp_read_cmd()
5110 drvcmd[0]=CMD1_READ; in sbp_read_cmd()
5111 lba2msf(block,&drvcmd[1]); /* msf-bin format required */ in sbp_read_cmd()
5112 drvcmd[5]=(D_S[d].sbp_read_frames>>8)&0x0ff; in sbp_read_cmd()
5113 drvcmd[6]=D_S[d].sbp_read_frames&0x0ff; in sbp_read_cmd()
5117 drvcmd[0]=CMD2_READ; in sbp_read_cmd()
5118 lba2msf(block,&drvcmd[1]); /* msf-bin format required */ in sbp_read_cmd()
5119 drvcmd[4]=(D_S[d].sbp_read_frames>>8)&0x0ff; in sbp_read_cmd()
5120 drvcmd[5]=D_S[d].sbp_read_frames&0x0ff; in sbp_read_cmd()
5121 drvcmd[6]=0x02; in sbp_read_cmd()
5125 drvcmd[0]=CMDT_READ; in sbp_read_cmd()
5126 drvcmd[2]=(block>>24)&0x0ff; in sbp_read_cmd()
5127 drvcmd[3]=(block>>16)&0x0ff; in sbp_read_cmd()
5128 drvcmd[4]=(block>>8)&0x0ff; in sbp_read_cmd()
5129 drvcmd[5]=block&0x0ff; in sbp_read_cmd()
5130 drvcmd[7]=(D_S[d].sbp_read_frames>>8)&0x0ff; in sbp_read_cmd()
5131 drvcmd[8]=D_S[d].sbp_read_frames&0x0ff; in sbp_read_cmd()
5316 drvcmd[0]=CMDT_READ_ERR; in sbp_data()