projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
further driver work... up now handles spin down; rest still dont
[unix-history]
/
usr
/
src
/
sys
/
vax
/
uba
/
tm.c
diff --git
a/usr/src/sys/vax/uba/tm.c
b/usr/src/sys/vax/uba/tm.c
index
c68aac5
..
89a1773
100644
(file)
--- a/
usr/src/sys/vax/uba/tm.c
+++ b/
usr/src/sys/vax/uba/tm.c
@@
-1,4
+1,4
@@
-/* tm.c 4.2
0
%G% */
+/* tm.c 4.2
1
%G% */
#include "te.h"
#if NTM > 0
#include "te.h"
#if NTM > 0
@@
-780,10
+780,8
@@
tmdump()
start = 0;
num = maxfree;
#define phys(a,b) ((b)((int)(a)&0x7fffffff))
start = 0;
num = maxfree;
#define phys(a,b) ((b)((int)(a)&0x7fffffff))
- if (tmdinfo[0] == 0) {
- printf("dna\n");
- return (-1);
- }
+ if (tmdinfo[0] == 0)
+ return (ENXIO);
ui = phys(tmdinfo[0], struct uba_dinfo *);
up = phys(ui->ui_hd, struct uba_hd *)->uh_physuba;
#if VAX780
ui = phys(tmdinfo[0], struct uba_dinfo *);
up = phys(ui->ui_hd, struct uba_hd *)->uh_physuba;
#if VAX780
@@
-803,6
+801,8
@@
tmdump()
tmeof(addr);
tmeof(addr);
tmwait(addr);
tmeof(addr);
tmeof(addr);
tmwait(addr);
+ if (addr->tmcs&TM_ERR)
+ return (EIO);
addr->tmcs = TM_REW | TM_GO;
tmwait(addr);
return (0);
addr->tmcs = TM_REW | TM_GO;
tmwait(addr);
return (0);