/*
* Copyright (c) 2009 Stephen M. Rumble
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/* Registers below are relative to: */
#define OIOC_BASE_ADDRESS 0x1f900000
/*
* The IOC SCSI DMA engine consists of 257 16-bit address registers, which can
* point to 256 4096-byte buffers.
*
* IOC_SCSI_DMA_LOW contains the first 12 bits of a starting offset within
* the first page of a virtually contiguous buffer. The MSB indicates DMA
* transfer direction.
*
* There are 256 high address registers starting at IOC_SCSI_DMA_HIGH_BASE
* and occurring every 4 bytes. This provides 28 address bits - more than
* sufficient for these old machines.
*/
#define OIOC_SCSI_REGS 0x00000000 /* SCSI registers offset */
#define OIOC_SCSI_REGS_SIZE 0x00200102 /* SCSI length */