1203360Sjoerg/*- 2203360Sjoerg * Copyright (c) 2010 Joerg Wunsch 3203360Sjoerg * All rights reserved. 4203360Sjoerg * 5203360Sjoerg * Redistribution and use in source and binary forms, with or without 6203360Sjoerg * modification, are permitted provided that the following conditions 7203360Sjoerg * are met: 8203360Sjoerg * 1. Redistributions of source code must retain the above copyright 9203360Sjoerg * notice, this list of conditions and the following disclaimer. 10203360Sjoerg * 2. Redistributions in binary form must reproduce the above copyright 11203360Sjoerg * notice, this list of conditions and the following disclaimer in the 12203360Sjoerg * documentation and/or other materials provided with the distribution. 13203360Sjoerg * 14203360Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15203360Sjoerg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16203360Sjoerg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17203360Sjoerg * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18203360Sjoerg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19203360Sjoerg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20203360Sjoerg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21203360Sjoerg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22203360Sjoerg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23203360Sjoerg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24203360Sjoerg * SUCH DAMAGE. 25203360Sjoerg * 26203360Sjoerg * $FreeBSD$ 27203360Sjoerg */ 28203360Sjoerg 29203360Sjoergenum tnt4882reg { 30203360Sjoerg dir = 0x00, 31203360Sjoerg cdor = 0x00, 32203360Sjoerg isr1 = 0x02, 33203360Sjoerg imr1 = 0x02, 34203360Sjoerg isr2 = 0x04, 35203360Sjoerg imr2 = 0x04, 36203360Sjoerg accwr = 0x05, 37203360Sjoerg spsr = 0x06, 38203360Sjoerg spmr = 0x06, 39203360Sjoerg intr = 0x07, 40203360Sjoerg adsr = 0x08, 41203360Sjoerg admr = 0x08, 42203360Sjoerg cnt2 = 0x09, 43203360Sjoerg cptr = 0x0a, 44203360Sjoerg auxmr = 0x0a, 45203360Sjoerg tauxcr = 0x0a, /* 9914 mode register */ 46203360Sjoerg cnt3 = 0x0b, 47203360Sjoerg adr0 = 0x0c, 48203360Sjoerg adr = 0x0c, 49203360Sjoerg hssel = 0x0d, 50203360Sjoerg adr1 = 0x0e, 51203360Sjoerg eosr = 0x0e, 52203360Sjoerg sts1 = 0x10, 53203360Sjoerg cfg = 0x10, 54203360Sjoerg dsr = 0x11, 55203360Sjoerg sh_cnt = 0x11, 56203360Sjoerg imr3 = 0x12, 57203360Sjoerg hier = 0x13, 58203360Sjoerg cnt0 = 0x14, 59203360Sjoerg misc = 0x15, 60203360Sjoerg cnt1 = 0x16, 61203360Sjoerg csr = 0x17, 62203360Sjoerg keyreg = 0x17, 63203360Sjoerg fifob = 0x18, 64203360Sjoerg fifoa = 0x19, 65203360Sjoerg isr3 = 0x1a, 66203360Sjoerg ccr = 0x1a, 67203360Sjoerg sasr = 0x1b, 68203360Sjoerg dcr = 0x1b, 69203360Sjoerg sts2 = 0x1c, 70203360Sjoerg cmdr = 0x1c, 71203360Sjoerg isr0 = 0x1d, 72203360Sjoerg imr0 = 0x1d, 73203360Sjoerg timer = 0x1e, 74203360Sjoerg bsr = 0x1f, 75203360Sjoerg bcr = 0x1f 76203360Sjoerg}; 77203360Sjoerg 78