Turnstone Operating System
Loading...
Searching...
No Matches
scsi.h File Reference

SCSI command definitions. More...

#include <types.h>
#include <utils.h>

Classes

struct  scsi_command_status_t
 
struct  scsi_command_test_unit_ready_t
 
struct  scsi_command_inquiry_t
 
struct  scsi_standard_inquiry_data_t
 
struct  scsi_command_read_capacity_16_t
 
struct  scsi_capacity_16_t
 
struct  scsi_command_read_capacity_10_t
 
struct  scsi_capacity_10_t
 
struct  scsi_command_read_16_t
 
struct  scsi_command_read_10_t
 
struct  scsi_command_write_16_t
 
struct  scsi_command_write_10_t
 
struct  scsi_command_sync_cache_16_t
 
struct  scsi_command_sync_cache_10_t
 

Typedefs

typedef enum scsi_command_opcode_t scsi_command_opcode_t
 
typedef struct scsi_command_status_t scsi_command_status_t
 
typedef struct scsi_command_test_unit_ready_t scsi_command_test_unit_ready_t
 
typedef struct scsi_command_inquiry_t scsi_command_inquiry_t
 
typedef struct scsi_standard_inquiry_data_t scsi_standard_inquiry_data_t
 
typedef struct scsi_command_read_capacity_16_t scsi_command_read_capacity_16_t
 
typedef struct scsi_capacity_16_t scsi_capacity_16_t
 
typedef struct scsi_command_read_capacity_10_t scsi_command_read_capacity_10_t
 
typedef struct scsi_capacity_10_t scsi_capacity_10_t
 
typedef struct scsi_command_read_16_t scsi_command_read_16_t
 
typedef struct scsi_command_read_10_t scsi_command_read_10_t
 
typedef struct scsi_command_write_16_t scsi_command_write_16_t
 
typedef struct scsi_command_write_10_t scsi_command_write_10_t
 
typedef struct scsi_command_sync_cache_16_t scsi_command_sync_cache_16_t
 
typedef struct scsi_command_sync_cache_10_t scsi_command_sync_cache_10_t
 

Enumerations

enum  scsi_command_opcode_t {
  SCSI_COMMAND_OPCODE_TEST_UNIT_READY = 0x00 , SCSI_COMMAND_OPCODE_INQUIRY = 0x12 , SCSI_COMMAND_OPCODE_READ_CAPACITY_16 = 0x9E , SCSI_COMMAND_OPCODE_READ_CAPACITY_10 = 0x25 ,
  SCSI_COMMAND_OPCODE_READ_16 = 0x88 , SCSI_COMMAND_OPCODE_READ_10 = 0x28 , SCSI_COMMAND_OPCODE_WRITE_16 = 0x8A , SCSI_COMMAND_OPCODE_WRITE_10 = 0x2A ,
  SCSI_COMMAND_OPCODE_SYNCHRONIZE_CACHE_16 = 0x91 , SCSI_COMMAND_OPCODE_SYNCHRONIZE_CACHE_10 = 0x35
}
 

Functions

 _Static_assert (sizeof(scsi_command_test_unit_ready_t)==6, "scsi_command_test_unit_ready_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_inquiry_t)==6, "scsi_command_inquiry_t size mismatch")
 
 _Static_assert (sizeof(scsi_standard_inquiry_data_t)==512, "scsi_standard_inquiry_data_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_read_capacity_16_t)==16, "scsi_command_read_capacity_16_t size mismatch")
 
 _Static_assert (sizeof(scsi_capacity_16_t)==32, "scsi_capacity_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_read_capacity_10_t)==10, "scsi_command_read_capacity_10_t size mismatch")
 
 _Static_assert (sizeof(scsi_capacity_10_t)==8, "scsi_capacity_10_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_read_16_t)==16, "scsi_command_read_16_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_read_10_t)==10, "scsi_command_read_10_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_write_16_t)==16, "scsi_command_write_16_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_write_10_t)==10, "scsi_command_write_10_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_sync_cache_16_t)==16, "scsi_command_sync_cache_16_t size mismatch")
 
 _Static_assert (sizeof(scsi_command_sync_cache_10_t)==10, "scsi_command_sync_cache_10_t size mismatch")
 

Detailed Description

SCSI command definitions.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.