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

Method write_register

pci/src/device.rs:44–49  ·  view source on GitHub ↗
(&self, register: u8, value: u32)

Source from the content-addressed store, hash-verified

42 }
43
44 pub fn write_register(&self, register: u8, value: u32) {
45 let addr = self.address()
46 | ((register as u32) << 2);
47
48 PORTS.lock().write(addr, value);
49 }
50
51 /// Return the Device which is at this PCI bus location
52 /// May return None if there is no device

Callers 1

mainFunction · 0.80

Calls 2

addressMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected