Annotation of coherent/f/usr/include.78/sys/io.h, revision 1.1.1.1

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:  * /usr/include/sys/io.h
                      8:  *
                      9:  * I/O template.
                     10:  *
                     11:  * Revised: Wed Apr  7 15:09:53 1993 CDT
                     12:  */
                     13: 
                     14: #ifndef         __SYS_IO_H__
                     15: #define         __SYS_IO_H__
                     16: 
                     17: #include <sys/__paddr.h>
                     18: #include <sys/types.h>
                     19: 
                     20: /*
                     21:  * Structure used to store parameters for I/O.
                     22:  */
                     23: typedef struct io {
                     24:        int      io_seg;                /* Space */
                     25:        unsigned io_ioc;                /* Count */
                     26: #ifdef _I386
                     27:        off_t    io_seek;               /* Seek posiion */
                     28:        union {
                     29:                caddr_t vbase;          /* Virtual base */
                     30:                __paddr_t pbase;        /* Physical base */
                     31:        } io;
                     32: #else
                     33:        fsize_t  io_seek;               /* Seek posiion */
                     34:        char     *io_base;              /* Virtual base */
                     35:        __paddr_t       io_phys;        /* Physical base */
                     36: #endif
                     37:        short    io_flag;               /* Flags: 0, IONDLY */
                     38: } IO;
                     39: 
                     40: /*
                     41:  * Types of space I/O operation is being performed from.
                     42:  */
                     43: #define IOSYS  0                       /* System */
                     44: #define IOUSR  1                       /* User */
                     45: #define IOPHY  2                       /* Physical */
                     46: 
                     47: /*
                     48:  * No delay if results are not immediately available.
                     49:  */
                     50: #define        IONDLY  8
                     51: 
                     52: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.