~ubuntu-branches/ubuntu/natty/hal/natty

« back to all changes in this revision

Viewing changes to hald/freebsd/libprobe/hfp-cdrom.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-26 10:04:33 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090626100433-nd42rcjbmg5261tx
Tags: 0.5.12+git20090626-0ubuntu1
* New upstream git snapshot:
  - Add input.keys capability to power/hibernate/etc. keys. (LP: #384890)
* Drop 01_tablet_evdev.patch, 50_no_crash_on_md_blockdev.patch: Applied
  upstream.
* 04_nvidia_brightness.patch: Update to new upstream version.
* debian/control: Change back Vcs-Bzr:, Ubuntu package are only for full
  source trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#  include <config.h>
29
29
#endif
30
30
 
31
 
#include <sys/types.h>
 
31
#include <stdint.h>
32
32
 
33
33
#include "hfp.h"
34
34
 
53
53
typedef struct
54
54
{
55
55
  /* mode page data header */
56
 
  u_int16_t   data_length;
57
 
  u_int8_t    medium_type;
 
56
  uint16_t   data_length;
 
57
  uint8_t    medium_type;
58
58
#define HFP_CDROM_MST_TYPE_MASK_LOW     0x0f
59
59
#define HFP_CDROM_MST_FMT_NONE          0x00
60
60
#define HFP_CDROM_MST_DATA_120          0x01
75
75
#define HFP_CDROM_MST_DOOR_OPEN         0x71
76
76
#define HFP_CDROM_MST_FMT_ERROR         0x72
77
77
 
78
 
  u_int8_t    dev_spec;
79
 
  u_int16_t   unused;
80
 
  u_int16_t   blk_desc_len;
 
78
  uint8_t    dev_spec;
 
79
  uint16_t   unused;
 
80
  uint16_t   blk_desc_len;
81
81
 
82
82
  /* capabilities page */
83
 
  u_int8_t    page_code;
 
83
  uint8_t    page_code;
84
84
#define HFP_CDROM_CAP_PAGE              0x2a
85
85
 
86
 
  u_int8_t    param_len;
 
86
  uint8_t    param_len;
87
87
 
88
 
  u_int16_t   media;
 
88
  uint16_t   media;
89
89
#define HFP_CDROM_MST_READ_CDR          0x0001
90
90
#define HFP_CDROM_MST_READ_CDRW         0x0002
91
91
#define HFP_CDROM_MST_READ_PACKET       0x0004
98
98
#define HFP_CDROM_MST_WRITE_DVDR        0x1000
99
99
#define HFP_CDROM_MST_WRITE_DVDRAM      0x2000
100
100
 
101
 
  u_int16_t   capabilities;
 
101
  uint16_t   capabilities;
102
102
#define HFP_CDROM_MSTAUDIO_PLAY         0x0001
103
103
#define HFP_CDROM_MST_COMPOSITE         0x0002
104
104
#define HFP_CDROM_MST_AUDIO_P1          0x0004
115
115
#define HFP_CDROM_MST_ISRC              0x2000
116
116
#define HFP_CDROM_MST_UPC               0x4000
117
117
 
118
 
  u_int8_t    mechanism;
 
118
  uint8_t    mechanism;
119
119
#define HFP_CDROM_MST_LOCKABLE          0x01
120
120
#define HFP_CDROM_MST_LOCKED            0x02
121
121
#define HFP_CDROM_MST_PREVENT           0x04
131
131
#define HFP_CDROM_MST_SEP_VOL           0x01
132
132
#define HFP_CDROM_MST_SEP_MUTE          0x02
133
133
 
134
 
  u_int16_t   max_read_speed;           /* max raw data rate in bytes/1000 */
135
 
  u_int16_t   max_vol_levels;           /* number of discrete volume levels */
136
 
  u_int16_t   buf_size;                 /* internal buffer size in bytes/1024 */
137
 
  u_int16_t   cur_read_speed;           /* current data rate in bytes/1000  */
138
 
 
139
 
  u_int8_t    reserved3;
140
 
  u_int8_t    misc;
141
 
 
142
 
  u_int16_t   max_write_speed;          /* max raw data rate in bytes/1000 */
143
 
  u_int16_t   cur_write_speed;          /* current data rate in bytes/1000  */
144
 
  u_int16_t   copy_protect_rev;
145
 
  u_int16_t   reserved4;
 
134
  uint16_t   max_read_speed;            /* max raw data rate in bytes/1000 */
 
135
  uint16_t   max_vol_levels;            /* number of discrete volume levels */
 
136
  uint16_t   buf_size;                  /* internal buffer size in bytes/1024 */
 
137
  uint16_t   cur_read_speed;            /* current data rate in bytes/1000  */
 
138
 
 
139
  uint8_t    reserved3;
 
140
  uint8_t    misc;
 
141
 
 
142
  uint16_t   max_write_speed;           /* max raw data rate in bytes/1000 */
 
143
  uint16_t   cur_write_speed;           /* current data rate in bytes/1000  */
 
144
  uint16_t   copy_protect_rev;
 
145
  uint16_t   reserved4;
146
146
} HFPCDROMCapabilities;
147
147
 
148
148
HFPCDROM *hfp_cdrom_new (const char *path, const char *parent);