186071Sache/*-
286071Sache * Copyright (c) 2003, David Madole
386071Sache * All rights reserved.
486071Sache * Copyright (c) 2005, M. Warner Losh.
586071Sache * All rights reserved.
686071Sache *
786071Sache * Redistribution and use in source and binary forms, with or without
886071Sache * modification, are permitted provided that the following conditions
986071Sache * are met:
1086071Sache * 1. Redistributions of source code must retain the above copyright
1186071Sache *    notice unmodified, this list of conditions, and the following
1286071Sache *    disclaimer.
1386071Sache * 2. Redistributions in binary form must reproduce the above copyright
1486071Sache *    notice, this list of conditions and the following disclaimer in the
1586071Sache *    documentation and/or other materials provided with the distribution.
1686071Sache *
1786071Sache * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1886071Sache * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1986071Sache * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2086071Sache * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2186071Sache * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2286071Sache * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2386071Sache * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2486071Sache * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2586071Sache * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2686071Sache * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2786071Sache * SUCH DAMAGE.
2886071Sache *
2986071Sache * Based on patches subitted by: David Madole, edited by M. Warner Losh.
3086071Sache *
3186071Sache * $FreeBSD: releng/11.0/sys/dev/ed/rtl80x9reg.h 150957 2005-10-05 05:21:07Z imp $
3286071Sache */
3386071Sache
3486071Sache/*
3586071Sache * RTL8019/8029 Specific Registers
3686071Sache */
3786071Sache
3886071Sache#define ED_RTL80X9_CONFIG0	0x03
3986071Sache#define ED_RTL80X9_CONFIG2	0x05
4086071Sache#define ED_RTL80X9_CONFIG3	0x06
4186071Sache#define ED_RTL80X9_80X9ID0	0x0a
4286071Sache#define ED_RTL80X9_ID0			0x50
4386071Sache#define ED_RTL80X9_80X9ID1	0x0b
4486071Sache#define ED_RTL8019_ID1			0x70
4586071Sache#define ED_RTL8029_ID1			0x43
4686071Sache
4786071Sache#define	ED_RTL80X9_CF0_BNC	0x04
4886071Sache#define ED_RTL80X9_CF0_AUI	0x20
4986071Sache
5086071Sache#define ED_RTL80X9_CF2_MEDIA	0xc0
5186071Sache#define ED_RTL80X9_CF2_AUTO	0x00
5286071Sache#define ED_RTL80X9_CF2_10_T	0x40
5386071Sache#define ED_RTL80X9_CF2_10_5	0x80
5486071Sache#define ED_RTL80X9_CF2_10_2	0xc0
5586071Sache
5686071Sache#define ED_RTL80X9_CF3_FUDUP	0x40
5786071Sache
5886071Sache#define ED_RTL8029_PCI_ID	0x802910ec
5986071Sache