summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-06 16:00:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-06 16:00:25 +0000
commit3b1b9484b718dd8fea331d5bc40d26d519cc3e72 (patch)
tree8329f9afddb8bfce8f3462b89aa61f53ed76adb6 /sys
parentb56364c21655bcf06e12fc73e4ee74cc5510ad6d (diff)
from freebsd: rename some fields.
note: the use of unions and structures in here is bad; the use of bitfields is even worse. the interface defined here desperately needs a cleanup.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/cdio.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h
index 66cbfcd6011..e2c104f9e23 100644
--- a/sys/sys/cdio.h
+++ b/sys/sys/cdio.h
@@ -5,13 +5,24 @@
/* Shared between kernel & process */
+union msf_lba {
+ struct {
+ u_char unused;
+ u_char minute;
+ u_char second;
+ u_char frame;
+ } msf;
+ int lba;
+ u_char addr[4];
+};
+
struct cd_toc_entry {
u_char nothing1;
u_char control:4;
u_char addr_type:4;
u_char track;
u_char nothing2;
- u_char addr[4];
+ union msf_lba addr;
};
struct cd_sub_channel_header {
@@ -32,8 +43,8 @@ struct cd_sub_channel_position_data {
u_char addr_type:4;
u_char track_number;
u_char index_number;
- u_char absaddr[4];
- u_char reladdr[4];
+ union msf_lba absaddr;
+ union msf_lba reladdr;
};
struct cd_sub_channel_media_catalog {