1*d874cce4Sray /* $OpenBSD: ax88190reg.h,v 1.3 2008/06/26 05:42:15 ray Exp $ */ 2c5defd1dSaaron /* $NetBSD$ */ 3c5defd1dSaaron 4c5defd1dSaaron /*- 5c5defd1dSaaron * Copyright (c) 2001 The NetBSD Foundation, Inc. 6c5defd1dSaaron * All rights reserved. 7c5defd1dSaaron * 8c5defd1dSaaron * This code is derived from software contributed to The NetBSD Foundation 9c5defd1dSaaron * by Enami Tsugutomo. 10c5defd1dSaaron * 11c5defd1dSaaron * Redistribution and use in source and binary forms, with or without 12c5defd1dSaaron * modification, are permitted provided that the following conditions 13c5defd1dSaaron * are met: 14c5defd1dSaaron * 1. Redistributions of source code must retain the above copyright 15c5defd1dSaaron * notice, this list of conditions and the following disclaimer. 16c5defd1dSaaron * 2. Redistributions in binary form must reproduce the above copyright 17c5defd1dSaaron * notice, this list of conditions and the following disclaimer in the 18c5defd1dSaaron * documentation and/or other materials provided with the distribution. 19c5defd1dSaaron * 20c5defd1dSaaron * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21c5defd1dSaaron * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22c5defd1dSaaron * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23c5defd1dSaaron * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24c5defd1dSaaron * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25c5defd1dSaaron * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26c5defd1dSaaron * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27c5defd1dSaaron * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28c5defd1dSaaron * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29c5defd1dSaaron * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30c5defd1dSaaron * POSSIBILITY OF SUCH DAMAGE. 31c5defd1dSaaron */ 32c5defd1dSaaron 33c5defd1dSaaron #ifndef _DEV_IC_AX88190REG_H_ 34c5defd1dSaaron #define _DEV_IC_AX88190REG_H_ 35c5defd1dSaaron 36c5defd1dSaaron #define AX88190_MEMR 0x04 /* MII/EEPROM/ Management Register */ 37c5defd1dSaaron #define AX88190_MEMR_MDC 0x01 /* MII Clock */ 38c5defd1dSaaron #define AX88190_MEMR_MDIR 0x02 /* MII STA MDIO signal direction 39c5defd1dSaaron assert -> input */ 40c5defd1dSaaron #define AX88190_MEMR_MDI 0x04 /* MII Data In */ 41c5defd1dSaaron #define AX88190_MEMR_MDO 0x08 /* MII Data Out */ 42c5defd1dSaaron #define AX88190_MEMR_EECS 0x10 /* EEPROM Chip Select */ 43c5defd1dSaaron #define AX88190_MEMR_EEI 0x20 /* EEPROM Data In */ 44c5defd1dSaaron #define AX88190_MEMR_EEO 0x40 /* EEPROM Data Out */ 45c5defd1dSaaron #define AX88190_MEMR_EECLK 0x80 /* EEPROM Clock */ 46c5defd1dSaaron 47c5defd1dSaaron /* 48c5defd1dSaaron * Offset of LAN IOBASE0 and IOBASE1, and its size. 49c5defd1dSaaron */ 50c5defd1dSaaron #define AX88190_LAN_IOBASE 0x3ca 51c5defd1dSaaron #define AX88190_LAN_IOSIZE 4 520c89aa45Sbrad #define AX88790_CSR 0x3c2 530c89aa45Sbrad #define AX88790_CSR_SIZE 2 54c5defd1dSaaron 55c5defd1dSaaron /* 56c5defd1dSaaron * Offset of NODE ID in SRAM memory of ASIX AX88190. 57c5defd1dSaaron */ 58c5defd1dSaaron #define AX88190_NODEID_OFFSET 0x400 59c5defd1dSaaron 60c5defd1dSaaron /* 61c5defd1dSaaron * Start of SRAM buffer. 62c5defd1dSaaron */ 63c5defd1dSaaron #define AX88190_BUFFER_START 0x800 64c5defd1dSaaron 65c5defd1dSaaron #endif /* _DEV_IC_AX88190REG_H_ */ 66