Lines Matching +full:a +full:- +full:h
1 /* $NetBSD: bus.h,v 1.11 2003/07/28 17:35:54 thorpej Exp $ */
3 /*-
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
33 /*-
54 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
63 * From: sys/arm/include/bus.h
67 #include <arm/bus.h>
73 #include <machine/_bus.h>
285 #include <sys/bus_san.h>
291 #define __bs_c(a,b) __CONCAT(a,b) argument
294 #define __bs_rs(sz, t, h, o) \ argument
295 (*(t)->__bs_opname(r,sz))((t)->bs_cookie, h, o)
296 #define __bs_ws(sz, t, h, o, v) \ argument
297 (*(t)->__bs_opname(w,sz))((t)->bs_cookie, h, o, v)
298 #define __bs_nonsingle(type, sz, t, h, o, a, c) \ argument
299 (*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, a, c)
300 #define __bs_set(type, sz, t, h, o, v, c) \ argument
301 (*(t)->__bs_opname(type,sz))((t)->bs_cookie, h, o, v, c)
303 (*(t)->__bs_opname(c,sz))((t)->bs_cookie, h1, o1, h2, o2, cnt)
306 #define __bs_rs_s(sz, t, h, o) \ argument
307 (*(t)->__bs_opname_s(r,sz))((t)->bs_cookie, h, o)
308 #define __bs_ws_s(sz, t, h, o, v) \ argument
309 (*(t)->__bs_opname_s(w,sz))((t)->bs_cookie, h, o, v)
310 #define __bs_peek(sz, t, h, o, vp) \ argument
311 (*(t)->__bs_opname(peek, sz))((t)->bs_cookie, h, o, vp)
312 #define __bs_poke(sz, t, h, o, v) \ argument
313 (*(t)->__bs_opname(poke, sz))((t)->bs_cookie, h, o, v)
314 #define __bs_nonsingle_s(type, sz, t, h, o, a, c) \ argument
315 (*(t)->__bs_opname_s(type,sz))((t)->bs_cookie, h, o, a, c)
320 #define bus_space_map(t, a, s, c, hp) \ argument
321 (*(t)->bs_map)((t)->bs_cookie, (a), (s), (c), (hp))
322 #define bus_space_unmap(t, h, s) \ argument
323 (*(t)->bs_unmap)((t)->bs_cookie, (h), (s))
324 #define bus_space_subregion(t, h, o, s, hp) \ argument
325 (*(t)->bs_subregion)((t)->bs_cookie, (h), (o), (s), (hp))
330 #define bus_space_alloc(t, rs, re, s, a, b, c, ap, hp) \ argument
331 (*(t)->bs_alloc)((t)->bs_cookie, (rs), (re), (s), (a), (b), \
333 #define bus_space_free(t, h, s) \ argument
334 (*(t)->bs_free)((t)->bs_cookie, (h), (s))
339 #define bus_space_barrier(t, h, o, l, f) \ argument
340 (*(t)->bs_barrier)((t)->bs_cookie, (h), (o), (l), (f))
345 #define bus_space_read_1(t, h, o) __bs_rs(1,(t),(h),(o)) argument
346 #define bus_space_read_2(t, h, o) __bs_rs(2,(t),(h),(o)) argument
347 #define bus_space_read_4(t, h, o) __bs_rs(4,(t),(h),(o)) argument
348 #define bus_space_read_8(t, h, o) __bs_rs(8,(t),(h),(o)) argument
350 #define bus_space_read_stream_1(t, h, o) __bs_rs_s(1,(t), (h), (o)) argument
351 #define bus_space_read_stream_2(t, h, o) __bs_rs_s(2,(t), (h), (o)) argument
352 #define bus_space_read_stream_4(t, h, o) __bs_rs_s(4,(t), (h), (o)) argument
353 #define bus_space_read_stream_8(t, h, o) __bs_rs_s(8,(t), (h), (o)) argument
358 #define bus_space_read_multi_1(t, h, o, a, c) \ argument
359 __bs_nonsingle(rm,1,(t),(h),(o),(a),(c))
360 #define bus_space_read_multi_2(t, h, o, a, c) \ argument
361 __bs_nonsingle(rm,2,(t),(h),(o),(a),(c))
362 #define bus_space_read_multi_4(t, h, o, a, c) \ argument
363 __bs_nonsingle(rm,4,(t),(h),(o),(a),(c))
364 #define bus_space_read_multi_8(t, h, o, a, c) \ argument
365 __bs_nonsingle(rm,8,(t),(h),(o),(a),(c))
367 #define bus_space_read_multi_stream_1(t, h, o, a, c) \ argument
368 __bs_nonsingle_s(rm,1,(t),(h),(o),(a),(c))
369 #define bus_space_read_multi_stream_2(t, h, o, a, c) \ argument
370 __bs_nonsingle_s(rm,2,(t),(h),(o),(a),(c))
371 #define bus_space_read_multi_stream_4(t, h, o, a, c) \ argument
372 __bs_nonsingle_s(rm,4,(t),(h),(o),(a),(c))
373 #define bus_space_read_multi_stream_8(t, h, o, a, c) \ argument
374 __bs_nonsingle_s(rm,8,(t),(h),(o),(a),(c))
379 #define bus_space_read_region_1(t, h, o, a, c) \ argument
380 __bs_nonsingle(rr,1,(t),(h),(o),(a),(c))
381 #define bus_space_read_region_2(t, h, o, a, c) \ argument
382 __bs_nonsingle(rr,2,(t),(h),(o),(a),(c))
383 #define bus_space_read_region_4(t, h, o, a, c) \ argument
384 __bs_nonsingle(rr,4,(t),(h),(o),(a),(c))
385 #define bus_space_read_region_8(t, h, o, a, c) \ argument
386 __bs_nonsingle(rr,8,(t),(h),(o),(a),(c))
388 #define bus_space_read_region_stream_1(t, h, o, a, c) \ argument
389 __bs_nonsingle_s(rr,1,(t),(h),(o),(a),(c))
390 #define bus_space_read_region_stream_2(t, h, o, a, c) \ argument
391 __bs_nonsingle_s(rr,2,(t),(h),(o),(a),(c))
392 #define bus_space_read_region_stream_4(t, h, o, a, c) \ argument
393 __bs_nonsingle_s(rr,4,(t),(h),(o),(a),(c))
394 #define bus_space_read_region_stream_8(t, h, o, a, c) \ argument
395 __bs_nonsingle_s(rr,8,(t),(h),(o),(a),(c))
400 #define bus_space_write_1(t, h, o, v) __bs_ws(1,(t),(h),(o),(v)) argument
401 #define bus_space_write_2(t, h, o, v) __bs_ws(2,(t),(h),(o),(v)) argument
402 #define bus_space_write_4(t, h, o, v) __bs_ws(4,(t),(h),(o),(v)) argument
403 #define bus_space_write_8(t, h, o, v) __bs_ws(8,(t),(h),(o),(v)) argument
405 #define bus_space_write_stream_1(t, h, o, v) __bs_ws_s(1,(t),(h),(o),(v)) argument
406 #define bus_space_write_stream_2(t, h, o, v) __bs_ws_s(2,(t),(h),(o),(v)) argument
407 #define bus_space_write_stream_4(t, h, o, v) __bs_ws_s(4,(t),(h),(o),(v)) argument
408 #define bus_space_write_stream_8(t, h, o, v) __bs_ws_s(8,(t),(h),(o),(v)) argument
413 #define bus_space_write_multi_1(t, h, o, a, c) \ argument
414 __bs_nonsingle(wm,1,(t),(h),(o),(a),(c))
415 #define bus_space_write_multi_2(t, h, o, a, c) \ argument
416 __bs_nonsingle(wm,2,(t),(h),(o),(a),(c))
417 #define bus_space_write_multi_4(t, h, o, a, c) \ argument
418 __bs_nonsingle(wm,4,(t),(h),(o),(a),(c))
419 #define bus_space_write_multi_8(t, h, o, a, c) \ argument
420 __bs_nonsingle(wm,8,(t),(h),(o),(a),(c))
422 #define bus_space_write_multi_stream_1(t, h, o, a, c) \ argument
423 __bs_nonsingle_s(wm,1,(t),(h),(o),(a),(c))
424 #define bus_space_write_multi_stream_2(t, h, o, a, c) \ argument
425 __bs_nonsingle_s(wm,2,(t),(h),(o),(a),(c))
426 #define bus_space_write_multi_stream_4(t, h, o, a, c) \ argument
427 __bs_nonsingle_s(wm,4,(t),(h),(o),(a),(c))
428 #define bus_space_write_multi_stream_8(t, h, o, a, c) \ argument
429 __bs_nonsingle_s(wm,8,(t),(h),(o),(a),(c))
434 #define bus_space_write_region_1(t, h, o, a, c) \ argument
435 __bs_nonsingle(wr,1,(t),(h),(o),(a),(c))
436 #define bus_space_write_region_2(t, h, o, a, c) \ argument
437 __bs_nonsingle(wr,2,(t),(h),(o),(a),(c))
438 #define bus_space_write_region_4(t, h, o, a, c) \ argument
439 __bs_nonsingle(wr,4,(t),(h),(o),(a),(c))
440 #define bus_space_write_region_8(t, h, o, a, c) \ argument
441 __bs_nonsingle(wr,8,(t),(h),(o),(a),(c))
443 #define bus_space_write_region_stream_1(t, h, o, a, c) \ argument
444 __bs_nonsingle_s(wr,1,(t),(h),(o),(a),(c))
445 #define bus_space_write_region_stream_2(t, h, o, a, c) \ argument
446 __bs_nonsingle_s(wr,2,(t),(h),(o),(a),(c))
447 #define bus_space_write_region_stream_4(t, h, o, a, c) \ argument
448 __bs_nonsingle_s(wr,4,(t),(h),(o),(a),(c))
449 #define bus_space_write_region_stream_8(t, h, o, a, c) \ argument
450 __bs_nonsingle_s(wr,8,(t),(h),(o),(a),(c))
455 #define bus_space_set_multi_1(t, h, o, v, c) \ argument
456 __bs_set(sm,1,(t),(h),(o),(v),(c))
457 #define bus_space_set_multi_2(t, h, o, v, c) \ argument
458 __bs_set(sm,2,(t),(h),(o),(v),(c))
459 #define bus_space_set_multi_4(t, h, o, v, c) \ argument
460 __bs_set(sm,4,(t),(h),(o),(v),(c))
461 #define bus_space_set_multi_8(t, h, o, v, c) \ argument
462 __bs_set(sm,8,(t),(h),(o),(v),(c))
464 #define bus_space_set_multi_stream_1(t, h, o, v, c) \ argument
465 bus_space_set_multi_1((t), (h), (o), (v), (c))
466 #define bus_space_set_multi_stream_2(t, h, o, v, c) \ argument
467 bus_space_set_multi_2((t), (h), (o), (v), (c))
468 #define bus_space_set_multi_stream_4(t, h, o, v, c) \ argument
469 bus_space_set_multi_4((t), (h), (o), (v), (c))
470 #define bus_space_set_multi_stream_8(t, h, o, v, c) \ argument
471 bus_space_set_multi_8((t), (h), (o), (v), (c))
476 #define bus_space_set_region_1(t, h, o, v, c) \ argument
477 __bs_set(sr,1,(t),(h),(o),(v),(c))
478 #define bus_space_set_region_2(t, h, o, v, c) \ argument
479 __bs_set(sr,2,(t),(h),(o),(v),(c))
480 #define bus_space_set_region_4(t, h, o, v, c) \ argument
481 __bs_set(sr,4,(t),(h),(o),(v),(c))
482 #define bus_space_set_region_8(t, h, o, v, c) \ argument
483 __bs_set(sr,8,(t),(h),(o),(v),(c))
485 #define bus_space_set_region_stream_1(t, h, o, v, c) \ argument
486 bus_space_set_region_1((t), (h), (o), (v), (c))
487 #define bus_space_set_region_stream_2(t, h, o, v, c) \ argument
488 bus_space_set_region_2((t), (h), (o), (v), (c))
489 #define bus_space_set_region_stream_4(t, h, o, v, c) \ argument
490 bus_space_set_region_4((t), (h), (o), (v), (c))
491 #define bus_space_set_region_stream_8(t, h, o, v, c) \ argument
492 bus_space_set_region_8((t), (h), (o), (v), (c))
509 #define bus_space_poke_1(t, h, o, v) __bs_poke(1, (t), (h), (o), (v)) argument
510 #define bus_space_poke_2(t, h, o, v) __bs_poke(2, (t), (h), (o), (v)) argument
511 #define bus_space_poke_4(t, h, o, v) __bs_poke(4, (t), (h), (o), (v)) argument
512 #define bus_space_poke_8(t, h, o, v) __bs_poke(8, (t), (h), (o), (v)) argument
517 #define bus_space_peek_1(t, h, o, vp) __bs_peek(1, (t), (h), (o), (vp)) argument
518 #define bus_space_peek_2(t, h, o, vp) __bs_peek(2, (t), (h), (o), (vp)) argument
519 #define bus_space_peek_4(t, h, o, vp) __bs_peek(4, (t), (h), (o), (vp)) argument
520 #define bus_space_peek_8(t, h, o, vp) __bs_peek(8, (t), (h), (o), (vp)) argument
524 #include <machine/bus_dma.h>