Skip to content

Commit 82131cc

Browse files
uefi: Define BootstrapType using PxeBaseCodeBootType from uefi-raw
1 parent 0426e9e commit 82131cc

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

uefi/src/proto/network/pxe.rs

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ use crate::{CStr8, Char8, Result, Status, StatusExt};
2020
use super::{IpAddress, MacAddress};
2121

2222
pub use uefi_raw::protocol::network::pxe::{
23-
PxeBaseCodeIpFilterFlags as IpFilters, PxeBaseCodeUdpOpFlags as UdpOpFlags,
23+
PxeBaseCodeBootType as BootstrapType, PxeBaseCodeIpFilterFlags as IpFilters,
24+
PxeBaseCodeUdpOpFlags as UdpOpFlags,
2425
};
2526

2627
/// PXE Base Code protocol
@@ -617,38 +618,6 @@ impl BaseCode {
617618
}
618619
}
619620

620-
/// A type of bootstrap to perform in [`BaseCode::discover`].
621-
///
622-
/// Corresponds to the `EFI_PXE_BASE_CODE_BOOT_` constants in the C API.
623-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
624-
#[repr(u16)]
625-
#[allow(missing_docs)]
626-
pub enum BootstrapType {
627-
Bootstrap = 0,
628-
MsWinntRis = 1,
629-
IntelLcm = 2,
630-
DosUndi = 3,
631-
NecEsmpro = 4,
632-
IbmWsoD = 5,
633-
IbmLccm = 6,
634-
CaUnicenterTng = 7,
635-
HpOpenview = 8,
636-
Altiris9 = 9,
637-
Altiris10 = 10,
638-
Altiris11 = 11,
639-
// NOT_USED_12 = 12,
640-
RedhatInstall = 13,
641-
RedhatBoot = 14,
642-
Rembo = 15,
643-
Beoboot = 16,
644-
//
645-
// Values 17 through 32767 are reserved.
646-
// Values 32768 through 65279 are for vendor use.
647-
// Values 65280 through 65534 are reserved.
648-
//
649-
PxeTest = 65535,
650-
}
651-
652621
opaque_type! {
653622
/// Opaque type that should be used to represent a pointer to a [`DiscoverInfo`] in
654623
/// foreign function interfaces. This type produces a thin pointer, unlike

0 commit comments

Comments
 (0)