1 /* $NetBSD: firewire_phy.h,v 1.3 2010/03/29 03:05:27 kiyohara Exp $ */ 2 /*- 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. 11 * 2. Redistributions in binary form must reproduce the above copyright 12 * notice, this list of conditions and the following disclaimer in the 13 * documentation and/or other materials provided with the distribution. 14 * 3. All advertising materials mentioning features or use of this software 15 * must display the acknowledgement as bellow: 16 * 17 * This product includes software developed by K. Kobayashi and H. Shimokawa 18 * 19 * 4. The name of the author may not be used to endorse or promote products 20 * derived from this software without specific prior written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 25 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * 34 * $FreeBSD: /repoman/r/ncvs/src/sys/dev/firewire/firewire_phy.h,v 1.3 2005/01/06 01:42:41 imp Exp $ 35 * 36 */ 37 #ifndef _FIREWIRE_PHY_H_ 38 #define _FIREWIRE_PHY_H_ 39 40 #define FW_PHY_PHYSID_REG 0x00 41 #define FW_PHY_PHYSID (63<<2) 42 #define FW_PHY_ROOT_REG 0x00 43 #define FW_PHY_ROOT (1<<1) 44 #define FW_PHY_CPS_REG 0x00 45 #define FW_PHY_CPS (1<<0) 46 47 #define FW_PHY_RHB_REG 0x01 48 #define FW_PHY_RHB (1<<7) 49 #define FW_PHY_IBR_REG 0x01 50 #define FW_PHY_IBR (1<<6) 51 #define FW_PHY_ISBR_REG 0x05 52 #define FW_PHY_ISBR (1<<6) 53 #define FW_PHY_GC_REG 0x01 54 55 #define FW_PHY_SPD_REG 0x02 56 #define FW_PHY_SPD (3<<6) 57 #define FW_PHY_REV_REG 0x02 58 #define FW_PHY_REV (3<<4) 59 #define FW_PHY_NP_REG 0x02 60 #define FW_PHY_NP (15<<0) 61 62 #define FW_PHY_P1_REG 0x03 63 #define FW_PHY_P2_REG 0x04 64 #define FW_PHY_P3_REG 0x05 65 66 #define FW_PHY_P_ASTAT (3<<6) 67 #define FW_PHY_P_BSTAT (3<<4) 68 #define FW_PHY_P_CH (1<<3) 69 #define FW_PHY_P_CON (1<<2) 70 71 #define FW_PHY_LOOPINT_REG 0x06 72 #define FW_PHY_LOOPINT (1<<7) 73 #define FW_PHY_CPSINT_REG 0x06 74 #define FW_PHY_CPSNT (1<<6) 75 /* 76 #define FW_PHY_CPS_REG 0x06 77 #define FW_PHY_CPS (1<<5) 78 */ 79 #define FW_PHY_IR_REG 0x06 80 #define FW_PHY_IR (1<<4) 81 #define FW_PHY_C_REG 0x06 82 #define FW_PHY_C (1<<0) 83 84 #define FW_PHY_ESPD_REG 0x03 85 #define FW_PHY_ESPD (7<<5) 86 87 #define FW_PHY_EDEL_REG 0x03 88 #define FW_PHY_EDEL 15<<0 89 90 #endif /* _FIREWIRE_PHY_H_ */ 91