taglinefilesource code
cmdblk325drivers/block/xd.cu_char cmdblk[6],sense[4];
cmdblk347drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
cmdblk349drivers/block/xd.cswitch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) {
cmdblk375drivers/block/xd.cu_char cmdblk[6];
cmdblk377drivers/block/xd.cxd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0);
cmdblk378drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8))
cmdblk421drivers/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)
cmdblk423drivers/block/xd.ccmdblk[0] = command;
cmdblk424drivers/block/xd.ccmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F);
cmdblk425drivers/block/xd.ccmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F);
cmdblk426drivers/block/xd.ccmdblk[3] = cylinder & 0xFF;
cmdblk427drivers/block/xd.ccmdblk[4] = count;
cmdblk428drivers/block/xd.ccmdblk[5] = control;
cmdblk430drivers/block/xd.creturn (cmdblk);
cmdblk447drivers/block/xd.cu_char cmdblk[6],csb,complete = 0;
cmdblk496drivers/block/xd.cxd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0);
cmdblk497drivers/block/xd.cif (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT))
cmdblk510drivers/block/xd.cu_char cmdblk[6],i,count = 0;
cmdblk513drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
cmdblk514drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) {
cmdblk539drivers/block/xd.cu_char cmdblk[6],buf[64];
cmdblk541drivers/block/xd.cxd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0);
cmdblk542drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk554drivers/block/xd.cxd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7);
cmdblk555drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk583drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk585drivers/block/xd.cxd_build(cmdblk,CMD_READ,drive,0,0,0,1,0);
cmdblk586drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk622drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk624drivers/block/xd.cxd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0);
cmdblk625drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk668drivers/block/xd.cu_char cmdblk[6],i;
cmdblk673drivers/block/xd.cxd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
cmdblk674drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk703drivers/block/xd.cu_char cmdblk[14];
cmdblk705drivers/block/xd.cxd_build(cmdblk,command,drive,0,0,0,0,0);
cmdblk706drivers/block/xd.ccmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
cmdblk707drivers/block/xd.ccmdblk[7] = (u_char) (cylinders & 0xFF);
cmdblk708drivers/block/xd.ccmdblk[8] = heads & 0x1F;
cmdblk709drivers/block/xd.ccmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
cmdblk710drivers/block/xd.ccmdblk[10] = (u_char) (rwrite & 0xFF);
cmdblk711drivers/block/xd.ccmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
cmdblk712drivers/block/xd.ccmdblk[12] = (u_char) (wprecomp & 0xFF);
cmdblk713drivers/block/xd.ccmdblk[13] = ecc;
cmdblk715drivers/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);