Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cdrom.h File Reference
#include <linux/fs.h>
#include <linux/list.h>
#include <uapi/linux/cdrom.h>

Go to the source code of this file.

Data Structures

struct  packet_command
 
struct  cdrom_device_info
 
struct  cdrom_device_ops
 
struct  tracktype
 
struct  cdrom_mechstat_header
 
struct  cdrom_slot
 
struct  cdrom_changer_info
 
struct  __attribute__
 
struct  modesel_head
 
struct  rpc_state_t
 
struct  event_header
 
struct  media_event_desc
 

Macros

#define CDDA_OLD   0 /* old style */
 
#define CDDA_BPC_SINGLE   1 /* single frame block pc */
 
#define CDDA_BPC_FULL   2 /* multi frame block pc */
 
#define CDROM_MAX_SLOTS   256
 

Enumerations

enum  mechtype_t {
  mechtype_caddy = 0, mechtype_tray = 1, mechtype_popup = 2, mechtype_individual_changer = 4,
  mechtype_cartridge_changer = 5
}
 

Functions

int cdrom_open (struct cdrom_device_info *cdi, struct block_device *bdev, fmode_t mode)
 
void cdrom_release (struct cdrom_device_info *cdi, fmode_t mode)
 
int cdrom_ioctl (struct cdrom_device_info *cdi, struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg)
 
unsigned int cdrom_check_events (struct cdrom_device_info *cdi, unsigned int clearing)
 
int cdrom_media_changed (struct cdrom_device_info *)
 
int register_cdrom (struct cdrom_device_info *cdi)
 
void unregister_cdrom (struct cdrom_device_info *cdi)
 
int cdrom_get_last_written (struct cdrom_device_info *cdi, long *last_written)
 
int cdrom_number_of_slots (struct cdrom_device_info *cdi)
 
int cdrom_mode_select (struct cdrom_device_info *cdi, struct packet_command *cgc)
 
int cdrom_mode_sense (struct cdrom_device_info *cdi, struct packet_command *cgc, int page_code, int page_control)
 
void init_cdrom_command (struct packet_command *cgc, void *buffer, int len, int type)
 
int cdrom_get_media_event (struct cdrom_device_info *cdi, struct media_event_desc *med)
 

Macro Definition Documentation

#define CDDA_BPC_FULL   2 /* multi frame block pc */

Definition at line 35 of file cdrom.h.

#define CDDA_BPC_SINGLE   1 /* single frame block pc */

Definition at line 34 of file cdrom.h.

#define CDDA_OLD   0 /* old style */

Definition at line 33 of file cdrom.h.

#define CDROM_MAX_SLOTS   256

Definition at line 128 of file cdrom.h.

Enumeration Type Documentation

enum mechtype_t
Enumerator:
mechtype_caddy 
mechtype_tray 
mechtype_popup 
mechtype_individual_changer 
mechtype_cartridge_changer 

Definition at line 169 of file cdrom.h.

Function Documentation

unsigned int cdrom_check_events ( struct cdrom_device_info cdi,
unsigned int  clearing 
)

Definition at line 1420 of file cdrom.c.

int cdrom_get_last_written ( struct cdrom_device_info cdi,
long last_written 
)

Definition at line 3282 of file cdrom.c.

int cdrom_get_media_event ( struct cdrom_device_info cdi,
struct media_event_desc med 
)

Definition at line 465 of file cdrom.c.

int cdrom_ioctl ( struct cdrom_device_info cdi,
struct block_device bdev,
fmode_t  mode,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 2736 of file cdrom.c.

int cdrom_media_changed ( struct cdrom_device_info )

Definition at line 1467 of file cdrom.c.

int cdrom_mode_select ( struct cdrom_device_info cdi,
struct packet_command cgc 
)

Definition at line 1990 of file cdrom.c.

int cdrom_mode_sense ( struct cdrom_device_info cdi,
struct packet_command cgc,
int  page_code,
int  page_control 
)

Definition at line 1974 of file cdrom.c.

int cdrom_number_of_slots ( struct cdrom_device_info cdi)

Definition at line 1289 of file cdrom.c.

int cdrom_open ( struct cdrom_device_info cdi,
struct block_device bdev,
fmode_t  mode 
)

Definition at line 980 of file cdrom.c.

void cdrom_release ( struct cdrom_device_info cdi,
fmode_t  mode 
)

Definition at line 1191 of file cdrom.c.

void init_cdrom_command ( struct packet_command cgc,
void buffer,
int  len,
int  type 
)

Definition at line 1560 of file cdrom.c.

int register_cdrom ( struct cdrom_device_info cdi)

Definition at line 392 of file cdrom.c.

void unregister_cdrom ( struct cdrom_device_info cdi)

Definition at line 450 of file cdrom.c.