1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)io.h 5.2 (Berkeley) 04/12/91 8 */ 9 10 #define NDDATA 1 11 #define NDLABEL 2 12 #define NDADDR 3 13 #define NDNULL 4 14 15 16 17 18 typedef 19 struct IoAddr 20 { 21 int stg; 22 int memno; 23 ftnint offset; 24 } 25 ioaddr; 26 27 28 29 typedef 30 union IoValue 31 { 32 Constp cp; 33 ftnint label; 34 struct IoAddr addr; 35 } 36 iovalue; 37 38 39 40 typedef 41 struct IoBlock 42 { 43 struct IoBlock *next; 44 int blkno; 45 ftnint len; 46 struct OffsetList *olist; 47 } 48 ioblock; 49 50 51 52 typedef 53 struct OffsetList 54 { 55 struct OffsetList *next; 56 ftnint offset; 57 int tag; 58 union IoValue val; 59 } 60 offsetlist; 61 62 63 64 65 extern ioblock *iodata; 66 67