You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scsi.h 571B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _GPXE_SCSI_H
  2. #define _GPXE_SCSI_H
  3. #include <stdint.h>
  4. struct scsi_cdb_read_10 {
  5. /** Opcode */
  6. uint8_t opcode;
  7. /** Flags */
  8. uint8_t flags;
  9. /** Start address
  10. *
  11. * This is a logical block number, in big-endian order.
  12. */
  13. uint32_t lba;
  14. /** Group number */
  15. uint8_t group;
  16. /** Transfer length
  17. *
  18. * This is a logical block count.
  19. */
  20. uint16_t len;
  21. /** Control byte */
  22. uint8_t control;
  23. } __attribute__ (( packed ));
  24. #define SCSI_OPCODE_READ_10 0x28
  25. union scsi_cdb {
  26. struct scsi_cdb_read_10 read_10;
  27. char bytes[16];
  28. };
  29. #endif /* _GPXE_SCSI_H */