Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ide-cd.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/cdrom.h>
#include <linux/ide.h>
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/bcd.h>
#include <scsi/scsi.h>
#include <linux/io.h>
#include <asm/byteorder.h>
#include <linux/uaccess.h>
#include <asm/unaligned.h>
#include "ide-cd.h"

Go to the source code of this file.

Data Structures

struct  cd_list_entry
 

Macros

#define DRV_NAME   "ide-cd"
 
#define PFX   DRV_NAME ": "
 
#define IDECD_VERSION   "5.00"
 
#define IDE_CD_CAPABILITIES
 

Functions

int ide_cd_queue_pc (ide_drive_t *drive, const unsigned char *cmd, int write, void *buffer, unsigned *bufflen, struct request_sense *sense, int timeout, unsigned int cmd_flags)
 
int cdrom_check_status (ide_drive_t *drive, struct request_sense *sense)
 
int ide_cd_read_toc (ide_drive_t *drive, struct request_sense *sense)
 
int ide_cdrom_get_capabilities (ide_drive_t *drive, u8 *buf)
 
void ide_cdrom_update_speed (ide_drive_t *drive, u8 *buf)
 
 module_param (debug_mask, ulong, 0644)
 
 MODULE_DESCRIPTION ("ATAPI CD-ROM Driver")
 
 MODULE_ALIAS ("ide:*m-cdrom*")
 
 MODULE_ALIAS ("ide-cd")
 
 module_init (ide_cdrom_init)
 
 module_exit (ide_cdrom_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRV_NAME   "ide-cd"

Definition at line 23 of file ide-cd.c.

#define IDE_CD_CAPABILITIES
Value:

Definition at line 1162 of file ide-cd.c.

#define IDECD_VERSION   "5.00"

Definition at line 26 of file ide-cd.c.

#define PFX   DRV_NAME ": "

Definition at line 24 of file ide-cd.c.

Function Documentation

int cdrom_check_status ( ide_drive_t drive,
struct request_sense sense 
)

Definition at line 853 of file ide-cd.c.

int ide_cd_queue_pc ( ide_drive_t drive,
const unsigned char cmd,
int  write,
void buffer,
unsigned *  bufflen,
struct request_sense sense,
int  timeout,
unsigned int  cmd_flags 
)

Definition at line 422 of file ide-cd.c.

int ide_cd_read_toc ( ide_drive_t drive,
struct request_sense sense 
)

Definition at line 950 of file ide-cd.c.

int ide_cdrom_get_capabilities ( ide_drive_t drive,
u8 buf 
)

Definition at line 1118 of file ide-cd.c.

void ide_cdrom_update_speed ( ide_drive_t drive,
u8 buf 
)

Definition at line 1140 of file ide-cd.c.

MODULE_ALIAS ( "ide:*m-cdrom*"  )
MODULE_ALIAS ( "ide-cd )
MODULE_DESCRIPTION ( "ATAPI CD-ROM Driver"  )
module_exit ( ide_cdrom_exit  )
module_init ( ide_cdrom_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug_mask  ,
ulong  ,
0644   
)