Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

iso9660.h 947B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _IPXE_ISO9660_H
  2. #define _IPXE_ISO9660_H
  3. /**
  4. * @file
  5. *
  6. * ISO9660 CD-ROM specification
  7. *
  8. */
  9. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  10. #include <stdint.h>
  11. /** ISO9660 block size */
  12. #define ISO9660_BLKSIZE 2048
  13. /** An ISO9660 Primary Volume Descriptor (fixed portion) */
  14. struct iso9660_primary_descriptor_fixed {
  15. /** Descriptor type */
  16. uint8_t type;
  17. /** Identifier ("CD001") */
  18. uint8_t id[5];
  19. } __attribute__ (( packed ));
  20. /** An ISO9660 Primary Volume Descriptor */
  21. struct iso9660_primary_descriptor {
  22. /** Fixed portion */
  23. struct iso9660_primary_descriptor_fixed fixed;
  24. } __attribute__ (( packed ));
  25. /** ISO9660 Primary Volume Descriptor type */
  26. #define ISO9660_TYPE_PRIMARY 0x01
  27. /** ISO9660 Primary Volume Descriptor block address */
  28. #define ISO9660_PRIMARY_LBA 16
  29. /** ISO9660 Boot Volume Descriptor type */
  30. #define ISO9660_TYPE_BOOT 0x00
  31. /** ISO9660 identifier */
  32. #define ISO9660_ID "CD001"
  33. #endif /* _IPXE_ISO9660_H */