summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c4a6465)
SCCS-vsn: sys/vax/uba/tm.c 4.21
#include "te.h"
#if NTM > 0
#include "te.h"
#if NTM > 0
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
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);