Annotation of coherent/d/286_KERNEL/USRSRC/286/ld.c, revision 1.1

1.1     ! root        1: /* $Header: /usr/src/sys/i8086/src/RCS/ld.c,v 1.1 88/03/24 17:39:36 src Exp $
        !             2:  *
        !             3:  *     The  information  contained herein  is a trade secret  of INETCO
        !             4:  *     Systems, and is confidential information.   It is provided under
        !             5:  *     a license agreement,  and may be copied or disclosed  only under
        !             6:  *     the terms of that agreement.   Any reproduction or disclosure of
        !             7:  *     this  material  without  the express  written  authorization  of
        !             8:  *     INETCO Systems or persuant to the license agreement is unlawful.
        !             9:  *
        !            10:  *     Copyright (c) 1986
        !            11:  *     An unpublished work by INETCO Systems, Ltd.
        !            12:  *     All rights reserved.
        !            13:  */
        !            14: 
        !            15: /*
        !            16:  * Pseudo-Device Interface to Loadable Drivers.
        !            17:  *
        !            18:  * $Log:       /usr/src/sys/i8086/src/RCS/ld.c,v $
        !            19:  * Revision 1.1        88/03/24  17:39:36      src
        !            20:  * Initial revision
        !            21:  * 
        !            22:  * 87/12/08    Allan Cornish   /usr/src/sys/i8086/src/ld.c
        !            23:  * Block device interface added to loadable drivers.
        !            24:  *
        !            25:  * 87/10/25    Allan Cornish           /usr/src/sys/i8086/drv/ld.c
        !            26:  * Initial version.
        !            27:  */
        !            28: 
        !            29: #include       <sys/coherent.h>
        !            30: #include       <sys/fdisk.h>
        !            31: #include       <sys/buf.h>
        !            32: #include       <sys/con.h>
        !            33: #include       <sys/stat.h>
        !            34: #include       <sys/uproc.h>
        !            35: #include       <errno.h>
        !            36: 
        !            37: /*
        !            38:  * Driver configuration.
        !            39:  */
        !            40: void   ld_open();
        !            41: void   ld_close();
        !            42: void   ld_read();
        !            43: void   ld_write();
        !            44: void   ld_block();
        !            45: int    ld_ioctl();
        !            46: void   ld_power();
        !            47: void   ld_time();
        !            48: int    ld_poll();
        !            49: void   nulldev();
        !            50: void   nonedev();
        !            51: 
        !            52: /*
        !            53:  * Loadable driver: Pseudeo-device configuration.
        !            54:  */
        !            55: CON ldrvpsy = {
        !            56:        DFCHR|DFBLK|DFPOL,              /* Flags */
        !            57:        0,                              /* Major index */
        !            58:        ld_open,                        /* Open */
        !            59:        ld_close,                       /* Close */
        !            60:        ld_block,                       /* Block */
        !            61:        ld_read,                        /* Read */
        !            62:        ld_write,                       /* Write */
        !            63:        ld_ioctl,                       /* Ioctl */
        !            64:        ld_power,                       /* Powerfail */
        !            65:        ld_time,                        /* Timeout */
        !            66:        nulldev,                        /* Load */
        !            67:        nulldev,                        /* Unload */
        !            68:        ld_poll                         /* Poll */
        !            69: };
        !            70: 
        !            71: /*
        !            72:  * Loadable driver: Code selectors.
        !            73:  */
        !            74: saddr_t ldrvsel[NDRV];
        !            75: 
        !            76: /*
        !            77:  * Loadable driver: Pointers to driver configuration table.
        !            78:  */
        !            79: CON * ldrvcon[NDRV];
        !            80: 
        !            81: /*
        !            82:  * Loadable driver: Selector referencing interrupt handler's code segment.
        !            83:  */
        !            84: saddr_t ldrvics[16];
        !            85: 
        !            86: /*
        !            87:  * Loadable driver: Pointers to interrupt handlers within the loadable driver.
        !            88:  */
        !            89: void (*ldrvipc[16])();

unix.superglobalmegacorp.com

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