taglinefilesource code
cmdblk336drivers/block/xd.cu_char cmdblk[6],sense[4];
cmdblk358drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
cmdblk360drivers/block/xd.cswitch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) {
cmdblk386drivers/block/xd.cu_char cmdblk[6];
cmdblk388drivers/block/xd.cxd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0);
cmdblk389drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8))
cmdblk432drivers/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)
cmdblk434drivers/block/xd.ccmdblk[0] = command;
cmdblk435drivers/block/xd.ccmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F);
cmdblk436drivers/block/xd.ccmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F);
cmdblk437drivers/block/xd.ccmdblk[3] = cylinder & 0xFF;
cmdblk438drivers/block/xd.ccmdblk[4] = count;
cmdblk439drivers/block/xd.ccmdblk[5] = control;
cmdblk441drivers/block/xd.creturn (cmdblk);
cmdblk458drivers/block/xd.cu_char cmdblk[6],csb,complete = 0;
cmdblk507drivers/block/xd.cxd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0);
cmdblk508drivers/block/xd.cif (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT))
cmdblk521drivers/block/xd.cu_char cmdblk[6],i,count = 0;
cmdblk524drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
cmdblk525drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) {
cmdblk550drivers/block/xd.cu_char cmdblk[6],buf[64];
cmdblk552drivers/block/xd.cxd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0);
cmdblk553drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk565drivers/block/xd.cxd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7);
cmdblk566drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk594drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk596drivers/block/xd.cxd_build(cmdblk,CMD_READ,drive,0,0,0,1,0);
cmdblk597drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk633drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk635drivers/block/xd.cxd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0);
cmdblk636drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk679drivers/block/xd.cu_char cmdblk[6],i;
cmdblk684drivers/block/xd.cxd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
cmdblk685drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk714drivers/block/xd.cu_char cmdblk[14];
cmdblk716drivers/block/xd.cxd_build(cmdblk,command,drive,0,0,0,0,0);
cmdblk717drivers/block/xd.ccmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
cmdblk718drivers/block/xd.ccmdblk[7] = (u_char) (cylinders & 0xFF);
cmdblk719drivers/block/xd.ccmdblk[8] = heads & 0x1F;
cmdblk720drivers/block/xd.ccmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
cmdblk721drivers/block/xd.ccmdblk[10] = (u_char) (rwrite & 0xFF);
cmdblk722drivers/block/xd.ccmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
cmdblk723drivers/block/xd.ccmdblk[12] = (u_char) (wprecomp & 0xFF);
cmdblk724drivers/block/xd.ccmdblk[13] = ecc;
cmdblk726drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk122include/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);