18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * NETjet common header file 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Author Karsten Keil 68c2ecf20Sopenharmony_ci * based on work of Matt Henderson and Daniel Potts, 78c2ecf20Sopenharmony_ci * Traverse Technologies P/L www.traverse.com.au 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * Copyright 2009 by Karsten Keil <keil@isdn4linux.de> 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define NJ_CTRL 0x00 138c2ecf20Sopenharmony_ci#define NJ_DMACTRL 0x01 148c2ecf20Sopenharmony_ci#define NJ_AUXCTRL 0x02 158c2ecf20Sopenharmony_ci#define NJ_AUXDATA 0x03 168c2ecf20Sopenharmony_ci#define NJ_IRQMASK0 0x04 178c2ecf20Sopenharmony_ci#define NJ_IRQMASK1 0x05 188c2ecf20Sopenharmony_ci#define NJ_IRQSTAT0 0x06 198c2ecf20Sopenharmony_ci#define NJ_IRQSTAT1 0x07 208c2ecf20Sopenharmony_ci#define NJ_DMA_READ_START 0x08 218c2ecf20Sopenharmony_ci#define NJ_DMA_READ_IRQ 0x0c 228c2ecf20Sopenharmony_ci#define NJ_DMA_READ_END 0x10 238c2ecf20Sopenharmony_ci#define NJ_DMA_READ_ADR 0x14 248c2ecf20Sopenharmony_ci#define NJ_DMA_WRITE_START 0x18 258c2ecf20Sopenharmony_ci#define NJ_DMA_WRITE_IRQ 0x1c 268c2ecf20Sopenharmony_ci#define NJ_DMA_WRITE_END 0x20 278c2ecf20Sopenharmony_ci#define NJ_DMA_WRITE_ADR 0x24 288c2ecf20Sopenharmony_ci#define NJ_PULSE_CNT 0x28 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define NJ_ISAC_OFF 0xc0 318c2ecf20Sopenharmony_ci#define NJ_ISACIRQ 0x10 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#define NJ_IRQM0_RD_MASK 0x03 348c2ecf20Sopenharmony_ci#define NJ_IRQM0_RD_IRQ 0x01 358c2ecf20Sopenharmony_ci#define NJ_IRQM0_RD_END 0x02 368c2ecf20Sopenharmony_ci#define NJ_IRQM0_WR_MASK 0x0c 378c2ecf20Sopenharmony_ci#define NJ_IRQM0_WR_IRQ 0x04 388c2ecf20Sopenharmony_ci#define NJ_IRQM0_WR_END 0x08 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci/* one page here is no need to be smaller */ 418c2ecf20Sopenharmony_ci#define NJ_DMA_SIZE 4096 428c2ecf20Sopenharmony_ci/* 2 * 64 byte is a compromise between IRQ count and latency */ 438c2ecf20Sopenharmony_ci#define NJ_DMA_RXSIZE 128 /* 2 * 64 */ 448c2ecf20Sopenharmony_ci#define NJ_DMA_TXSIZE 128 /* 2 * 64 */ 45