Skip to content

Commit 62054d4

Browse files
uefi-raw: Add PxeBaseCodeBootType
1 parent e8c913f commit 62054d4

File tree

1 file changed

+26
-0
lines changed
  • uefi-raw/src/protocol/network

1 file changed

+26
-0
lines changed

uefi-raw/src/protocol/network/pxe.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ use crate::{Boolean, Char8, IpAddress, MacAddress};
44
use bitflags::bitflags;
55
use core::fmt::{self, Debug, Formatter};
66

7+
newtype_enum! {
8+
pub enum PxeBaseCodeBootType: u16 => {
9+
BOOTSTRAP = 0,
10+
MS_WINNT_RIS = 1,
11+
INTEL_LCM = 2,
12+
DOS_UNDI = 3,
13+
NEC_ESMPRO = 4,
14+
IBM_WSOD = 5,
15+
IBM_LCCM = 6,
16+
CA_UNICENTER_TNG = 7,
17+
HP_OPENVIEW = 8,
18+
ALTIRIS_9 = 9,
19+
ALTIRIS_10 = 10,
20+
ALTIRIS_11 = 11,
21+
NOT_USED_12 = 12,
22+
REDHAT_INSTALL = 13,
23+
REDHAT_BOOT = 14,
24+
REMBO = 15,
25+
BEOBOOT = 16,
26+
// 17..=32767: reserved.
27+
// 32768..=65279: reserved for vendor use.
28+
// 65280..=65534: reserved.
29+
PXETEST = 65535,
30+
}
31+
}
32+
733
newtype_enum! {
834
pub enum PxeBaseCodeTftpOpcode: i32 => {
935
TFTP_FIRST = 0,

0 commit comments

Comments
 (0)