1*a900845eSKarsten Keil /* 2*a900845eSKarsten Keil * NETjet common header file 3*a900845eSKarsten Keil * 4*a900845eSKarsten Keil * Author Karsten Keil 5*a900845eSKarsten Keil * based on work of Matt Henderson and Daniel Potts, 6*a900845eSKarsten Keil * Traverse Technologies P/L www.traverse.com.au 7*a900845eSKarsten Keil * 8*a900845eSKarsten Keil * Copyright 2009 by Karsten Keil <keil@isdn4linux.de> 9*a900845eSKarsten Keil * 10*a900845eSKarsten Keil * This program is free software; you can redistribute it and/or modify 11*a900845eSKarsten Keil * it under the terms of the GNU General Public License version 2 as 12*a900845eSKarsten Keil * published by the Free Software Foundation. 13*a900845eSKarsten Keil * 14*a900845eSKarsten Keil * This program is distributed in the hope that it will be useful, 15*a900845eSKarsten Keil * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*a900845eSKarsten Keil * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*a900845eSKarsten Keil * GNU General Public License for more details. 18*a900845eSKarsten Keil * 19*a900845eSKarsten Keil * You should have received a copy of the GNU General Public License 20*a900845eSKarsten Keil * along with this program; if not, write to the Free Software 21*a900845eSKarsten Keil * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 22*a900845eSKarsten Keil * 23*a900845eSKarsten Keil */ 24*a900845eSKarsten Keil 25*a900845eSKarsten Keil #define NJ_CTRL 0x00 26*a900845eSKarsten Keil #define NJ_DMACTRL 0x01 27*a900845eSKarsten Keil #define NJ_AUXCTRL 0x02 28*a900845eSKarsten Keil #define NJ_AUXDATA 0x03 29*a900845eSKarsten Keil #define NJ_IRQMASK0 0x04 30*a900845eSKarsten Keil #define NJ_IRQMASK1 0x05 31*a900845eSKarsten Keil #define NJ_IRQSTAT0 0x06 32*a900845eSKarsten Keil #define NJ_IRQSTAT1 0x07 33*a900845eSKarsten Keil #define NJ_DMA_READ_START 0x08 34*a900845eSKarsten Keil #define NJ_DMA_READ_IRQ 0x0c 35*a900845eSKarsten Keil #define NJ_DMA_READ_END 0x10 36*a900845eSKarsten Keil #define NJ_DMA_READ_ADR 0x14 37*a900845eSKarsten Keil #define NJ_DMA_WRITE_START 0x18 38*a900845eSKarsten Keil #define NJ_DMA_WRITE_IRQ 0x1c 39*a900845eSKarsten Keil #define NJ_DMA_WRITE_END 0x20 40*a900845eSKarsten Keil #define NJ_DMA_WRITE_ADR 0x24 41*a900845eSKarsten Keil #define NJ_PULSE_CNT 0x28 42*a900845eSKarsten Keil 43*a900845eSKarsten Keil #define NJ_ISAC_OFF 0xc0 44*a900845eSKarsten Keil #define NJ_ISACIRQ 0x10 45*a900845eSKarsten Keil 46*a900845eSKarsten Keil #define NJ_IRQM0_RD_MASK 0x03 47*a900845eSKarsten Keil #define NJ_IRQM0_RD_IRQ 0x01 48*a900845eSKarsten Keil #define NJ_IRQM0_RD_END 0x02 49*a900845eSKarsten Keil #define NJ_IRQM0_WR_MASK 0x0c 50*a900845eSKarsten Keil #define NJ_IRQM0_WR_IRQ 0x04 51*a900845eSKarsten Keil #define NJ_IRQM0_WR_END 0x08 52*a900845eSKarsten Keil 53*a900845eSKarsten Keil /* one page here is no need to be smaller */ 54*a900845eSKarsten Keil #define NJ_DMA_SIZE 4096 55*a900845eSKarsten Keil /* 2 * 64 byte is a compromise between IRQ count and latency */ 56*a900845eSKarsten Keil #define NJ_DMA_RXSIZE 128 /* 2 * 64 */ 57*a900845eSKarsten Keil #define NJ_DMA_TXSIZE 128 /* 2 * 64 */ 58*a900845eSKarsten Keil 59