iPXE
Data Structures | Defines | Enumerations | Functions | Variables
eltorito.h File Reference

El Torito bootable CD-ROM specification. More...

#include <stdint.h>
#include <ipxe/iso9660.h>

Go to the source code of this file.

Data Structures

struct  eltorito_descriptor_fixed
 An El Torito Boot Record Volume Descriptor (fixed portion) More...
struct  eltorito_descriptor
 An El Torito Boot Record Volume Descriptor. More...
struct  eltorito_validation_entry
 An El Torito Boot Catalog Validation Entry. More...
struct  eltorito_boot_entry
 A bootable entry in the El Torito Boot Catalog. More...

Defines

#define ELTORITO_LBA   17
 El Torito Boot Record Volume Descriptor block address.
#define ELTORITO_BOOTABLE   0x88
 Boot indicator for a bootable ISO image.

Enumerations

enum  eltorito_platform_id { ELTORITO_PLATFORM_X86 = 0x00, ELTORITO_PLATFORM_POWERPC = 0x01, ELTORITO_PLATFORM_MAC = 0x02 }
 El Torito platform IDs. More...
enum  eltorito_media_type { ELTORITO_NO_EMULATION = 0 }
 El Torito media types. More...

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
struct eltorito_descriptor_fixed __attribute__ ((packed))

Variables

uint8_t type
 Descriptor type.
uint8_t id [5]
 Identifier ("CD001")
uint8_t version
 Version, must be 1.
uint8_t system_id [32]
 Boot system indicator; must be "EL TORITO SPECIFICATION".
struct eltorito_descriptor_fixed fixed
 Fixed portion.
uint8_t unused [32]
 Unused.
uint32_t sector
 Boot catalog sector.
uint8_t header_id
 Header ID; must be 1.
uint8_t platform_id
 Platform ID.
uint16_t reserved
 Reserved.
uint8_t id_string [24]
 ID string.
uint16_t checksum
 Checksum word.
uint16_t signature
 Signature; must be 0xaa55.
enum eltorito_platform_id __attribute__
uint8_t indicator
 Boot indicator.
uint8_t media_type
 Media type.
uint16_t load_segment
 Load segment.
uint8_t filesystem
 System type.
uint8_t reserved_a
 Unused.
uint16_t length
 Sector count.
uint32_t start
 Starting sector.
uint8_t reserved_b [20]
 Unused.

Detailed Description

El Torito bootable CD-ROM specification.

Definition in file eltorito.h.


Define Documentation

#define ELTORITO_LBA   17

El Torito Boot Record Volume Descriptor block address.

Definition at line 39 of file eltorito.h.

Referenced by int13_parse_eltorito().

#define ELTORITO_BOOTABLE   0x88

Boot indicator for a bootable ISO image.

Definition at line 95 of file eltorito.h.

Referenced by int13_load_eltorito().


Enumeration Type Documentation

El Torito platform IDs.

Enumerator:
ELTORITO_PLATFORM_X86 
ELTORITO_PLATFORM_POWERPC 
ELTORITO_PLATFORM_MAC 

Definition at line 63 of file eltorito.h.

El Torito media types.

Enumerator:
ELTORITO_NO_EMULATION 

No emulation.

Definition at line 98 of file eltorito.h.

                         {
        /** No emulation */
        ELTORITO_NO_EMULATION = 0,
};

Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

Variable Documentation

Descriptor type.

Definition at line 28 of file eltorito.h.

uint8_t id[5]

Identifier ("CD001")

Definition at line 30 of file eltorito.h.

Version, must be 1.

Definition at line 32 of file eltorito.h.

Boot system indicator; must be "EL TORITO SPECIFICATION".

Definition at line 34 of file eltorito.h.

Fixed portion.

Definition at line 38 of file eltorito.h.

Referenced by syslog_fix_name().

Boot catalog sector.

Definition at line 42 of file eltorito.h.

Referenced by int13_rw_sectors().

Header ID; must be 1.

Definition at line 62 of file eltorito.h.

Platform ID.

0 = 80x86 1 = PowerPC 2 = Mac

Definition at line 69 of file eltorito.h.

Reserved.

Definition at line 71 of file eltorito.h.

ID string.

Definition at line 73 of file eltorito.h.

Referenced by peerdisc_open().

Checksum word.

Definition at line 75 of file eltorito.h.

Signature; must be 0xaa55.

Definition at line 77 of file eltorito.h.

Boot indicator.

Must be ELTORITO_BOOTABLE for a bootable ISO image

Definition at line 97 of file eltorito.h.

Media type.

Definition at line 101 of file eltorito.h.

Load segment.

Definition at line 103 of file eltorito.h.

System type.

Definition at line 105 of file eltorito.h.

Unused.

Definition at line 107 of file eltorito.h.

Sector count.

Definition at line 109 of file eltorito.h.

Starting sector.

Definition at line 111 of file eltorito.h.

Unused.

Definition at line 113 of file eltorito.h.