1272343Sngie/* 2272343Sngie * Copyright (c) 2001 HAMAJIMA Katsuomi. All rights reserved. 3272343Sngie * 4272343Sngie * Redistribution and use in source and binary forms, with or without 5272343Sngie * modification, are permitted provided that the following conditions 6272343Sngie * are met: 7272343Sngie * 1. Redistributions of source code must retain the above copyright 8272343Sngie * notice, this list of conditions and the following disclaimer. 9272343Sngie * 2. Redistributions in binary form must reproduce the above copyright 10272343Sngie * notice, this list of conditions and the following disclaimer in the 11272343Sngie * documentation and/or other materials provided with the distribution. 12272343Sngie * 13272343Sngie * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14272343Sngie * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15272343Sngie * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16272343Sngie * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17272343Sngie * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18272343Sngie * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19272343Sngie * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20272343Sngie * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21272343Sngie * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22272343Sngie * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23272343Sngie * SUCH DAMAGE. 24272343Sngie */ 25272343Sngie 26272343Sngie#define VRDMAAU_BOUNCE_THRESHOLD (64 * 1024 * 1024) 27272343Sngie#define VRDMAAU_ALIGNMENT (1 << 10) 28272343Sngie 29272343Sngiestruct vrdmaau_chipset_tag; 30272343Sngietypedef struct vrdmaau_chipset_tag *vrdmaau_chipset_tag_t; 31272343Sngiestruct vrdmaau_chipset_tag { 32272343Sngie void *ac_sc; 33272343Sngie int (*ac_set_aiuin)(vrdmaau_chipset_tag_t, void *); 34272343Sngie int (*ac_set_aiuout)(vrdmaau_chipset_tag_t, void *); 35272343Sngie int (*ac_set_fir)(vrdmaau_chipset_tag_t, void *); 36272343Sngie}; 37272343Sngie