1*95e1ffb1Schristos /* $NetBSD: dmavar.h,v 1.11 2005/12/11 12:16:28 christos Exp $ */ 2ec77f0b3Scgd 333e84123Smw /* 433e84123Smw * Copyright (c) 1982, 1990 The Regents of the University of California. 533e84123Smw * All rights reserved. 633e84123Smw * 733e84123Smw * Redistribution and use in source and binary forms, with or without 833e84123Smw * modification, are permitted provided that the following conditions 933e84123Smw * are met: 1033e84123Smw * 1. Redistributions of source code must retain the above copyright 1133e84123Smw * notice, this list of conditions and the following disclaimer. 1233e84123Smw * 2. Redistributions in binary form must reproduce the above copyright 1333e84123Smw * notice, this list of conditions and the following disclaimer in the 1433e84123Smw * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 1633e84123Smw * may be used to endorse or promote products derived from this software 1733e84123Smw * without specific prior written permission. 1833e84123Smw * 1933e84123Smw * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2033e84123Smw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2133e84123Smw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2233e84123Smw * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2333e84123Smw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2433e84123Smw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2533e84123Smw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2633e84123Smw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2733e84123Smw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2833e84123Smw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2933e84123Smw * SUCH DAMAGE. 3033e84123Smw * 314e382ac0Smw * @(#)dmavar.h 7.2 (Berkeley) 11/4/90 3233e84123Smw */ 3333e84123Smw 3433e84123Smw /* dmago flags */ 3533e84123Smw #define DMAGO_READ 0x08 /* transfer is a read */ 3633e84123Smw #define DMAGO_NOINT 0x80 /* don't interrupt on completion */ 3733e84123Smw 3871ab4ed9Sjtc #ifdef _KERNEL 3971b833bbSchopps typedef void (*dmafree_t) (void *dev); 4071b833bbSchopps typedef int (*dmago_t) (void *dev, char *, int, int); 4171b833bbSchopps typedef int (*dmanext_t) (void *dev); 4271b833bbSchopps typedef void (*dmastop_t) (void *dev); 4333e84123Smw #endif 44