(&self, register: u8, value: u32)
| 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 |