Annotation of kernel/bsd/dev/zsio.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: /* Copyright (c) 1992 NeXT Computer, Inc.  All rights reserved.
        !            26:  *
        !            27:  *     Serial port ioctl definitions.
        !            28:  */
        !            29: 
        !            30: #import        <sys/ioctl.h>
        !            31: 
        !            32: 
        !            33: /*
        !            34:  * Modem signals: for use with TIOCMGET, TIOCMBIS, TIOCMBIC, and TIOCMSET
        !            35:  */
        !            36: #define        DML_DSR         0000400         /* data set ready, not a real DM bit */
        !            37: #define        DML_RNG         0000200         /* ring */
        !            38: #define        DML_CAR         0000100         /* carrier detect */
        !            39: #define        DML_CTS         0000040         /* clear to send */
        !            40: #define        DML_SR          0000020         /* secondary receive */
        !            41: #define        DML_ST          0000010         /* secondary transmit */
        !            42: #define        DML_RTS         0000004         /* request to send */
        !            43: #define        DML_DTR         0000002         /* data terminal ready */
        !            44: #define        DML_LE          0000001         /* line enable */
        !            45: 
        !            46: #ifdef KERNEL_PRIVATE
        !            47: 
        !            48: /*
        !            49:  * Macros for breaking subfields out of device minor number
        !            50:  */
        !            51: #define        ZSUNIT(m)       ((m) & 0x1f)    /* unit number */
        !            52: #define        ZSFLOWCTL(m)    ((m) & 0x20)    /* hw flow control */
        !            53: #define        ZSHARDCAR(m)    ((m) & 0x40)    /* hard carrier */
        !            54: #define        ZSOUTWARD(m)    ((m) & 0x80)    /* outward line */
        !            55: 
        !            56: #endif /* KERNEL_PRIVATE */
        !            57: 
        !            58: /*
        !            59:  * ioctl to change receiver silo delay
        !            60:  */
        !            61: #define        ZIOCTGET        _IOR('z', 0, int)       /* get silo delay */
        !            62: #define        ZIOCTSET        _IOW('z', 1, int)       /* set silo delay */
        !            63: 
        !            64: /*
        !            65:  * ioctl to get serial line features
        !            66:  * (OR of supported features is returned)
        !            67:  */
        !            68: #define        ZIOCFGET        _IOR('z', 2, int)       /* get features */
        !            69: 
        !            70: #define        ZSFEATURE_HWFLOWCTRL    0x0001          /* CTS/RTS flow control */
        !            71: 
        !            72: 

unix.superglobalmegacorp.com

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