- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

# include/scsi/rbc_protocol.h

Go to the documentation of this file.

    00001
    00044 #ifndef SCSI_RBC_PROTOCOL_H_INCLUDED
    00045 #define SCSI_RBC_PROTOCOL_H_INCLUDED
    00046
    00047 #include <scsi/spc_protocol.h>
    00048
    00049 #define SCSI_CMD_START_STOP_UNIT                0x1b
    00050 #define SCSI_CMD_READ_CAPACITY10                0x25
    00051 #define SCSI_CMD_READ10                         0x28
    00052 #define SCSI_CMD_WRITE10                        0x2a
    00053 #define SCSI_CMD_VERIFY10                       0x2f
    00054
    00055 struct rbc_device_param_page {
    00056         uint8_t page_code;
    00057 #define RBC_DEVICE_PARAM_PAGE_CODE      (SCSI_PAGE_CODE_PS | 0x06)
    00058         uint8_t page_length;
    00059 #define RBC_DEVICE_PARAM_PAGE_LENGTH    (0x0b)
    00060         uint8_t flags2;
    00061 #define RBC_DEVICE_PARAM_WCD            (1 << 0)
    00062         uint8_t logical_block_size[2];
    00063         uint8_t number_of_logical_blocks[5];
    00064         uint8_t power_performance;
    00065         uint8_t flags11;
    00066 #define RBC_DEVICE_PARAM_READD          (1 << 3)
    00067 #define RBC_DEVICE_PARAM_WRITED         (1 << 2)
    00068 #define RBC_DEVICE_PARAM_FORMATD        (1 << 1)
    00069 #define RBC_DEVICE_PARAM_LOCKD          (1 << 0)
    00070         uint8_t reserved;
    00071 };
    00072
    00073 #endif /* SCSI_RBC_PROTOCOL_H_INCLUDED */