d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * CDDL HEADER START
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * The contents of this file are subject to the terms of the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * Common Development and Distribution License (the "License").
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * You may not use this file except in compliance with the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * See the License for the specific language governing permissions
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * and limitations under the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * When distributing Covered Code, include this CDDL HEADER in each
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * If applicable, add the following below this CDDL HEADER, with the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * fields enclosed by brackets "[]" replaced with your own identifying
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * information: Portions Copyright [yyyy] [name of copyright owner]
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * CDDL HEADER END
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw * Copyright (C) 2003-2005 Chelsio Communications. All rights reserved.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* MAC and PHY link speeds */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* MAC and PHY link duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Autonegotiation settings */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Generic MII registers and register fields. */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define MII_ADVERTISE 0x04 /* Advertisement control reg */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Basic mode control register. */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Basic mode status register. */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Advertisement control register. */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_CSMA 0x0001 /* Only selector supported */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* MAC and PHY supported features */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* Features advertised by PHY */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* diagnostic message categories */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* diagnostic message levels */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw/* enum { INFO, DEBUG }; */
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#define CH_DEVICE_COMMON(devid, ssid, idx) { devid, ssid, idx }