iPXE
iso9660.h
Go to the documentation of this file.
1 #ifndef _IPXE_ISO9660_H
2 #define _IPXE_ISO9660_H
3 
4 /**
5  * @file
6  *
7  * ISO9660 CD-ROM specification
8  *
9  */
10 
11 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
12 FILE_SECBOOT ( PERMITTED );
13 
14 #include <stdint.h>
15 
16 /** ISO9660 block size */
17 #define ISO9660_BLKSIZE 2048
18 
19 /** An ISO9660 Primary Volume Descriptor (fixed portion) */
21  /** Descriptor type */
23  /** Identifier ("CD001") */
24  uint8_t id[5];
25 } __attribute__ (( packed ));
26 
27 /** An ISO9660 Primary Volume Descriptor */
29  /** Fixed portion */
31 } __attribute__ (( packed ));
32 
33 /** ISO9660 Primary Volume Descriptor type */
34 #define ISO9660_TYPE_PRIMARY 0x01
35 
36 /** ISO9660 Primary Volume Descriptor block address */
37 #define ISO9660_PRIMARY_LBA 16
38 
39 /** ISO9660 Boot Volume Descriptor type */
40 #define ISO9660_TYPE_BOOT 0x00
41 
42 /** ISO9660 identifier */
43 #define ISO9660_ID "CD001"
44 
45 #endif /* _IPXE_ISO9660_H */
An ISO9660 Primary Volume Descriptor.
Definition: iso9660.h:28
struct iso9660_primary_descriptor_fixed __attribute__((packed))
FILE_SECBOOT(PERMITTED)
An ISO9660 Primary Volume Descriptor (fixed portion)
Definition: iso9660.h:20
unsigned char uint8_t
Definition: stdint.h:10
uint8_t type
Descriptor type.
Definition: iso9660.h:22
struct iso9660_primary_descriptor_fixed fixed
Fixed portion.
Definition: iso9660.h:30
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)