scdreg.h (126891) | scdreg.h (143063) |
---|---|
1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1995 Mikael Hybsch 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/scd/scdreg.h 126891 2004-03-12 21:45:33Z trhodes $ | 28 * $FreeBSD: head/sys/dev/scd/scdreg.h 143063 2005-03-02 21:33:29Z joerg $ |
29 * 30 */ 31 32#ifndef SCD_H 33#define SCD_H 34 | 29 * 30 */ 31 32#ifndef SCD_H 33#define SCD_H 34 |
35#if defined(__GNUC__) || defined(__INTEL_COMPILER) 36#if __GNUC__ >= 2 || defined(__INTEL_COMPILER) 37#pragma pack(1) 38#endif 39#endif 40 | |
41typedef unsigned char bcd_t; 42#define M_msf(msf) msf[0] 43#define S_msf(msf) msf[1] 44#define F_msf(msf) msf[2] 45 46#define OREG_COMMAND 0 47#define OREG_WPARAMS 1 48#define OREG_CONTROL 3 --- 40 unchanged lines hidden (view full) --- 89#define ATTEN_EJECT_DONE 0x28 90 91 92struct sony_drive_configuration { 93 char vendor[8]; 94 char product[16]; 95 char revision[8]; 96 u_short config; | 35typedef unsigned char bcd_t; 36#define M_msf(msf) msf[0] 37#define S_msf(msf) msf[1] 38#define F_msf(msf) msf[2] 39 40#define OREG_COMMAND 0 41#define OREG_WPARAMS 1 42#define OREG_CONTROL 3 --- 40 unchanged lines hidden (view full) --- 83#define ATTEN_EJECT_DONE 0x28 84 85 86struct sony_drive_configuration { 87 char vendor[8]; 88 char product[16]; 89 char revision[8]; 90 u_short config; |
97}; | 91} __packed; |
98 99/* Almost same as cd_sub_channel_position_data */ 100struct sony_subchannel_position_data { 101 u_char control:4; 102 u_char addr_type:4; 103 u_char track_number; 104 u_char index_number; 105 u_char rel_msf[3]; 106 u_char dummy; 107 u_char abs_msf[3]; | 92 93/* Almost same as cd_sub_channel_position_data */ 94struct sony_subchannel_position_data { 95 u_char control:4; 96 u_char addr_type:4; 97 u_char track_number; 98 u_char index_number; 99 u_char rel_msf[3]; 100 u_char dummy; 101 u_char abs_msf[3]; |
108}; | 102} __packed; |
109 110struct sony_tracklist { 111 u_char adr :4; /* xcdplayer needs these two values */ 112 u_char ctl :4; 113 u_char track; 114 u_char start_msf[3]; | 103 104struct sony_tracklist { 105 u_char adr :4; /* xcdplayer needs these two values */ 106 u_char ctl :4; 107 u_char track; 108 u_char start_msf[3]; |
115}; | 109} __packed; |
116 117#define MAX_TRACKS 100 118 119struct sony_toc { 120 u_char session_number; 121 122 u_char :8; 123 u_char :8; --- 11 unchanged lines hidden (view full) --- 135 u_char :8; 136 u_char lead_out_start_msf[3]; 137 138 struct sony_tracklist tracks[MAX_TRACKS]; 139 140 /* The rest is just to take space in case all data is returned */ 141 142 u_char dummy[6*9]; | 110 111#define MAX_TRACKS 100 112 113struct sony_toc { 114 u_char session_number; 115 116 u_char :8; 117 u_char :8; --- 11 unchanged lines hidden (view full) --- 129 u_char :8; 130 u_char lead_out_start_msf[3]; 131 132 struct sony_tracklist tracks[MAX_TRACKS]; 133 134 /* The rest is just to take space in case all data is returned */ 135 136 u_char dummy[6*9]; |
143}; | 137} __packed; |
144 145#endif /* SCD_H */ | 138 139#endif /* SCD_H */ |