summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
54df343)
SCCS-vsn: sys/tahoe/stand/cy.c 7.6
/*
* Cypher tape driver. Stand alone version.
/*
* Cypher tape driver. Stand alone version.
{
register ctlradr = CYADDR(0);
{
register ctlradr = CYADDR(0);
- if (io->i_unit != 0)
- _stop("Only 1 cypher supported\n");
+ if (io->i_unit != 0) {
+ printf("Only 1 cypher supported\n");
+ return (ENXIO);
+ }
SCP = CYSCP(0); /* absolute - for setup */
CY_RESET(ctlradr); /* reset the controller */
/*
SCP = CYSCP(0); /* absolute - for setup */
CY_RESET(ctlradr); /* reset the controller */
/*
if (tpb.tpstatus & CYS_ERR) {
printf("Cypher initialization error!\n");
cy_print_error(tpb.tpcmd, tpb.tpstatus);
if (tpb.tpstatus & CYS_ERR) {
printf("Cypher initialization error!\n");
cy_print_error(tpb.tpcmd, tpb.tpstatus);
}
uncache(&tpb.tpcount);
cybufsize = tpb.tpcount;
}
uncache(&tpb.tpcount);
cybufsize = tpb.tpcount;
- if (cycmd(io, CY_REW) == -1)
- _stop("Rewind failed!\n");
+ if (cycmd(io, CY_REW) == -1) {
+ printf("cy%d: Rewind failed!\n", io->i_unit);
+ return (ENXIO);
+ }
- if (cycmd(io, CY_FSF) == -1)
- _stop("cy: seek failure!\n");
+ if (cycmd(io, CY_FSF) == -1) {
+ printf("cy%d: seek failure!\n", io->i_unit);
+ return (ENXIO);
+ }
io->i_boff--;
}
#ifdef notdef
io->i_boff--;
}
#ifdef notdef