taglinefilesource code
cmdblk280drivers/block/xd.cu_char cmdblk[6],sense[4];
cmdblk302drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
cmdblk304drivers/block/xd.cswitch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) {
cmdblk326drivers/block/xd.cu_char cmdblk[6];
cmdblk328drivers/block/xd.cxd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0);
cmdblk329drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8))
cmdblk372drivers/block/xd.cstatic u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control)
cmdblk374drivers/block/xd.ccmdblk[0] = command;
cmdblk375drivers/block/xd.ccmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F);
cmdblk376drivers/block/xd.ccmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F);
cmdblk377drivers/block/xd.ccmdblk[3] = cylinder & 0xFF;
cmdblk378drivers/block/xd.ccmdblk[4] = count;
cmdblk379drivers/block/xd.ccmdblk[5] = control;
cmdblk381drivers/block/xd.creturn (cmdblk);
cmdblk398drivers/block/xd.cu_char cmdblk[6],csb,complete = 0;
cmdblk444drivers/block/xd.cxd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0);
cmdblk445drivers/block/xd.cif (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT))
cmdblk458drivers/block/xd.cu_char cmdblk[6],i,count = 0;
cmdblk461drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
cmdblk462drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2)) {
cmdblk487drivers/block/xd.cu_char cmdblk[6],buf[64];
cmdblk489drivers/block/xd.cxd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0);
cmdblk490drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk502drivers/block/xd.cxd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7);
cmdblk503drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk531drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk533drivers/block/xd.cxd_build(cmdblk,CMD_READ,drive,0,0,0,1,0);
cmdblk534drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk570drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk572drivers/block/xd.cxd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0);
cmdblk573drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk588drivers/block/xd.cu_char cmdblk[6],i;
cmdblk593drivers/block/xd.cxd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
cmdblk594drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk623drivers/block/xd.cu_char cmdblk[14];
cmdblk625drivers/block/xd.cxd_build(cmdblk,command,drive,0,0,0,0,0);
cmdblk626drivers/block/xd.ccmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
cmdblk627drivers/block/xd.ccmdblk[7] = (u_char) (cylinders & 0xFF);
cmdblk628drivers/block/xd.ccmdblk[8] = heads & 0x1F;
cmdblk629drivers/block/xd.ccmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
cmdblk630drivers/block/xd.ccmdblk[10] = (u_char) (rwrite & 0xFF);
cmdblk631drivers/block/xd.ccmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
cmdblk632drivers/block/xd.ccmdblk[12] = (u_char) (wprecomp & 0xFF);
cmdblk633drivers/block/xd.ccmdblk[13] = ecc;
cmdblk635drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk123include/linux/xd.hstatic u_char *xd_build (u_char *cmdblk,u_char command,u_char drive,u_char head,u_short cylinder,u_char sector,u_char count,u_char control);