Path: blob/master/drivers/isdn/hardware/mISDN/netjet.h
15111 views
/*1* NETjet common header file2*3* Author Karsten Keil4* based on work of Matt Henderson and Daniel Potts,5* Traverse Technologies P/L www.traverse.com.au6*7* Copyright 2009 by Karsten Keil <[email protected]>8*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License version 2 as11* published by the Free Software Foundation.12*13* This program is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with this program; if not, write to the Free Software20* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.21*22*/2324#define NJ_CTRL 0x0025#define NJ_DMACTRL 0x0126#define NJ_AUXCTRL 0x0227#define NJ_AUXDATA 0x0328#define NJ_IRQMASK0 0x0429#define NJ_IRQMASK1 0x0530#define NJ_IRQSTAT0 0x0631#define NJ_IRQSTAT1 0x0732#define NJ_DMA_READ_START 0x0833#define NJ_DMA_READ_IRQ 0x0c34#define NJ_DMA_READ_END 0x1035#define NJ_DMA_READ_ADR 0x1436#define NJ_DMA_WRITE_START 0x1837#define NJ_DMA_WRITE_IRQ 0x1c38#define NJ_DMA_WRITE_END 0x2039#define NJ_DMA_WRITE_ADR 0x2440#define NJ_PULSE_CNT 0x284142#define NJ_ISAC_OFF 0xc043#define NJ_ISACIRQ 0x104445#define NJ_IRQM0_RD_MASK 0x0346#define NJ_IRQM0_RD_IRQ 0x0147#define NJ_IRQM0_RD_END 0x0248#define NJ_IRQM0_WR_MASK 0x0c49#define NJ_IRQM0_WR_IRQ 0x0450#define NJ_IRQM0_WR_END 0x085152/* one page here is no need to be smaller */53#define NJ_DMA_SIZE 409654/* 2 * 64 byte is a compromise between IRQ count and latency */55#define NJ_DMA_RXSIZE 128 /* 2 * 64 */56#define NJ_DMA_TXSIZE 128 /* 2 * 64 */57585960