1 |
/* IPC message definitions. |
/* IPC message definitions. |
2 |
Copyright 1999, 2000, 2001 Johan Rydberg, jrydberg@opencores.org. |
Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@rtmk.org. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
5 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
79 |
|
|
80 |
|
|
81 |
/* Message type header. |
/* Message type header. |
|
|
|
82 |
All elements of a typed (complex) message must start with one |
All elements of a typed (complex) message must start with one |
83 |
of these headers. */ |
of these headers. */ |
84 |
|
struct rtmk_msg_type |
|
struct rtmk_msg_type |
|
85 |
{ |
{ |
86 |
unsigned int msgt_type: 8, /* 04 type of data element */ |
unsigned int msgt_type: 8; /* 08 type of data element */ |
87 |
/*vm_size_t*/ msgt_length: 20, /* 28 length of element */ |
unsigned int msgt_length: 8; /* 16 length of element */ |
88 |
/*boolean_t*/ msgt_inline: 1, /* 29 inline data (or not) */ |
unsigned int msgt_inline: 1; /* 17 inline data (or not) */ |
89 |
/*boolean_t*/ msgt_deallocate: 1; /* 30 deallocate */ |
unsigned int msgt_long: 1; /* 18 long format? */ |
90 |
|
unsigned int msgt_deallocate: 1; /* 19 deallocate? */ |
91 |
|
unsigned int msgt_reserved: 1; /* 20 reserved */ |
92 |
|
unsigned int msgt_number: 12; /* 32 number of elements */ |
93 |
}; |
}; |
94 |
|
|
95 |
typedef struct rtmk_msg_type rtmk_msg_type_t; |
typedef struct rtmk_msg_type rtmk_msg_type_t; |
96 |
|
|
97 |
|
/* Message type header for long elements. */ |
98 |
|
struct rtmk_msg_type_long |
99 |
|
{ |
100 |
|
struct rtmk_msg_type msgtl_type; /* 32 type header */ |
101 |
|
unsigned int msgtl_number; /* 64 number of elements */ |
102 |
|
}; |
103 |
|
|
104 |
|
typedef struct rtmk_msg_type_long rtmk_msg_type_long_t; |
105 |
|
|
106 |
|
|
107 |
/* Data types that is supported by the IPC system. */ |
/* Data types that is supported by the IPC system. */ |
108 |
|
|