mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
pci: Correct a few comments and nits
Two comments are missing a parameter and there is an extra blank line. Also two of the region access macros are misnamed. Correct these problems. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
319dba1f4d
commit
4974a6ff04
2 changed files with 4 additions and 3 deletions
|
@ -289,7 +289,6 @@ int dm_pci_write_config(struct udevice *dev, int offset, unsigned long value,
|
||||||
size);
|
size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int pci_write_config32(pci_dev_t bdf, int offset, u32 value)
|
int pci_write_config32(pci_dev_t bdf, int offset, u32 value)
|
||||||
{
|
{
|
||||||
return pci_write_config(bdf, offset, value, PCI_SIZE_32);
|
return pci_write_config(bdf, offset, value, PCI_SIZE_32);
|
||||||
|
|
|
@ -1007,6 +1007,7 @@ int dm_pci_hose_probe_bus(struct udevice *bus);
|
||||||
*
|
*
|
||||||
* @bus: Bus to read from
|
* @bus: Bus to read from
|
||||||
* @bdf: PCI device address: bus, device and function -see PCI_BDF()
|
* @bdf: PCI device address: bus, device and function -see PCI_BDF()
|
||||||
|
* @offset: Register offset to read
|
||||||
* @valuep: Place to put the returned value
|
* @valuep: Place to put the returned value
|
||||||
* @size: Access size
|
* @size: Access size
|
||||||
* @return 0 if OK, -ve on error
|
* @return 0 if OK, -ve on error
|
||||||
|
@ -1019,6 +1020,7 @@ int pci_bus_read_config(struct udevice *bus, pci_dev_t bdf, int offset,
|
||||||
*
|
*
|
||||||
* @bus: Bus to write from
|
* @bus: Bus to write from
|
||||||
* @bdf: PCI device address: bus, device and function -see PCI_BDF()
|
* @bdf: PCI device address: bus, device and function -see PCI_BDF()
|
||||||
|
* @offset: Register offset to write
|
||||||
* @value: Value to write
|
* @value: Value to write
|
||||||
* @size: Access size
|
* @size: Access size
|
||||||
* @return 0 if OK, -ve on error
|
* @return 0 if OK, -ve on error
|
||||||
|
@ -1260,9 +1262,9 @@ void *dm_pci_map_bar(struct udevice *dev, int bar, int flags);
|
||||||
#define dm_pci_mem_to_virt(dev, addr, len, map_flags) \
|
#define dm_pci_mem_to_virt(dev, addr, len, map_flags) \
|
||||||
dm_pci_bus_to_virt((dev), (addr), PCI_REGION_MEM, (len), (map_flags))
|
dm_pci_bus_to_virt((dev), (addr), PCI_REGION_MEM, (len), (map_flags))
|
||||||
#define dm_pci_virt_to_io(dev, addr) \
|
#define dm_pci_virt_to_io(dev, addr) \
|
||||||
dm_dm_pci_virt_to_bus((dev), (addr), PCI_REGION_IO)
|
dm_pci_virt_to_bus((dev), (addr), PCI_REGION_IO)
|
||||||
#define dm_pci_io_to_virt(dev, addr, len, map_flags) \
|
#define dm_pci_io_to_virt(dev, addr, len, map_flags) \
|
||||||
dm_dm_pci_bus_to_virt((dev), (addr), PCI_REGION_IO, (len), (map_flags))
|
dm_pci_bus_to_virt((dev), (addr), PCI_REGION_IO, (len), (map_flags))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dm_pci_find_device() - find a device by vendor/device ID
|
* dm_pci_find_device() - find a device by vendor/device ID
|
||||||
|
|
Loading…
Reference in a new issue