Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / include / ipxe / iso9660.h
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 );
12
13 #include <stdint.h>
14
15 /** ISO9660 block size */
16 #define ISO9660_BLKSIZE 2048
17
18 /** An ISO9660 Primary Volume Descriptor (fixed portion) */
19 struct iso9660_primary_descriptor_fixed {
20         /** Descriptor type */
21         uint8_t type;
22         /** Identifier ("CD001") */
23         uint8_t id[5];
24 } __attribute__ (( packed ));
25
26 /** An ISO9660 Primary Volume Descriptor */
27 struct iso9660_primary_descriptor {
28         /** Fixed portion */
29         struct iso9660_primary_descriptor_fixed fixed;
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 */