1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 /********************************************************************20**
21 Name: System Services -- STREAMS
25 Desc: Various macro definitions required for STREAMS.
29 *********************************************************************21*/
41 /* STREAMS message types */
50 #define SS_M_SETOPTS 8
54 /* message initialization macro */
56 #ifdef SS_DBLK_FREE_RTN
57 #define SS_STRM_INITB(mp, dp, dat, size, frtn) \
58 (mp)->b_next = NULLP; \
59 (mp)->b_prev = NULLP; \
60 (mp)->b_cont = NULLP; \
61 (mp)->b_rptr = (dat); \
62 (mp)->b_wptr = (dat); \
63 (mp)->b_datap = (dp); \
64 (dp)->db_frtnp = (frtn); \
65 (dp)->db_base = (dat); \
66 (dp)->db_lim = (dat) == NULLP ? (dat) : ((dat) + (size)); \
68 (dp)->db_type = SS_M_DATA; \
72 #define SS_STRM_INITB(mp, dp, dat, size, frtn) \
73 (mp)->b_next = NULLP; \
74 (mp)->b_prev = NULLP; \
75 (mp)->b_cont = NULLP; \
76 (mp)->b_rptr = (dat); \
77 (mp)->b_wptr = (dat); \
78 (mp)->b_datap = (dp); \
79 (dp)->db_base = (dat); \
80 (dp)->db_lim = (dat) == NULLP ? (dat) : ((dat) + (size)); \
82 (dp)->db_type = SS_M_DATA; \
84 #endif /* SS_DBLK_FREE_RTN */
91 #endif /* __SSSTRMH__ */
93 /**********************************************************************
95 **********************************************************************/