Merge zeep.eecs.umich.edu:/m5/Bitkeeper/alpha-system
[gem5.git] / system / alpha / h / buffer.h
1 #ifndef __BUFFER_H_LOADED
2 #define __BUFFER_H_LOADED
3 /*****************************************************************************
4
5 Copyright © 1993, 1994 Digital Equipment Corporation,
6 Maynard, Massachusetts.
7
8 All Rights Reserved
9
10 Permission to use, copy, modify, and distribute this software and its
11 documentation for any purpose and without fee is hereby granted, provided
12 that the copyright notice and this permission notice appear in all copies
13 of software and supporting documentation, and that the name of Digital not
14 be used in advertising or publicity pertaining to distribution of the software
15 without specific, written prior permission. Digital grants this permission
16 provided that you prominently mark, as not part of the original, any
17 modifications made to this software or documentation.
18
19 Digital Equipment Corporation disclaims all warranties and/or guarantees
20 with regard to this software, including all implied warranties of fitness for
21 a particular purpose and merchantability, and makes no representations
22 regarding the use of, or the results of the use of, the software and
23 documentation in terms of correctness, accuracy, reliability, currentness or
24 otherwise; and you rely on the software, documentation and results solely at
25 your own risk.
26
27 ******************************************************************************/
28
29 /*
30 * $Id: buffer.h,v 1.1.1.1 1997/10/30 23:27:14 verghese Exp $;
31 */
32
33 /*
34 * $Log: buffer.h,v $
35 * Revision 1.1.1.1 1997/10/30 23:27:14 verghese
36 * current 10/29/97
37 *
38 * Revision 1.3 1994/08/05 20:13:47 fdh
39 * Updated Copyright header and RCS $Id: identifier.
40 *
41 * Revision 1.2 1994/06/20 14:18:59 fdh
42 * Fixup header file preprocessor #include conditionals.
43 *
44 * Revision 1.1 1993/06/08 19:56:12 fdh
45 * Initial revision
46 *
47 */
48
49
50 /* buffer.h */
51 /* definitions for buffer management */
52
53
54 typedef struct Packet {
55 struct Packet *link;
56 char dest[6];
57 char src[6];
58 short unsigned count;
59 char data[1536];
60 } PACKET;
61
62 #define BSIZE (sizeof(PACKET))
63 #define buffer_NIL ((PACKET *) 0)
64
65
66 extern void buffer_init(PACKET *start, int size);
67 extern PACKET *buffer_alloc();
68 extern void buffer_free(PACKET *p);
69
70 #endif /* __BUFFER_H_LOADED */