From 07c4ce0d6ff2902306d5e46d083707954af6ba6d Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 21 Feb 1994 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1994-02-21 --- port/portdat.h | 20 ++++++++++++++++++++ port/portfns.h | 2 ++ 2 files changed, 22 insertions(+) diff --git a/port/portdat.h b/port/portdat.h index 44f31c911bcc40a4fd13f8eacb0de97c99d19cd8..b7084a5a68a828425f66593efdef150217af7cd3 100644 --- a/port/portdat.h +++ b/port/portdat.h @@ -35,6 +35,7 @@ typedef struct Schedq Schedq; typedef struct Segment Segment; typedef struct Session Session; typedef struct Talarm Talarm; +typedef struct Target Target; typedef struct Waitq Waitq; typedef int Devgen(Chan*, Dirtab*, int, int, Dir*); @@ -639,6 +640,25 @@ enum AUTHLEN = 8, }; +/* Things scsi */ +enum +{ + STharderr =-1, /* Command status error returns */ + STok = 0, + STcheck = 2, + STcondmet = 4, + STbusy = 8, + STintok = 16, + STconflict = 18, + STintcondmet = 20, + STterminated = 22, + STresconf = 24, + STqfull = 28, + + SCSIread = 0, + SCSIwrite, +}; + /* * mouse types */ diff --git a/port/portfns.h b/port/portfns.h index e41df9408d3bb4deebb0a29a9449b6431a4eaef5..68ad0e3ec5735db1a32129e5670c9dfcb61830a6 100644 --- a/port/portfns.h +++ b/port/portfns.h @@ -213,6 +213,8 @@ void sched(void); void schedinit(void); int screenbits(void); void screenupdate(void); +int scsiexec(Target*, int, uchar*, int, void*, int); +int scsiinv(int, int, Target**, uchar**, int*, int*); long seconds(void); ulong segattach(Proc*, ulong, char *, ulong, ulong); void segpage(Segment*, Page*);