mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-25 04:14:06 +00:00
devices: Remove duplicated doc comments in impl block
These duplicate the doc comments found in `trait PciDevice`. I am removing them because a sensible reader would already assume that they have fallen out of sync with the doc comments in the trait, and thus refer to the trait definition anyway. TEST=none Change-Id: Id86936a6f2a1b6c78a000b107bb4fc8ed78e40f9 Reviewed-on: https://chromium-review.googlesource.com/1355350 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Reviewed-by: Jingkui Wang <jkwang@google.com> Reviewed-by: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
b14ce22a1b
commit
21fb34fb93
1 changed files with 0 additions and 12 deletions
|
@ -108,33 +108,21 @@ impl<T: PciDevice + ?Sized> PciDevice for Box<T> {
|
|||
) {
|
||||
(**self).assign_irq(irq_evt, irq_resample_evt, irq_num, irq_pin)
|
||||
}
|
||||
/// Allocates the needed IO BAR space using the `allocate` function which takes a size and
|
||||
/// returns an address. Returns a Vec of (address, length) tuples.
|
||||
fn allocate_io_bars(&mut self, resources: &mut SystemAllocator) -> Result<Vec<(u64, u64)>> {
|
||||
(**self).allocate_io_bars(resources)
|
||||
}
|
||||
/// Gets a list of ioeventfds that should be registered with the running VM. The list is
|
||||
/// returned as a Vec of (eventfd, addr, datamatch) tuples.
|
||||
fn ioeventfds(&self) -> Vec<(&EventFd, u64, Datamatch)> {
|
||||
(**self).ioeventfds()
|
||||
}
|
||||
/// Gets the configuration registers of the Pci Device.
|
||||
fn config_registers(&self) -> &PciConfiguration {
|
||||
(**self).config_registers()
|
||||
}
|
||||
/// Gets the configuration registers of the Pci Device for modification.
|
||||
fn config_registers_mut(&mut self) -> &mut PciConfiguration {
|
||||
(**self).config_registers_mut()
|
||||
}
|
||||
/// Reads from a BAR region mapped in to the device.
|
||||
/// * `addr` - The guest address inside the BAR.
|
||||
/// * `data` - Filled with the data from `addr`.
|
||||
fn read_bar(&mut self, addr: u64, data: &mut [u8]) {
|
||||
(**self).read_bar(addr, data)
|
||||
}
|
||||
/// Writes to a BAR region mapped in to the device.
|
||||
/// * `addr` - The guest address inside the BAR.
|
||||
/// * `data` - The data to write.
|
||||
fn write_bar(&mut self, addr: u64, data: &[u8]) {
|
||||
(**self).write_bar(addr, data)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue