Lines Matching refs:u16
152 pub const PORT_PCI_CONFIG_ADDRESS: u16 = 0xcf8;
153 pub const PORT_PCI_CONFIG_DATA: u16 = 0xcfc;
155 pub type SegmentGroupNumber = u16; //理论上最多支持65535个Segment_Group
159 pub struct Status: u16 {
188 pub struct Command: u16 {
373 fn irq_vector_mut(&mut self) -> Option<&mut Vec<u16>>; in irq_vector_mut() argument
381 pub vendor_id: u16, // 供应商ID 0xffff是一个无效值,在读取访问不存在的设备的配置空间寄存器时返回
382 pub device_id: u16, // 设备ID,标志特定设备
383 pub command: u16, // 提供对设备生成和响应pci周期的能力的控制 向该寄存器写入0时,设备与pci总线断开除配置空间访问以外的所有连接
384 pub status: u16, // 用于记录pci总线相关时间的状态信息寄存器
406 pub irq_vector: Vec<u16>,
409 pub subsystem_vendor_id: u16,
410 pub subsystem_id: u16,
414 pub reserved1: u16,
466 fn irq_vector_mut(&mut self) -> Option<&mut Vec<u16>> { in irq_vector_mut() argument
478 pub irq_vector: Vec<u16>,
487 pub secondary_status: u16,
488 pub memory_base: u16,
489 pub memory_limit: u16,
490 pub prefetchable_memory_base: u16,
491 pub prefetchable_memory_limit: u16,
494 pub io_base_upper_16_bits: u16,
495 pub io_limit_upper_16_bits: u16,
498 pub reserved1: u16,
502 pub bridge_control: u16,
530 fn irq_vector_mut(&mut self) -> Option<&mut Vec<u16>> { in irq_vector_mut() argument
541 pub secondary_status: u16,
556 pub bridge_control: u16,
557 pub subsystem_device_id: u16,
558 pub subsystem_vendor_id: u16,
589 fn irq_vector_mut(&mut self) -> Option<&mut Vec<u16>> { in irq_vector_mut() argument
666 fn cam_offset(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in cam_offset()
680 pub fn read_config(&self, bus_device_function: BusDeviceFunction, register_offset: u16) -> u32 { in read_config()
695 register_offset: u16, in write_config() argument
724 let status: Status = Status::from_bits_truncate((result >> 16) as u16); in capabilities_offset()
743 let vendor_id = result as u16; in pci_read_header()
744 let device_id = (result >> 16) as u16; in pci_read_header()
747 let command = result as u16; in pci_read_header()
748 let status = (result >> 16) as u16; in pci_read_header()
825 let subsystem_vendor_id = result as u16; in pci_read_general_device_header()
826 let subsystem_id = (result >> 16) as u16; in pci_read_general_device_header()
833 let reserved1 = (result >> 16) as u16; in pci_read_general_device_header()
884 let secondary_status = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
887 let memory_base = result as u16; in pci_read_pci_to_pci_bridge_header()
888 let memory_limit = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
891 let prefetchable_memory_base = result as u16; in pci_read_pci_to_pci_bridge_header()
892 let prefetchable_memory_limit = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
898 let io_base_upper_16_bits = result as u16; in pci_read_pci_to_pci_bridge_header()
899 let io_limit_upper_16_bits = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
904 let reserved1 = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
911 let bridge_control = (result >> 16) as u16; in pci_read_pci_to_pci_bridge_header()
957 let secondary_status = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
977 let bridge_control = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
980 let subsystem_device_id = result as u16; in pci_read_pci_to_cardbus_bridge_header()
981 let subsystem_vendor_id = (result >> 16) as u16; in pci_read_pci_to_cardbus_bridge_header()
1493 pub private_header: u16,
1513 let private_header = (capability_header >> 16) as u16; in next()
1537 pub offset: u16,
1539 pub id: u16,
1550 pub next_capability_offset: Option<u16>,
1559 let id = capability_header as u16; in next()
1560 let next_offset = (capability_header >> 20) as u16; in next()