Struct PciToCardbusBridgeHeader

Source
pub struct PciToCardbusBridgeHeader {
Show 21 fields pub cardbus_socket_exca_base_addr: u32, pub secondary_status: u16, pub offset_of_capabilities_list: u8, pub cardbus_latency_timer: u8, pub subordinate_bus_number: u8, pub cardbus_bus_number: u8, pub pci_bus_number: u8, pub memory_base_addr_0: u32, pub memory_limit_0: u32, pub memory_base_addr_1: u32, pub memory_limit_1: u32, pub io_base_addr_0: u32, pub io_limit_0: u32, pub io_base_addr_1: u32, pub io_limit_1: u32, pub bridge_control: u16, pub interrupt_pin: u8, pub interrupt_line: u8, pub subsystem_vendor_id: u16, pub subsystem_device_id: u16, pub pc_card_16bit_legacy_mode_base_addr: u32,
}
Expand description

The header for PCI to Cardbus bus bridges.

All fields are the raw values of every non-reserved register part in the configuration space.

The format of the header in PCI configuration space is the following.

+----------+---------+-------------+--------------+----------------+----------------+
| Register | Offset  |  Bits 31-24 | Bits 23-16   | Bits 15-8      | Bits 7-0       |
+----------+---------+-------------+--------------+----------------+----------------+
|    0x4   |   0x10  |              CardBus Socket/ExCa base address                |
|    0x5   |   0x14  |     Secondary status       | Reserved       | Offset of caps |
|    0x6   |   0x18  | Cbus Lat tim| Subord. bus  | CardBus bus r  | PCI bus number |
|    0x7   |   0x1C  |                 Memory Base Address 0                        |
|    0x8   |   0x20  |                 Memory Limit 0                               |
|    0x9   |   0x24  |                 Memory Base Address 1                        |
|    0xA   |   0x28  |                 Memory Limit 1                               |
|    0xB   |   0x2C  |                 I/O Base Address 0                           |
|    0xC   |   0x30  |                 I/O Limit 0                                  |
|    0xD   |   0x34  |                 I/O Base Address 1                           |
|    0xE   |   0x38  |                 I/O Limit 1                                  |
|    0xF   |   0x3C  |       Bridge Control       | Interrupt PIN  | Interrupt Line |
|   0x10   |   0x40  |    Subsystem Vendor ID     |       Subsystem Device ID       |
|   0x11   |   0x44  |        16-bit PC Card legacy mode base address               |
+----------+---------+-------------+--------------+----------------+----------------+

Fields§

§cardbus_socket_exca_base_addr: u32§secondary_status: u16§offset_of_capabilities_list: u8§cardbus_latency_timer: u8§subordinate_bus_number: u8§cardbus_bus_number: u8§pci_bus_number: u8§memory_base_addr_0: u32§memory_limit_0: u32§memory_base_addr_1: u32§memory_limit_1: u32§io_base_addr_0: u32§io_limit_0: u32§io_base_addr_1: u32§io_limit_1: u32§bridge_control: u16§interrupt_pin: u8§interrupt_line: u8§subsystem_vendor_id: u16§subsystem_device_id: u16§pc_card_16bit_legacy_mode_base_addr: u32

Implementations§

Source§

impl PciToCardbusBridgeHeader

Source

pub const LENGTH: usize = 72usize

Source

pub const ID: u8 = 2u8

Trait Implementations§

Source§

impl Clone for PciToCardbusBridgeHeader

Source§

fn clone(&self) -> PciToCardbusBridgeHeader

Returns a duplicate 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 PciToCardbusBridgeHeader

Source§

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

Formats the value using the given formatter. Read more

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.