Changeset 3abf70c7 in mainline for uspace/lib/scsi/include/scsi/mmc.h


Ignore:
Timestamp:
2014-08-16T22:33:41Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
da79df42
Parents:
35b8bfe
Message:

libblock is not the best place to define SCSI structures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/scsi/include/scsi/mmc.h

    r35b8bfe r3abf70c7  
    6969} __attribute__((packed)) scsi_cdb_read_toc_t;
    7070
     71/** TOC Track Descriptor */
     72typedef struct {
     73        /** Reserved */
     74        uint8_t reserved0;
     75        /** ADR, Control */
     76        uint8_t adr_control;
     77        /** Track Number */
     78        uint8_t track_no;
     79        /** Reserved */
     80        uint8_t reserved3;
     81        /** Track Start Address */
     82        uint32_t start_addr;
     83} __attribute__((packed)) scsi_toc_track_desc_t;
     84
     85/** Read TOC response format 00001b: Multi-session Information
     86 *
     87 * Returned for Read TOC command with Format 0001b
     88 */
     89typedef struct {
     90        /** TOC Data Length */
     91        uint16_t toc_len;
     92        /** First Complete Session Number */
     93        uint8_t first_sess;
     94        /** Last Complete Session Number */
     95        uint8_t last_sess;
     96        /** TOC Track Descriptor for first track in last complete session */
     97        scsi_toc_track_desc_t ftrack_lsess;
     98} __attribute__((packed)) scsi_toc_multisess_data_t;
     99
    71100#endif
    72101
Note: See TracChangeset for help on using the changeset viewer.