diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /module/scsiio.m | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'module/scsiio.m')
| -rw-r--r-- | module/scsiio.m | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/module/scsiio.m b/module/scsiio.m new file mode 100644 index 00000000..9db153e8 --- /dev/null +++ b/module/scsiio.m @@ -0,0 +1,27 @@ +# +# adapted from /sys/include/disk.h on Plan 9: subject to the Lucent Public License 1.02 +# +ScsiIO: module +{ + PATH: con "/dis/lib/scsiio.dis"; + + # SCSI interface + Scsi: adt { + lock: chan of int; + inquire: string; + rawfd: ref Sys->FD; + nchange: int; + changetime: int; + + open: fn(f: string): ref Scsi; + rawcmd: fn(s: self ref Scsi, c: array of byte, d: array of byte, io: int): int; + cmd: fn(s: self ref Scsi, c: array of byte, d: array of byte, io: int): int; + ready: fn(s: self ref Scsi): int; + }; + + Sread, Swrite, Snone: con iota; + + scsierror: fn(asc: int, ascq: int): string; + + init: fn(verbose: int); +}; |
