/* $OpenBSD: dmareg.h,v 1.1 2013/10/23 10:07:14 miod Exp $ */ /* * Copyright (c) 2013 Miodrag Vallat. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* * AV400 family DMA controller definitions */ #define DMA_BOUNDARY 0x1000 #define DMA_MAP 0xfff8b000 #define DMAMAP_MASK 0xfffff000 #define DMAMAP_G 0x00000080 #define DMAMAP_RO 0x00000004 #define DMAMAP_V 0x00000001 #define DMA_OFF 0xfff8b004 #define DMAOFF_MASK 0x00000ffe #define DMA_COUNT 0xfff8b008 #define DMACOUNTC_MASK 0x00001ffe #define DMA_DIR 0xfff8b00c #define DMA_CLR_INVALID 0xfff8b010 #define DMA_CLR_WP 0xfff8b014 #define DMACLR 0x00000000 #define DMA_STOP 0xfff8b018 #define DMASTOP_RESTART 0x00000000 /* restart DMA */ #define DMASTOP_INHIBIT 0x00000001 /* do not restart DMA */