1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! # IDS_RS: A no_std PCI Device Identification Library
//!
//! This crate provides comprehensive PCI device identification capabilities for operating systems
//! and low-level system software. It parses the PCI IDs database at compile time, enabling
//! efficient runtime lookups without heap allocation or file I/O.
//!
//! ## Features
//!
//! - **no_std compatible**: Perfect for kernel-space and embedded use
//! - **Compile-time parsing**: Database is parsed during build, not runtime
//! - **Comprehensive coverage**: Supports vendors, devices, subsystems, and device classes
//! - **Zero-cost abstractions**: Efficient static data structures
//! - **Type-safe queries**: Strongly typed IDs prevent common mistakes
//!
//! ## Quick Start
//!
//! ```rust
//! use ids_rs::{PciDatabase, VendorId, DeviceId};
//!
//! // Get the compiled database
//! let db = PciDatabase::get();
//!
//! // Look up a vendor
//! let vendor_id = VendorId::new(0x8086); // Intel
//! if let Some(vendor) = db.find_vendor(vendor_id) {
//! println!("Vendor: {}", vendor.name());
//! }
//!
//! // Look up a specific device
//! let device_id = DeviceId::new(0x1234);
//! if let Some(device) = db.find_device(vendor_id, device_id) {
//! println!("Device: {}", device.name());
//! }
//! ```
extern crate alloc;
pub use *;
pub use *;
pub use PciDatabase;
pub use *;
// Re-export commonly used types
pub use Vendor;
pub use ;
pub use ;