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 
13 #include <stdint.h>
14 
15 /** ISO9660 block size */
16 #define ISO9660_BLKSIZE 2048
17 
18 /** An ISO9660 Primary Volume Descriptor (fixed portion) */
20  /** Descriptor type */
22  /** Identifier ("CD001") */
23  uint8_t id[5];
24 } __attribute__ (( packed ));
25 
26 /** An ISO9660 Primary Volume Descriptor */
28  /** Fixed portion */
30 } __attribute__ (( packed ));
31 
32 /** ISO9660 Primary Volume Descriptor type */
33 #define ISO9660_TYPE_PRIMARY 0x01
34 
35 /** ISO9660 Primary Volume Descriptor block address */
36 #define ISO9660_PRIMARY_LBA 16
37 
38 /** ISO9660 Boot Volume Descriptor type */
39 #define ISO9660_TYPE_BOOT 0x00
40 
41 /** ISO9660 identifier */
42 #define ISO9660_ID "CD001"
43 
44 #endif /* _IPXE_ISO9660_H */
An ISO9660 Primary Volume Descriptor.
Definition: iso9660.h:27
struct iso9660_primary_descriptor_fixed __attribute__((packed))
An ISO9660 Primary Volume Descriptor (fixed portion)
Definition: iso9660.h:19
unsigned char uint8_t
Definition: stdint.h:10
uint8_t type
Descriptor type.
Definition: iso9660.h:21
struct iso9660_primary_descriptor_fixed fixed
Fixed portion.
Definition: iso9660.h:29
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)