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