Enum GasAddressSpace

Source
pub enum GasAddressSpace {
Show 14 variants SystemMemory, SystemIO, PciConfigurationSpace, EmbeddedController, SMBus, SystemCMOS, PciBarTarget, IPMI, GeneralPurposeIO, GenericSerialBus, PlatformCommunicationsChannel, PlatformRuntimeMechanism, FunctionalFixedHardware, Other(u8),
}
Expand description

A type of address space that a generic address structure can point into

Variants§

§

SystemMemory

A physical address in main memory

§

SystemIO

An IO port number

§

PciConfigurationSpace

A register in the PCI configuration space. PCI addresses in a GAS are confined to devices on PCI Segment Group 0, bus 0.

Using this address space, address is interpreted as follows:

  • Most significant word: Ignored, must be 0
  • Next word: Device number on bus 0
  • Next word: Function number
  • Least significant word: Offset into the configuration registers (TODO: is this in bytes or registers?)

For example: Offset 0x23 of Function 2 on device 7 on bus 0 segment 0 would be represented as 0x0000 0007 0002 0023.

§

EmbeddedController

An embedded controller

§

SMBus

The system management bus

§

SystemCMOS

The system’s CMOS chip

§

PciBarTarget

A register inside an MMIO region, located by a BAR located in the PCI configuration space.

Using this address space, address is interpreted as follows:

Bits 63:56 – PCI Segment
Bits 55:48 – PCI Bus
Bits 47:43 – PCI Device
Bits 42:40 – PCI Function
Bits 39:37 – BAR Number
Bits 36:0 – Offset from BAR in DWORDs\

§

IPMI

The IPMI bus

§

GeneralPurposeIO

An address relating to GPIO

§

GenericSerialBus

A serial bus

§

PlatformCommunicationsChannel

The platform communications channel

§

PlatformRuntimeMechanism

The platform runtime mechanism

§

FunctionalFixedHardware

Functional fixed hardware

§

Other(u8)

An unknown or reserved value

Trait Implementations§

Source§

impl Clone for GasAddressSpace

Source§

fn clone(&self) -> GasAddressSpace

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GasAddressSpace

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for GasAddressSpace

Source§

fn eq(&self, other: &GasAddressSpace) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for GasAddressSpace

Source§

impl Eq for GasAddressSpace

Source§

impl StructuralPartialEq for GasAddressSpace

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.