taglinefilesource code
cmdblk326drivers/block/xd.cu_char cmdblk[6],sense[4];
cmdblk348drivers/block/xd.cxd_build(cmdblk,operation == READ ? CMD_READ : CMD_WRITE,drive,head,cylinder,sector,temp & 0xFF,control);
cmdblk350drivers/block/xd.cswitch (xd_command(cmdblk,mode,(u_char *) buffer,(u_char *) buffer,sense,XD_TIMEOUT)) {
cmdblk376drivers/block/xd.cu_char cmdblk[6];
cmdblk378drivers/block/xd.cxd_build(cmdblk,CMD_RECALIBRATE,drive,0,0,0,0,0);
cmdblk379drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8))
cmdblk422drivers/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)
cmdblk424drivers/block/xd.ccmdblk[0] = command;
cmdblk425drivers/block/xd.ccmdblk[1] = ((drive & 0x07) << 5) | (head & 0x1F);
cmdblk426drivers/block/xd.ccmdblk[2] = ((cylinder & 0x300) >> 2) | (sector & 0x3F);
cmdblk427drivers/block/xd.ccmdblk[3] = cylinder & 0xFF;
cmdblk428drivers/block/xd.ccmdblk[4] = count;
cmdblk429drivers/block/xd.ccmdblk[5] = control;
cmdblk431drivers/block/xd.creturn (cmdblk);
cmdblk448drivers/block/xd.cu_char cmdblk[6],csb,complete = 0;
cmdblk497drivers/block/xd.cxd_build(cmdblk,CMD_SENSE,(csb & CSB_LUN) >> 5,0,0,0,0,0);
cmdblk498drivers/block/xd.cif (xd_command(cmdblk,0,sense,0,0,XD_TIMEOUT))
cmdblk511drivers/block/xd.cu_char cmdblk[6],i,count = 0;
cmdblk514drivers/block/xd.cxd_build(cmdblk,CMD_TESTREADY,i,0,0,0,0,0);
cmdblk515drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 8)) {
cmdblk540drivers/block/xd.cu_char cmdblk[6],buf[64];
cmdblk542drivers/block/xd.cxd_build(cmdblk,CMD_DTCGETGEOM,drive,0,0,0,0,0);
cmdblk543drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk555drivers/block/xd.cxd_build(cmdblk,CMD_DTCSETSTEP,drive,0,0,0,0,7);
cmdblk556drivers/block/xd.cif (xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk584drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk586drivers/block/xd.cxd_build(cmdblk,CMD_READ,drive,0,0,0,1,0);
cmdblk587drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk623drivers/block/xd.cu_char cmdblk[6],buf[0x200];
cmdblk625drivers/block/xd.cxd_build(cmdblk,CMD_ST11GETGEOM,drive,0,0,0,1,0);
cmdblk626drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,buf,0,0,XD_TIMEOUT * 2)) {
cmdblk669drivers/block/xd.cu_char cmdblk[6],i;
cmdblk674drivers/block/xd.cxd_build(cmdblk,CMD_SEEK,drive,(u_char) test[0],(u_short) test[1],(u_char) test[2],0,0);
cmdblk675drivers/block/xd.cif (!xd_command(cmdblk,PIO_MODE,0,0,0,XD_TIMEOUT * 2))
cmdblk704drivers/block/xd.cu_char cmdblk[14];
cmdblk706drivers/block/xd.cxd_build(cmdblk,command,drive,0,0,0,0,0);
cmdblk707drivers/block/xd.ccmdblk[6] = (u_char) (cylinders >> 8) & 0x03;
cmdblk708drivers/block/xd.ccmdblk[7] = (u_char) (cylinders & 0xFF);
cmdblk709drivers/block/xd.ccmdblk[8] = heads & 0x1F;
cmdblk710drivers/block/xd.ccmdblk[9] = (u_char) (rwrite >> 8) & 0x03;
cmdblk711drivers/block/xd.ccmdblk[10] = (u_char) (rwrite & 0xFF);
cmdblk712drivers/block/xd.ccmdblk[11] = (u_char) (wprecomp >> 8) & 0x03;
cmdblk713drivers/block/xd.ccmdblk[12] = (u_char) (wprecomp & 0xFF);
cmdblk714drivers/block/xd.ccmdblk[13] = ecc;
cmdblk716drivers/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);