diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-21 22:08:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-08-21 22:08:13 +0000 |
commit | 35a176f888723e536ba3b9b6b657866a53516838 (patch) | |
tree | 82cbbf284bb04a9fcc6cb7cc7a872598f160ebc7 | |
parent | 4949c9d805597b95f666dffce88276ba4264d9c2 (diff) |
Add struct cd_sub_channel_q_data for CD_SUBQ_DATA; msaitoh
(note: disgusting bitfields)
-rw-r--r-- | sys/sys/cdio.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h index 22707e96d74..b1b1223cfdb 100644 --- a/sys/sys/cdio.h +++ b/sys/sys/cdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cdio.h,v 1.5 1996/05/16 09:28:54 mickey Exp $ */ +/* $OpenBSD: cdio.h,v 1.6 1998/08/21 22:08:12 deraadt Exp $ */ /* $NetBSD: cdio.h,v 1.11 1996/02/19 18:29:04 scottr Exp $ */ #ifndef _SYS_CDIO_H_ @@ -44,6 +44,40 @@ struct cd_sub_channel_header { u_char data_len[2]; }; +struct cd_sub_channel_q_data { + u_char data_format; +#if BYTE_ORDER == LITTLE_ENDIAN + u_char control:4; + u_char addr_type:4; +#endif +#if BYTE_ORDER == BIG_ENDIAN + u_char addr_type:4; + u_char control:4; +#endif + u_char track_number; + u_char index_number; + u_char absaddr[4]; + u_char reladdr[4]; +#if BYTE_ORDER == LITTLE_ENDIAN + u_char :7; + u_char mc_valid:1; +#endif +#if BYTE_ORDER == BIG_ENDIAN + u_char mc_valid:1; + u_char :7; +#endif + u_char mc_number[15]; +#if BYTE_ORDER == LITTLE_ENDIAN + u_char :7; + u_char ti_valid:1; +#endif +#if BYTE_ORDER == BIG_ENDIAN + u_char ti_valid:1; + u_char :7; +#endif + u_char ti_number[15]; +}; + struct cd_sub_channel_position_data { u_char data_format; #if BYTE_ORDER == LITTLE_ENDIAN |