IODVDMediaBSDClient.h [plain text]
#ifndef _IODVDMEDIABSDCLIENT_H
#define _IODVDMEDIABSDCLIENT_H
#include <sys/ioctl.h>
#include <sys/types.h>
#include <IOKit/storage/IODVDTypes.h>
typedef struct
{
u_int8_t format;
u_int8_t reserved0008[3];
u_int32_t address;
u_int8_t grantID;
u_int8_t layer;
u_int16_t bufferLength;
void * buffer;
} dk_dvd_read_structure_t;
typedef struct
{
u_int8_t format;
u_int8_t keyClass;
u_int8_t reserved0016[2];
u_int32_t address;
u_int8_t grantID;
u_int8_t reserved0072[1];
u_int16_t bufferLength;
void * buffer;
} dk_dvd_report_key_t;
typedef struct
{
u_int8_t format;
u_int8_t keyClass;
u_int8_t reserved0016[6];
u_int8_t grantID;
u_int8_t reserved0072[1];
u_int16_t bufferLength;
void * buffer;
} dk_dvd_send_key_t;
typedef struct
{
u_int8_t reserved0000[10];
u_int16_t bufferLength;
void * buffer;
} dk_dvd_read_disc_info_t;
typedef struct
{
u_int8_t reserved0000[4];
u_int32_t address;
u_int8_t addressType;
u_int8_t reserved0072[1];
u_int16_t bufferLength;
void * buffer;
} dk_dvd_read_rzone_info_t;
#define DKIOCDVDREADSTRUCTURE _IOW('d', 128, dk_dvd_read_structure_t)
#define DKIOCDVDREPORTKEY _IOW('d', 129, dk_dvd_report_key_t)
#define DKIOCDVDSENDKEY _IOW('d', 130, dk_dvd_send_key_t)
#define DKIOCDVDGETSPEED _IOR('d', 131, u_int16_t)
#define DKIOCDVDSETSPEED _IOW('d', 131, u_int16_t)
#define DKIOCDVDREADDISCINFO _IOWR('d', 132, dk_dvd_read_disc_info_t)
#define DKIOCDVDREADRZONEINFO _IOWR('d', 133, dk_dvd_read_rzone_info_t)
#ifdef KERNEL
#ifdef __cplusplus
#include <IOKit/storage/IODVDMedia.h>
#include <IOKit/storage/IOMediaBSDClient.h>
class IODVDMediaBSDClient : public IOMediaBSDClient
{
OSDeclareDefaultStructors(IODVDMediaBSDClient)
protected:
struct ExpansionData { };
ExpansionData * _expansionData;
public:
virtual IODVDMedia * getProvider() const;
virtual int ioctl(dev_t, u_long cmd, caddr_t data, int, proc_t);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 0);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 1);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 2);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 3);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 4);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 5);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 6);
OSMetaClassDeclareReservedUnused(IODVDMediaBSDClient, 7);
};
#endif
#endif
#endif