162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * NETjet common header file 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Author Karsten Keil 662306a36Sopenharmony_ci * based on work of Matt Henderson and Daniel Potts, 762306a36Sopenharmony_ci * Traverse Technologies P/L www.traverse.com.au 862306a36Sopenharmony_ci * 962306a36Sopenharmony_ci * Copyright 2009 by Karsten Keil <keil@isdn4linux.de> 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#define NJ_CTRL 0x00 1362306a36Sopenharmony_ci#define NJ_DMACTRL 0x01 1462306a36Sopenharmony_ci#define NJ_AUXCTRL 0x02 1562306a36Sopenharmony_ci#define NJ_AUXDATA 0x03 1662306a36Sopenharmony_ci#define NJ_IRQMASK0 0x04 1762306a36Sopenharmony_ci#define NJ_IRQMASK1 0x05 1862306a36Sopenharmony_ci#define NJ_IRQSTAT0 0x06 1962306a36Sopenharmony_ci#define NJ_IRQSTAT1 0x07 2062306a36Sopenharmony_ci#define NJ_DMA_READ_START 0x08 2162306a36Sopenharmony_ci#define NJ_DMA_READ_IRQ 0x0c 2262306a36Sopenharmony_ci#define NJ_DMA_READ_END 0x10 2362306a36Sopenharmony_ci#define NJ_DMA_READ_ADR 0x14 2462306a36Sopenharmony_ci#define NJ_DMA_WRITE_START 0x18 2562306a36Sopenharmony_ci#define NJ_DMA_WRITE_IRQ 0x1c 2662306a36Sopenharmony_ci#define NJ_DMA_WRITE_END 0x20 2762306a36Sopenharmony_ci#define NJ_DMA_WRITE_ADR 0x24 2862306a36Sopenharmony_ci#define NJ_PULSE_CNT 0x28 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define NJ_ISAC_OFF 0xc0 3162306a36Sopenharmony_ci#define NJ_ISACIRQ 0x10 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#define NJ_IRQM0_RD_MASK 0x03 3462306a36Sopenharmony_ci#define NJ_IRQM0_RD_IRQ 0x01 3562306a36Sopenharmony_ci#define NJ_IRQM0_RD_END 0x02 3662306a36Sopenharmony_ci#define NJ_IRQM0_WR_MASK 0x0c 3762306a36Sopenharmony_ci#define NJ_IRQM0_WR_IRQ 0x04 3862306a36Sopenharmony_ci#define NJ_IRQM0_WR_END 0x08 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci/* one page here is no need to be smaller */ 4162306a36Sopenharmony_ci#define NJ_DMA_SIZE 4096 4262306a36Sopenharmony_ci/* 2 * 64 byte is a compromise between IRQ count and latency */ 4362306a36Sopenharmony_ci#define NJ_DMA_RXSIZE 128 /* 2 * 64 */ 4462306a36Sopenharmony_ci#define NJ_DMA_TXSIZE 128 /* 2 * 64 */ 45