D | pt.c | 230 static int pt_identify(struct pt_unit *tape); 266 static inline u8 DRIVE(struct pt_unit *tape) in DRIVE() argument 268 return 0xa0+0x10*tape->drive; in DRIVE() 271 static int pt_wait(struct pt_unit *tape, int go, int stop, char *fun, char *msg) in pt_wait() argument 274 struct pi_adapter *pi = tape->pi; in pt_wait() 290 tape->name, fun, msg, r, s, e, j, p); in pt_wait() 296 static int pt_command(struct pt_unit *tape, char *cmd, int dlen, char *fun) in pt_command() argument 298 struct pi_adapter *pi = tape->pi; in pt_command() 301 write_reg(pi, 6, DRIVE(tape)); in pt_command() 303 if (pt_wait(tape, STAT_BUSY | STAT_DRQ, 0, fun, "before command")) { in pt_command() [all …]
|