|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT Version 4.0 ! 3: * Copyright 1984, 1992 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: /* ! 7: * I/O template. ! 8: */ ! 9: ! 10: #ifndef IO_H ! 11: #define IO_H IO_H ! 12: ! 13: #include <sys/types.h> ! 14: ! 15: /* ! 16: * Structure used to store parameters for I/O. ! 17: */ ! 18: typedef struct io { ! 19: int io_seg; /* Space */ ! 20: unsigned io_ioc; /* Count */ ! 21: #ifdef _I386 ! 22: off_t io_seek; /* Seek posiion */ ! 23: union { ! 24: vaddr_t vbase; /* Virtual base */ ! 25: paddr_t pbase; /* Physical base */ ! 26: } io; ! 27: #else ! 28: fsize_t io_seek; /* Seek posiion */ ! 29: char *io_base; /* Virtual base */ ! 30: paddr_t io_phys; /* Physical base */ ! 31: #endif ! 32: short io_flag; /* Flags: 0, IONDLY */ ! 33: } IO; ! 34: ! 35: /* ! 36: * Types of space I/O operation is being performed from. ! 37: */ ! 38: #define IOSYS 0 /* System */ ! 39: #define IOUSR 1 /* User */ ! 40: #define IOPHY 2 /* Physical */ ! 41: ! 42: /* ! 43: * No delay if results are not immediately available. ! 44: */ ! 45: #define IONDLY 8 ! 46: ! 47: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.