MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / address

Method address

pci/src/device.rs:30–35  ·  view source on GitHub ↗

Return PCI bus address

(&self)

Source from the content-addressed store, hash-verified

28
29 /// Return PCI bus address
30 pub fn address(&self) -> u32 {
31 0x8000_0000
32 | ((self.bus as u32) << 16)
33 | ((self.slot as u32) << 11)
34 | ((self.function as u32) << 8)
35 }
36
37 pub fn read_register(&self, register: u8) -> u32 {
38 let addr = self.address()

Callers 4

mainFunction · 0.80
read_registerMethod · 0.80
write_registerMethod · 0.80
new_user_threadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected