FreeBSD/Linux Kernel Cross Reference
sys/chips/tca100_if.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: tca100_if.h,v $
29 * Revision 2.2 93/08/10 15:19:17 mrt
30 * Initial check-in.
31 * [93/06/09 15:57:59 jcb]
32 *
33 *
34 */
35
36 /*** TCA 100 ATM NETWORK INTERFACE ***/
37
38 #ifndef STUB
39 #include <chips/nc.h>
40 #include <chips/spans.h>
41 #include <chips/tca100.h>
42 #else
43 #include "nc.h"
44 #include "spans.h"
45 #include "tca100.h"
46 #endif
47
48 typedef struct {
49 nw_ep ep;
50 int time_out;
51 int retry;
52 } nw_control_s, *nw_control_t;
53
54
55 typedef struct {
56 u_int rx_sar_header;
57 u_int rx_cs_header;
58 u_int *rx_p;
59 u_int rx_count;
60 u_int rx_next_synch;
61 nw_buffer_t rx_buffer;
62 nw_control_t rx_control;
63 u_int tx_atm_header;
64 u_int tx_sar_header;
65 u_int tx_cs_header;
66 u_int *tx_p;
67 u_int tx_msg_count;
68 u_int tx_block_count;
69 u_int tx_synch;
70 u_int tx_queued_count;
71 nw_control_t tx_control;
72 u_int reply;
73 } nw_tcb, *nw_tcb_t;
74
75 extern nw_tcb tct[MAX_EP];
76
77 extern nw_dev_entry_s tca100_entry_table;
78
79 extern nw_result tca100_initialize(int dev);
80
81 extern nw_result tca100_status(int dev);
82
83 extern void tca100_timer_sweep(int dev);
84
85 extern int tca100_poll(int dev);
86
87 extern nw_result tca100_send(nw_ep ep, nw_tx_header_t header,
88 nw_options options);
89
90 extern nw_buffer_t tca100_rpc(nw_ep ep, nw_tx_header_t header,
91 nw_options options);
92
93
94
95
96
97
98
Cache object: 2c7cad63b7b1b013023754254c7cef98
|