rust-osdev / pci_types Goto Github PK
View Code? Open in Web Editor NEWUseful types for dealing with PCI
License: Apache License 2.0
Useful types for dealing with PCI
License: Apache License 2.0
The PciHeader only contains a PciAddress, yet currently it hides it from the user. As such if someone need access to both a PciHeader for accessing the config space and needs to know the PciAddress, either both need to be passed separately, or every function that needs both needs to recreate the PciHeader and in the case of EndpointHeader unwrap the result of EndpointHeader::from
again.
The only way I know of to implement that method is to read the vendor id from the config id and check that it isn't 0xffff
, which this crate can do itself if it needs to know if a PCI function exists.
Redox OS needs this.
The need for this was brought up by #4 - every user is probably going to need to enumerate the bus at some point, and so we can probably provide a nicer interface to this than them having to do it manually.
I'm envisaging a sort of Iterator
-like interface, or maybe a visitor-like thing that allows you to e.g. visit every device, or every function, etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.