Annotation of kernel/bsd/netat/at/pap.h, revision 1.1.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: /*
                     26:  *
                     27:  * ORIGINS: 82
                     28:  *
                     29:  * APPLE CONFIDENTIAL
                     30:  * (C) COPYRIGHT Apple Computer, Inc. 1992-1996
                     31:  * All Rights Reserved
                     32:  *
                     33:  */                                                                   
                     34: 
                     35: /* Definitions for ATP protocol and streams module, per 
                     36:  * AppleTalk Transaction Protocol documentation from
                     37:  * `Inside AppleTalk', July 14, 1986.
                     38:  */
                     39: 
                     40: #ifndef __PAP__
                     41: #define __PAP__
                     42: 
                     43: 
                     44: #define  AT_PAP_DATA_SIZE            512    /* Maximum PAP data size */
                     45: #define  AT_PAP_STATUS_SIZE          255    /* Maximum PAP status length */
                     46: #define  PAP_TIMEOUT                 120
                     47: 
                     48: /* PAP packet types */
                     49: 
                     50: #define  AT_PAP_TYPE_OPEN_CONN        0x01   /* Open-Connection packet */
                     51: #define  AT_PAP_TYPE_OPEN_CONN_REPLY  0x02   /* Open-Connection-Reply packet */
                     52: #define  AT_PAP_TYPE_SEND_DATA        0x03   /* Send-Data packet */
                     53: #define  AT_PAP_TYPE_DATA             0x04   /* Data packet */
                     54: #define  AT_PAP_TYPE_TICKLE           0x05   /* Tickle packet */
                     55: #define  AT_PAP_TYPE_CLOSE_CONN       0x06   /* Close-Connection packet */
                     56: #define  AT_PAP_TYPE_CLOSE_CONN_REPLY 0x07   /* Close-Connection-Reply pkt */
                     57: #define  AT_PAP_TYPE_SEND_STATUS      0x08   /* Send-Status packet */
                     58: #define  AT_PAP_TYPE_SEND_STS_REPLY   0x09   /* Send-Status-Reply packet */
                     59: #define  AT_PAP_TYPE_READ_LW         0x0A   /* Read LaserWriter Message */
                     60: 
                     61: 
                     62: /* PAP packet structure */
                     63: 
                     64: typedef struct {
                     65:         u_char     at_pap_connection_id;
                     66:         u_char    at_pap_type;
                     67:         u_char     at_pap_sequence_number[2];
                     68:         at_socket  at_pap_responding_socket;
                     69:         u_char     at_pap_flow_quantum;
                     70:         u_char     at_pap_wait_time_or_result[2];
                     71:         u_char     at_pap_buffer[AT_PAP_DATA_SIZE];
                     72: } at_pap;
                     73: 
                     74: 
                     75: /* ioctl definitions */
                     76: 
                     77: #define        AT_PAP_SETHDR           (('~'<<8)|0)
                     78: #define        AT_PAP_READ             (('~'<<8)|1)
                     79: #define        AT_PAP_WRITE            (('~'<<8)|2)
                     80: #define        AT_PAP_WRITE_EOF        (('~'<<8)|3)
                     81: #define        AT_PAP_WRITE_FLUSH      (('~'<<8)|4)
                     82: #define        AT_PAP_READ_IGNORE      (('~'<<8)|5)
                     83: #define        AT_PAPD_SET_STATUS      (('~'<<8)|40)
                     84: #define        AT_PAPD_GET_NEXT_JOB    (('~'<<8)|41)
                     85: 
                     86: extern char    at_pap_status[];
                     87: extern  char   *pap_status ();
                     88: 
                     89: #endif /* __PAP__ */

unix.superglobalmegacorp.com

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