Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sr.h File Reference
#include <linux/genhd.h>
#include <linux/kref.h>

Go to the source code of this file.

Data Structures

struct  scsi_cd
 

Macros

#define MAX_RETRIES   3
 
#define SR_TIMEOUT   (30 * HZ)
 
#define IOCTL_TIMEOUT   30*HZ
 

Typedefs

typedef struct scsi_cd Scsi_CD
 

Functions

int sr_do_ioctl (Scsi_CD *, struct packet_command *)
 
int sr_lock_door (struct cdrom_device_info *, int)
 
int sr_tray_move (struct cdrom_device_info *, int)
 
int sr_drive_status (struct cdrom_device_info *, int)
 
int sr_disk_status (struct cdrom_device_info *)
 
int sr_get_last_session (struct cdrom_device_info *, struct cdrom_multisession *)
 
int sr_get_mcn (struct cdrom_device_info *, struct cdrom_mcn *)
 
int sr_reset (struct cdrom_device_info *)
 
int sr_select_speed (struct cdrom_device_info *cdi, int speed)
 
int sr_audio_ioctl (struct cdrom_device_info *, unsigned int, void *)
 
int sr_is_xa (Scsi_CD *)
 
void sr_vendor_init (Scsi_CD *)
 
int sr_cd_check (struct cdrom_device_info *)
 
int sr_set_blocklength (Scsi_CD *, int blocklength)
 

Macro Definition Documentation

#define IOCTL_TIMEOUT   30*HZ

Definition at line 30 of file sr.h.

#define MAX_RETRIES   3

Definition at line 23 of file sr.h.

#define SR_TIMEOUT   (30 * HZ)

Definition at line 24 of file sr.h.

Typedef Documentation

Function Documentation

int sr_audio_ioctl ( struct cdrom_device_info ,
unsigned  int,
void  
)

Definition at line 461 of file sr_ioctl.c.

int sr_cd_check ( struct cdrom_device_info )

Definition at line 157 of file sr_vendor.c.

int sr_disk_status ( struct cdrom_device_info )

Definition at line 358 of file sr_ioctl.c.

int sr_do_ioctl ( Scsi_CD ,
struct packet_command  
)

Definition at line 186 of file sr_ioctl.c.

int sr_drive_status ( struct cdrom_device_info ,
int   
)

Definition at line 301 of file sr_ioctl.c.

int sr_get_last_session ( struct cdrom_device_info ,
struct cdrom_multisession  
)

Definition at line 389 of file sr_ioctl.c.

int sr_get_mcn ( struct cdrom_device_info ,
struct cdrom_mcn  
)

Definition at line 400 of file sr_ioctl.c.

int sr_is_xa ( Scsi_CD )

Definition at line 575 of file sr_ioctl.c.

int sr_lock_door ( struct cdrom_device_info ,
int   
)

Definition at line 293 of file sr_ioctl.c.

int sr_reset ( struct cdrom_device_info )

Definition at line 428 of file sr_ioctl.c.

int sr_select_speed ( struct cdrom_device_info cdi,
int  speed 
)

Definition at line 433 of file sr_ioctl.c.

int sr_set_blocklength ( Scsi_CD ,
int  blocklength 
)

Definition at line 109 of file sr_vendor.c.

int sr_tray_move ( struct cdrom_device_info ,
int   
)

Definition at line 280 of file sr_ioctl.c.

void sr_vendor_init ( Scsi_CD )

Definition at line 66 of file sr_vendor.c.