taglinefilesource code
cmdblk324drivers/block/xd.cu_char cmdblk[6],sense[4];
cmdblk346drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
cmdblk348drivers/block/xd.cswitch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) {
cmdblk374drivers/block/xd.cu_char cmdblk[6];
cmdblk376drivers/block/xd.cxd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0);
cmdblk377drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8))
cmdblk420drivers/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)
cmdblk422drivers/block/xd.ccmdblk[0] = command;
cmdblk423drivers/block/xd.ccmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F);
cmdblk424drivers/block/xd.ccmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F);
cmdblk425drivers/block/xd.ccmdblk[3] = cylinder & 0xFF;
cmdblk426drivers/block/xd.ccmdblk[4] = count;
cmdblk427drivers/block/xd.ccmdblk[5] = control;
cmdblk429drivers/block/xd.creturn (cmdblk);
cmdblk446drivers/block/xd.cu_char cmdblk[6],csb,complete = 0;
cmdblk495drivers/block/xd.cxd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0);
cmdblk496drivers/block/xd.cif (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT))
cmdblk509drivers/block/xd.cu_char cmdblk[6],i,count = 0;
cmdblk512drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
cmdblk513drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) {
cmdblk538drivers/block/xd.cu_char cmdblk[6],buf[64];
cmdblk540drivers/block/xd.cxd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0);
cmdblk541drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk553drivers/block/xd.cxd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7);
cmdblk554drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk582drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk584drivers/block/xd.cxd_build(cmdblk,CMD_READ,drive,0,0,0,1,0);
cmdblk585drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk621drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk623drivers/block/xd.cxd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0);
cmdblk624drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk667drivers/block/xd.cu_char cmdblk[6],i;
cmdblk672drivers/block/xd.cxd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
cmdblk673drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk702drivers/block/xd.cu_char cmdblk[14];
cmdblk704drivers/block/xd.cxd_build(cmdblk,command,drive,0,0,0,0,0);
cmdblk705drivers/block/xd.ccmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
cmdblk706drivers/block/xd.ccmdblk[7] = (u_char) (cylinders & 0xFF);
cmdblk707drivers/block/xd.ccmdblk[8] = heads & 0x1F;
cmdblk708drivers/block/xd.ccmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
cmdblk709drivers/block/xd.ccmdblk[10] = (u_char) (rwrite & 0xFF);
cmdblk710drivers/block/xd.ccmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
cmdblk711drivers/block/xd.ccmdblk[12] = (u_char) (wprecomp & 0xFF);
cmdblk712drivers/block/xd.ccmdblk[13] = ecc;
cmdblk714drivers/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);