IOCDMediaBSDClient.h [plain text]
#ifndef _IOCDMEDIABSDCLIENT_H
#define _IOCDMEDIABSDCLIENT_H
#include <sys/ioctl.h>
#include <sys/types.h>
#include <IOKit/storage/IOCDTypes.h>
typedef struct
{
u_int64_t offset;
u_int8_t sectorArea;
u_int8_t sectorType;
u_int8_t reserved0080[6];
u_int32_t bufferLength;
void * buffer;
} dk_cd_read_t;
typedef struct
{
CDISRC isrc;
u_int8_t track;
u_int8_t reserved0112[2];
} dk_cd_read_isrc_t;
typedef struct
{
CDMCN mcn;
u_int8_t reserved0112[2];
} dk_cd_read_mcn_t;
#define DKIOCCDREAD _IOWR('d', 96, dk_cd_read_t)
#define DKIOCCDREADISRC _IOWR('d', 97, dk_cd_read_isrc_t)
#define DKIOCCDREADMCN _IOWR('d', 98, dk_cd_read_mcn_t)
#define DKIOCCDGETSPEED _IOR('d', 99, u_int16_t)
#define DKIOCCDSETSPEED _IOW('d', 99, u_int16_t)
#if defined(KERNEL) && defined(__cplusplus)
#include <IOKit/storage/IOCDMedia.h>
#include <IOKit/storage/IOMediaBSDClient.h>
class IOCDMediaBSDClient : public IOMediaBSDClient
{
OSDeclareDefaultStructors(IOCDMediaBSDClient)
protected:
struct ExpansionData { };
ExpansionData * _expansionData;
public:
virtual IOCDMedia * getProvider() const;
virtual int ioctl(dev_t, u_long cmd, caddr_t data, int, struct proc *);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 0);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 1);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 2);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 3);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 4);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 5);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 6);
OSMetaClassDeclareReservedUnused(IOCDMediaBSDClient, 7);
};
#endif
#endif