2 * Copyright (c) 2003 Hidetoshi Shimokawa
3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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:
17 * This product includes software developed by K. Kobayashi and H. Shimokawa
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.
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.
34 * $FreeBSD: src/sys/dev/firewire/iec68113.h,v 1.7 2003/04/29 13:27:13 simokawa Exp $
35 * $DragonFly: src/sys/bus/firewire/iec68113.h,v 1.3 2004/02/05 13:32:08 joerg Exp $
39 #define DV_BROADCAST_ON (1<<30)
46 #if BYTE_ORDER == BIG_ENDIAN
47 u_int8_t eoh0
:1, /* 0 */
56 #if BYTE_ORDER == BIG_ENDIAN
68 #if BYTE_ORDER == BIG_ENDIAN
69 u_int8_t eoh1
:1, /* 1 */
77 #define CIP_FMT_DVCR 0
78 #define CIP_FMT_MPEG (1<<5)
81 #if BYTE_ORDER == BIG_ENDIAN
82 u_int8_t fs
:1, /* 50/60 field system
89 fs
:1; /* 50/60 field system
92 #define CIP_STYPE_SD 0
93 #define CIP_STYPE_SDL 1
94 #define CIP_STYPE_HD 2
95 u_int16_t cyc
:16; /* take care of byte order! */
96 } __attribute__ ((packed
)) dv
;
102 #if BYTE_ORDER == BIG_ENDIAN
103 u_int8_t sct
:3, /* Section type */
105 arb
:4; /* Arbitrary bit */
107 u_int8_t arb
:4, /* Arbitrary bit */
109 sct
:3; /* Section type */
111 #define DV_SCT_HEADER 0
112 #define DV_SCT_SUBCODE 1
113 #define DV_SCT_VAUX 2
114 #define DV_SCT_AUDIO 3
115 #define DV_SCT_VIDEO 4
116 #if BYTE_ORDER == BIG_ENDIAN
117 u_int8_t dseq
:4, /* DIF sequence number */
118 fsc
:1, /* ID of a DIF block in each channel */
122 fsc
:1, /* ID of a DIF block in each channel */
123 dseq
:4; /* DIF sequence number */
125 u_int8_t dbn
; /* DIF block number */
126 u_int8_t payload
[77];
127 #define DV_DSF_12 0x80 /* PAL: payload[0] in Header DIF */