1*6373Smckusic /* saio.h 4.6 03/30/82 */ 2325Sbill 3325Sbill /* 4325Sbill * header file for standalone package 5325Sbill */ 6325Sbill 7325Sbill /* 8325Sbill * io block: includes an 9325Sbill * inode, cells for the use of seek, etc, 10325Sbill * and a buffer. 11325Sbill */ 12325Sbill struct iob { 13325Sbill char i_flgs; 14325Sbill struct inode i_ino; 15325Sbill int i_unit; 16325Sbill daddr_t i_boff; 17325Sbill daddr_t i_cyloff; 18325Sbill off_t i_offset; 19325Sbill daddr_t i_bn; 20325Sbill char *i_ma; 21325Sbill int i_cc; 226004Smckusic char i_buf[MAXBSIZE]; 236004Smckusic union { 246004Smckusic struct fs ui_fs; 256004Smckusic char dummy[SBSIZE]; 266004Smckusic } i_un; 27325Sbill }; 286004Smckusic #define i_fs i_un.ui_fs 29325Sbill 30325Sbill #define F_READ 01 31325Sbill #define F_WRITE 02 32325Sbill #define F_ALLOC 04 33325Sbill #define F_FILE 010 34325Sbill 35325Sbill /* 36325Sbill * dev switch 37325Sbill */ 38325Sbill struct devsw { 39325Sbill char *dv_name; 40325Sbill int (*dv_strategy)(); 41325Sbill int (*dv_open)(); 42325Sbill int (*dv_close)(); 43325Sbill }; 44325Sbill 45325Sbill struct devsw devsw[]; 46325Sbill 47325Sbill /* 48325Sbill * request codes. Must be the same a F_XXX above 49325Sbill */ 50325Sbill #define READ 1 51325Sbill #define WRITE 2 52325Sbill 53325Sbill #define NBUFS 4 54325Sbill 556004Smckusic char b[NBUFS][MAXBSIZE]; 56325Sbill daddr_t blknos[NBUFS]; 57325Sbill 58325Sbill #define NFILES 4 59325Sbill struct iob iob[NFILES]; 60*6373Smckusic 61*6373Smckusic #define PHYSUBA0 0x20006000 62*6373Smckusic #define PHYSMBA0 0x20010000 63*6373Smckusic #define PHYSMBA1 0x20012000 64*6373Smckusic #define PHYSUMEM 0x2013e000 65