Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sr_ioctl.c File Reference
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/blkdev.h>
#include <linux/module.h>
#include <linux/blkpg.h>
#include <linux/cdrom.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <scsi/scsi.h>
#include <scsi/scsi_dbg.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_cmnd.h>
#include "sr.h"

Go to the source code of this file.

Macros

#define SR_GFP_DMA(cd)   (((cd)->device->host->unchecked_isa_dma) ? GFP_DMA : 0)
 
#define IOCTL_RETRIES   3
 

Functions

 module_param (xa_test, int, S_IRUGO|S_IWUSR)
 
int sr_do_ioctl (Scsi_CD *cd, struct packet_command *cgc)
 
int sr_tray_move (struct cdrom_device_info *cdi, int pos)
 
int sr_lock_door (struct cdrom_device_info *cdi, int lock)
 
int sr_drive_status (struct cdrom_device_info *cdi, int slot)
 
int sr_disk_status (struct cdrom_device_info *cdi)
 
int sr_get_last_session (struct cdrom_device_info *cdi, struct cdrom_multisession *ms_info)
 
int sr_get_mcn (struct cdrom_device_info *cdi, struct cdrom_mcn *mcn)
 
int sr_reset (struct cdrom_device_info *cdi)
 
int sr_select_speed (struct cdrom_device_info *cdi, int speed)
 
int sr_audio_ioctl (struct cdrom_device_info *cdi, unsigned int cmd, void *arg)
 
int sr_is_xa (Scsi_CD *cd)
 

Macro Definition Documentation

#define IOCTL_RETRIES   3

Definition at line 109 of file sr_ioctl.c.

#define SR_GFP_DMA (   cd)    (((cd)->device->host->unchecked_isa_dma) ? GFP_DMA : 0)

Definition at line 37 of file sr_ioctl.c.

Function Documentation

module_param ( xa_test  ,
int  ,
S_IRUGO S_IWUSR 
)
int sr_audio_ioctl ( struct cdrom_device_info cdi,
unsigned int  cmd,
void arg 
)

Definition at line 461 of file sr_ioctl.c.

int sr_disk_status ( struct cdrom_device_info cdi)

Definition at line 358 of file sr_ioctl.c.

int sr_do_ioctl ( Scsi_CD cd,
struct packet_command cgc 
)

Definition at line 186 of file sr_ioctl.c.

int sr_drive_status ( struct cdrom_device_info cdi,
int  slot 
)

Definition at line 301 of file sr_ioctl.c.

int sr_get_last_session ( struct cdrom_device_info cdi,
struct cdrom_multisession ms_info 
)

Definition at line 389 of file sr_ioctl.c.

int sr_get_mcn ( struct cdrom_device_info cdi,
struct cdrom_mcn mcn 
)

Definition at line 400 of file sr_ioctl.c.

int sr_is_xa ( Scsi_CD cd)

Definition at line 575 of file sr_ioctl.c.

int sr_lock_door ( struct cdrom_device_info cdi,
int  lock 
)

Definition at line 293 of file sr_ioctl.c.

int sr_reset ( struct cdrom_device_info cdi)

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_tray_move ( struct cdrom_device_info cdi,
int  pos 
)

Definition at line 280 of file sr_ioctl.c.