|
|
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: * Copyright (c) 1995 Apple Computer, Inc.
27: *
28: * The information contained herein is subject to change without
29: * notice and should not be construed as a commitment by Apple
30: * Computer, Inc. Apple Computer, Inc. assumes no responsibility
31: * for any errors that may appear.
32: *
33: * Confidential and Proprietary to Apple Computer, Inc.
34: *
35: * Change Log:
36: * Created February 20, 1995 by Tuyen Nguyen
37: */
38:
39: #ifndef _at_asp_h
40: #define _at_asp_h
41:
42: #define ASPSTATE_Close 0
43: #define ASPSTATE_Idle 1
44: #define ASPSTATE_WaitingForGetStatusRsp 2
45: #define ASPSTATE_WaitingForOpenSessRsp 3
46: #define ASPSTATE_WaitingForCommandRsp 4
47: #define ASPSTATE_WaitingForWriteContinue 5
48: #define ASPSTATE_WaitingForWriteRsp 6
49: #define ASPSTATE_WaitingForWriteContinueRsp 7
50: #define ASPSTATE_WaitingForCloseSessRsp 8
51: #define ASPSTATE_WaitingForCfgAck 9
52:
53: /*
54: * ATP state block
55: */
56: typedef struct {
57: gref_t *atp_gref; /* gref must be the first entry */
58: int pid; /* process id, must be the second entry */
59: gbuf_t *atp_msgq; /* data msg, must be the third entry */
60: unsigned char dflag; /* structure flag, must be the fourth entry */
61: unsigned char filler[3];
62: } atp_state_t;
63:
64: /*
65: * ASP word
66: */
67: typedef struct {
68: unsigned char func;
69: unsigned char param1;
70: unsigned short param2;
71: } asp_word_t;
72:
73: /*
74: * ASP session control block
75: */
76: typedef struct asp_scb {
77: gref_t *gref; /* read queue pointer, must be the first entry */
78: int pid; /* process id, must be the second entry */
79: atp_state_t *atp_state; /* atp state info, must be the third entry */
80: unsigned char dflag; /* structure flag, must be the fourth entry */
81: unsigned char state;
82: unsigned char sess_id;
83: unsigned char tmo_delta;
84: unsigned char tmo_cnt;
85: unsigned char rem_socket;
86: unsigned char rem_node;
87: unsigned char magic_num;
88: unsigned short snd_seq_num;
89: unsigned short rcv_seq_num;
90: unsigned short filler;
91: unsigned short tickle_tid;
92: unsigned short tickle_interval;
93: unsigned short session_timer;
94: unsigned short attn_tid;
95: unsigned char attn_flag;
96: unsigned char req_flag;
97: gbuf_t *req_msgq;
98: unsigned short wrt_seq_num;
99: unsigned char get_wait;
100: unsigned char ioc_wait;
101: at_retry_t cmd_retry;
102: at_inet_t loc_addr;
103: at_inet_t rem_addr;
104: at_inet_t svc_addr;
105: gbuf_t *sess_ioc;
106: gbuf_t *stat_msg;
107: void (*tmo_func)();
108: struct asp_scb *next_tmo;
109: struct asp_scb *prev_tmo;
110: struct asp_scb *sess_scb;
111: struct asp_scb *next_scb;
112: struct asp_scb *prev_scb;
113: unsigned char sel_on;
114: unsigned char user;
115: unsigned char rcv_cnt;
116: unsigned char snd_stop;
117: unsigned char reply_socket;
118: unsigned char if_num;
119: unsigned char pad[2];
120: atlock_t lock;
121: atlock_t delay_lock;
122: atevent_t event;
123: atevent_t delay_event;
124: } asp_scb_t;
125:
126: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.