xref: /linux/drivers/atm/tonga.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
21da177e4SLinus Torvalds /* drivers/atm/tonga.h - Efficient Networks Tonga (PCI bridge) declarations */
31da177e4SLinus Torvalds 
41da177e4SLinus Torvalds /* Written 1995 by Werner Almesberger, EPFL LRC */
51da177e4SLinus Torvalds 
61da177e4SLinus Torvalds 
71da177e4SLinus Torvalds #ifndef DRIVER_ATM_TONGA_H
81da177e4SLinus Torvalds #define DRIVER_ATM_TONGA_H
91da177e4SLinus Torvalds 
101da177e4SLinus Torvalds #define PCI_TONGA_CTRL	0x60	/* control register */
111da177e4SLinus Torvalds 
121da177e4SLinus Torvalds #define END_SWAP_DMA	0x80	/* endian swap on DMA */
131da177e4SLinus Torvalds #define END_SWAP_BYTE	0x40	/* endian swap on slave byte accesses */
141da177e4SLinus Torvalds #define END_SWAP_WORD	0x20	/* endian swap on slave word accesses */
151da177e4SLinus Torvalds #define SEPROM_MAGIC	0x0c	/* obscure required pattern (ASIC only) */
161da177e4SLinus Torvalds #define SEPROM_DATA	0x02	/* serial EEPROM data (ASIC only) */
171da177e4SLinus Torvalds #define SEPROM_CLK	0x01	/* serial EEPROM clock (ASIC only) */
181da177e4SLinus Torvalds 
191da177e4SLinus Torvalds #define SEPROM_ESI_BASE	64	/* start of ESI in serial EEPROM */
201da177e4SLinus Torvalds 
211da177e4SLinus Torvalds #endif
22