Lines Matching refs:cmd

33 	uchar		cmd[16];	/* cmd desc */  member
145 static FDC_COMMAND_STRUCT cmd; /* global command struct */ variable
258 pCMD->cmd[0],track,head,sect,pCMD->drive,pCMD->blnr); in fdc_issue_cmd()
261 pCMD->cmd[DRIVE]=pCMD->drive | 0x04; /* head 1 */ in fdc_issue_cmd()
262 pCMD->cmd[HEAD]=(unsigned char) head; /* head register */ in fdc_issue_cmd()
265 pCMD->cmd[DRIVE]=pCMD->drive; /* head 0 */ in fdc_issue_cmd()
266 pCMD->cmd[HEAD]=(unsigned char) head; /* head register */ in fdc_issue_cmd()
268 pCMD->cmd[TRACK]=(unsigned char) track; /* track */ in fdc_issue_cmd()
269 switch (pCMD->cmd[COMMAND]) { in fdc_issue_cmd()
271 pCMD->cmd[SECTOR]=(unsigned char) sect; /* sector */ in fdc_issue_cmd()
272 pCMD->cmd[SECTOR_SIZE]=pFG->sect_code; /* sector size code */ in fdc_issue_cmd()
273 pCMD->cmd[LAST_TRACK]=pFG->sect; /* End of track */ in fdc_issue_cmd()
274 pCMD->cmd[GAP]=pFG->gap; /* gap */ in fdc_issue_cmd()
275 pCMD->cmd[DTL]=0xFF; /* DTL */ in fdc_issue_cmd()
277 pCMD->cmd[COMMAND]|=(FDC_MFM_MODE<<6); /* set MFM bit */ in fdc_issue_cmd()
278 pCMD->cmd[COMMAND]|=(FDC_SKIP_MODE<<5); /* set Skip bit */ in fdc_issue_cmd()
286 pCMD->cmd[CONFIG0]=0; in fdc_issue_cmd()
287 pCMD->cmd[CONFIG1]=FDC_CONFIGURE; /* FIFO Threshold, Poll, Enable FIFO */ in fdc_issue_cmd()
288 pCMD->cmd[CONFIG2]=FDC_PRE_TRK; /* Precompensation Track */ in fdc_issue_cmd()
293 pCMD->cmd[SPEC_HUTSRT]=pFG->spec1; in fdc_issue_cmd()
294 pCMD->cmd[SPEC_HLT]=(pFG->hlt)<<1; /* head load time */ in fdc_issue_cmd()
296 pCMD->cmd[SPEC_HLT]|=0x1; /* no dma */ in fdc_issue_cmd()
305 pCMD->cmd[COMMAND]|=(FDC_MFM_MODE<<6); /* set MFM bit */ in fdc_issue_cmd()
310 pCMD->cmd[DRIVE]&=0x03; /* don't set the head bit */ in fdc_issue_cmd()
322 if (write_fdc_byte(pCMD->cmd[i]) == false) { in fdc_issue_cmd()
368 pCMD->cmd[COMMAND]=FDC_CMD_RECALIBRATE; in fdc_recalibrate()
373 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT; in fdc_recalibrate()
381 pCMD->cmd[COMMAND]=FDC_CMD_SEEK; in fdc_seek()
386 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT; in fdc_seek()
445 pCMD->cmd[COMMAND]=FDC_CMD_READ; in fdc_read_data()
551 pCMD->cmd[COMMAND]=FDC_CMD_READ_ID; in fdc_check_drive()
600 pCMD->cmd[COMMAND]=FDC_CMD_SENSE_INT; in fdc_setup()
608 pCMD->cmd[COMMAND]=FDC_CMD_CONFIGURE; in fdc_setup()
615 pCMD->cmd[COMMAND]=FDC_CMD_SPECIFY; in fdc_setup()
635 FDC_COMMAND_STRUCT *pCMD = &cmd; in do_fdcboot()