Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
pktcdvd.h File Reference
#include <linux/blkdev.h>
#include <linux/completion.h>
#include <linux/cdrom.h>
#include <linux/kobject.h>
#include <linux/sysfs.h>
#include <linux/mempool.h>
#include <uapi/linux/pktcdvd.h>

Go to the source code of this file.

Data Structures

struct  packet_settings
 
struct  packet_stats
 
struct  packet_cdrw
 
struct  packet_iosched
 
struct  packet_data
 
struct  pkt_rb_node
 
struct  packet_stacked_data
 
struct  pktcdvd_kobj
 
struct  pktcdvd_device
 

Macros

#define PKT_WRITE_CONGESTION_ON   10000
 
#define PKT_WRITE_CONGESTION_OFF   9000
 
#define HI_SPEED_SWITCH   512
 
#define PACKET_MAX_SIZE   128
 
#define FRAMES_PER_PAGE   (PAGE_SIZE / CD_FRAMESIZE)
 
#define PACKET_MAX_SECTORS   (PACKET_MAX_SIZE * CD_FRAMESIZE >> 9)
 
#define PSD_POOL_SIZE   64
 
#define to_pktcdvdkobj(_k)   ((struct pktcdvd_kobj*)container_of(_k,struct pktcdvd_kobj,kobj))
 

Enumerations

enum  packet_data_state {
  PACKET_IDLE_STATE, PACKET_WAITING_STATE, PACKET_READ_WAIT_STATE, PACKET_WRITE_WAIT_STATE,
  PACKET_RECOVERY_STATE, PACKET_FINISHED_STATE, PACKET_NUM_STATES
}
 

Macro Definition Documentation

#define FRAMES_PER_PAGE   (PAGE_SIZE / CD_FRAMESIZE)

Definition at line 84 of file pktcdvd.h.

#define HI_SPEED_SWITCH   512

Definition at line 64 of file pktcdvd.h.

#define PACKET_MAX_SECTORS   (PACKET_MAX_SIZE * CD_FRAMESIZE >> 9)

Definition at line 85 of file pktcdvd.h.

#define PACKET_MAX_SIZE   128

Definition at line 83 of file pktcdvd.h.

#define PKT_WRITE_CONGESTION_OFF   9000

Definition at line 25 of file pktcdvd.h.

#define PKT_WRITE_CONGESTION_ON   10000

Definition at line 24 of file pktcdvd.h.

#define PSD_POOL_SIZE   64

Definition at line 153 of file pktcdvd.h.

#define to_pktcdvdkobj (   _k)    ((struct pktcdvd_kobj*)container_of(_k,struct pktcdvd_kobj,kobj))

Definition at line 160 of file pktcdvd.h.

Enumeration Type Documentation

Enumerator:
PACKET_IDLE_STATE 
PACKET_WAITING_STATE 
PACKET_READ_WAIT_STATE 
PACKET_WRITE_WAIT_STATE 
PACKET_RECOVERY_STATE 
PACKET_FINISHED_STATE 
PACKET_NUM_STATES 

Definition at line 87 of file pktcdvd.h.