Deleted Added
full compact
ppb_msq.h (50477) ppb_msq.h (55939)
1/*-
2 * Copyright (c) 1998 Nicolas Souchu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998 Nicolas Souchu
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/ppbus/ppb_msq.h 50477 1999-08-28 01:08:13Z peter $
26 * $FreeBSD: head/sys/dev/ppbus/ppb_msq.h 55939 2000-01-14 00:18:06Z nsouch $
27 *
28 */
29#ifndef __PPB_MSQ_H
30#define __PPB_MSQ_H
31
32/*
33 * Basic definitions
34 */

--- 118 unchanged lines hidden (view full) ---

153/* return from submicrosequence execution or microseqence execution */
154#define MS_SUBRET(code) { MS_OP_SUBRET, {{ code }}}
155#define MS_RET(code) { MS_OP_RET, {{ code }}}
156
157/*
158 * Function abstraction level
159 */
160
27 *
28 */
29#ifndef __PPB_MSQ_H
30#define __PPB_MSQ_H
31
32/*
33 * Basic definitions
34 */

--- 118 unchanged lines hidden (view full) ---

153/* return from submicrosequence execution or microseqence execution */
154#define MS_SUBRET(code) { MS_OP_SUBRET, {{ code }}}
155#define MS_RET(code) { MS_OP_RET, {{ code }}}
156
157/*
158 * Function abstraction level
159 */
160
161#define ppb_MS_GET_init(dev,body) ppb_MS_init(dev, body, MS_OP_GET)
161#define ppb_MS_GET_init(bus,dev,body) ppb_MS_init(bus, dev, body, MS_OP_GET)
162
162
163#define ppb_MS_PUT_init(dev,body) ppb_MS_init(dev, body, MS_OP_PUT)
163#define ppb_MS_PUT_init(bus,dev,body) ppb_MS_init(bus, dev, body, MS_OP_PUT)
164
165extern int ppb_MS_init(
164
165extern int ppb_MS_init(
166 struct ppb_device *, /* ppbus device */
166 device_t, /* ppbus bus */
167 device_t, /* ppbus device */
167 struct ppb_microseq *, /* loop msq to assign */
168 int opcode /* MS_OP_GET, MS_OP_PUT */
169 );
170
171extern int ppb_MS_init_msq(
172 struct ppb_microseq *,
173 int, /* number of parameters */
174 ... /* descriptor, value, ... */
175 );
176
177extern int ppb_MS_exec(
168 struct ppb_microseq *, /* loop msq to assign */
169 int opcode /* MS_OP_GET, MS_OP_PUT */
170 );
171
172extern int ppb_MS_init_msq(
173 struct ppb_microseq *,
174 int, /* number of parameters */
175 ... /* descriptor, value, ... */
176 );
177
178extern int ppb_MS_exec(
178 struct ppb_device *, /* ppbus device */
179 device_t, /* ppbus bus */
180 device_t, /* ppbus device */
179 int, /* microseq opcode */
180 union ppb_insarg, /* param1 */
181 union ppb_insarg, /* param2 */
182 union ppb_insarg, /* param3 */
183 int * /* returned value */
184 );
185
186extern int ppb_MS_loop(
181 int, /* microseq opcode */
182 union ppb_insarg, /* param1 */
183 union ppb_insarg, /* param2 */
184 union ppb_insarg, /* param3 */
185 int * /* returned value */
186 );
187
188extern int ppb_MS_loop(
187 struct ppb_device *, /* ppbus device */
189 device_t, /* ppbus bus */
190 device_t, /* ppbus device */
188 struct ppb_microseq *, /* prologue msq of loop */
189 struct ppb_microseq *, /* body msq of loop */
190 struct ppb_microseq *, /* epilogue msq of loop */
191 int, /* number of iter */
192 int * /* returned value */
193 );
194
195extern int ppb_MS_microseq(
191 struct ppb_microseq *, /* prologue msq of loop */
192 struct ppb_microseq *, /* body msq of loop */
193 struct ppb_microseq *, /* epilogue msq of loop */
194 int, /* number of iter */
195 int * /* returned value */
196 );
197
198extern int ppb_MS_microseq(
196 struct ppb_device *, /* ppbus device */
199 device_t, /* ppbus bus */
200 device_t, /* ppbus device */
197 struct ppb_microseq *, /* msq to execute */
198 int * /* returned value */
199 );
200
201#endif
201 struct ppb_microseq *, /* msq to execute */
202 int * /* returned value */
203 );
204
205#endif