Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ide-cd.h File Reference
#include <linux/cdrom.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  atapi_msf
 
struct  atapi_toc_header
 
struct  atapi_toc_entry
 
struct  atapi_toc
 
struct  cdrom_info
 

Macros

#define IDECD_DEBUG_LOG   0
 
#define ide_debug_log(lvl, fmt, args...)   do {} while (0)
 
#define ATAPI_WAIT_WRITE_BUSY   (10 * HZ)
 
#define SECTOR_BITS   9
 
#define SECTOR_SIZE   (1 << SECTOR_BITS)
 
#define SECTORS_PER_FRAME   (CD_FRAMESIZE >> SECTOR_BITS)
 
#define SECTOR_BUFFER_SIZE   (CD_FRAMESIZE * 32)
 
#define ATAPI_CAPABILITIES_PAGE_SIZE   (8 + 20)
 
#define ATAPI_CAPABILITIES_PAGE_PAD_SIZE   4
 
#define MAX_TRACKS   99
 

Functions

void ide_cd_log_error (const char *, struct request *, struct request_sense *)
 
int ide_cd_queue_pc (ide_drive_t *, const unsigned char *, int, void *, unsigned *, struct request_sense *, int, unsigned int)
 
int ide_cd_read_toc (ide_drive_t *, struct request_sense *)
 
int ide_cdrom_get_capabilities (ide_drive_t *, u8 *)
 
void ide_cdrom_update_speed (ide_drive_t *, u8 *)
 
int cdrom_check_status (ide_drive_t *, struct request_sense *)
 
int ide_cdrom_open_real (struct cdrom_device_info *, int)
 
void ide_cdrom_release_real (struct cdrom_device_info *)
 
int ide_cdrom_drive_status (struct cdrom_device_info *, int)
 
unsigned int ide_cdrom_check_events_real (struct cdrom_device_info *, unsigned int clearing, int slot_nr)
 
int ide_cdrom_tray_move (struct cdrom_device_info *, int)
 
int ide_cdrom_lock_door (struct cdrom_device_info *, int)
 
int ide_cdrom_select_speed (struct cdrom_device_info *, int)
 
int ide_cdrom_get_last_session (struct cdrom_device_info *, struct cdrom_multisession *)
 
int ide_cdrom_get_mcn (struct cdrom_device_info *, struct cdrom_mcn *)
 
int ide_cdrom_reset (struct cdrom_device_info *cdi)
 
int ide_cdrom_audio_ioctl (struct cdrom_device_info *, unsigned int, void *)
 
int ide_cdrom_packet (struct cdrom_device_info *, struct packet_command *)
 

Macro Definition Documentation

#define ATAPI_CAPABILITIES_PAGE_PAD_SIZE   4

Definition at line 32 of file ide-cd.h.

#define ATAPI_CAPABILITIES_PAGE_SIZE   (8 + 20)

Definition at line 31 of file ide-cd.h.

#define ATAPI_WAIT_WRITE_BUSY   (10 * HZ)

Definition at line 19 of file ide-cd.h.

#define ide_debug_log (   lvl,
  fmt,
  args... 
)    do {} while (0)

Definition at line 16 of file ide-cd.h.

#define IDECD_DEBUG_LOG   0

Definition at line 11 of file ide-cd.h.

#define MAX_TRACKS   99

Definition at line 43 of file ide-cd.h.

#define SECTOR_BITS   9

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

#define SECTOR_BUFFER_SIZE   (CD_FRAMESIZE * 32)

Definition at line 28 of file ide-cd.h.

#define SECTOR_SIZE   (1 << SECTOR_BITS)

Definition at line 25 of file ide-cd.h.

#define SECTORS_PER_FRAME   (CD_FRAMESIZE >> SECTOR_BITS)

Definition at line 27 of file ide-cd.h.

Function Documentation

int cdrom_check_status ( ide_drive_t ,
struct request_sense  
)

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

void ide_cd_log_error ( const char ,
struct request ,
struct request_sense  
)

Definition at line 15 of file ide-cd_verbose.c.

int ide_cd_queue_pc ( ide_drive_t ,
const unsigned char ,
int  ,
void ,
unsigned *  ,
struct request_sense ,
int  ,
unsigned  int 
)

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

int ide_cd_read_toc ( ide_drive_t ,
struct request_sense  
)

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

int ide_cdrom_audio_ioctl ( struct cdrom_device_info ,
unsigned  int,
void  
)

Definition at line 426 of file ide-cd_ioctl.c.

unsigned int ide_cdrom_check_events_real ( struct cdrom_device_info ,
unsigned int  clearing,
int  slot_nr 
)

Definition at line 88 of file ide-cd_ioctl.c.

int ide_cdrom_drive_status ( struct cdrom_device_info ,
int   
)

Definition at line 41 of file ide-cd_ioctl.c.

int ide_cdrom_get_capabilities ( ide_drive_t ,
u8  
)

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

int ide_cdrom_get_last_session ( struct cdrom_device_info ,
struct cdrom_multisession  
)

Definition at line 248 of file ide-cd_ioctl.c.

int ide_cdrom_get_mcn ( struct cdrom_device_info ,
struct cdrom_mcn  
)

Definition at line 270 of file ide-cd_ioctl.c.

int ide_cdrom_lock_door ( struct cdrom_device_info ,
int   
)

Definition at line 200 of file ide-cd_ioctl.c.

int ide_cdrom_open_real ( struct cdrom_device_info ,
int   
)

Definition at line 20 of file ide-cd_ioctl.c.

int ide_cdrom_packet ( struct cdrom_device_info ,
struct packet_command  
)

Definition at line 448 of file ide-cd_ioctl.c.

void ide_cdrom_release_real ( struct cdrom_device_info )

Definition at line 28 of file ide-cd_ioctl.c.

int ide_cdrom_reset ( struct cdrom_device_info cdi)

Definition at line 298 of file ide-cd_ioctl.c.

int ide_cdrom_select_speed ( struct cdrom_device_info ,
int   
)

Definition at line 211 of file ide-cd_ioctl.c.

int ide_cdrom_tray_move ( struct cdrom_device_info ,
int   
)

Definition at line 185 of file ide-cd_ioctl.c.

void ide_cdrom_update_speed ( ide_drive_t ,
u8  
)

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