X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fide%2Fide-cd.h;h=ad1f2ed14a3723cbcec3081341487e7d784c494c;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=8305bcab8e35990bce4c2cfef13616b721228096;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/drivers/ide/ide-cd.h b/drivers/ide/ide-cd.h index 8305bcab8..ad1f2ed14 100644 --- a/drivers/ide/ide-cd.h +++ b/drivers/ide/ide-cd.h @@ -460,6 +460,10 @@ struct atapi_changer_info { /* Extra per-device info for cdrom drives. */ struct cdrom_info { + ide_drive_t *drive; + ide_driver_t *driver; + struct gendisk *disk; + struct kref kref; /* Buffer for table of contents. NULL if we haven't allocated a TOC buffer for this device yet. */ @@ -476,7 +480,6 @@ struct cdrom_info { struct request request_sense_request; int dma; - int cmd; unsigned long last_block; unsigned long start_seek; /* Buffer to hold mechanism status and changer slot table. */ @@ -519,7 +522,7 @@ struct cdrom_info { /* The generic packet command opcodes for CD/DVD Logical Units, * From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */ -const struct { +static const struct { unsigned short packet_command; const char * const text; } packet_command_texts[] = { @@ -577,7 +580,7 @@ const struct { /* From Table 303 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */ -const char * const sense_key_texts[16] = { +static const char * const sense_key_texts[16] = { "No sense data", "Recovered error", "Not ready", @@ -597,7 +600,7 @@ const char * const sense_key_texts[16] = { }; /* From Table 304 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */ -const struct { +static const struct { unsigned long asc_ascq; const char * const text; } sense_data_texts[] = {