forked from KolibriOS/kolibrios
ddk: fixed bug with emty list in wake_up()
git-svn-id: svn://kolibrios.org@6125 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1166,11 +1166,19 @@ int __must_check pci_bus_alloc_resource(struct pci_bus *bus,
|
||||
|
||||
int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr);
|
||||
|
||||
static inline void
|
||||
_pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region,
|
||||
struct resource *res)
|
||||
{
|
||||
region->start = res->start;
|
||||
region->end = res->end;
|
||||
}
|
||||
|
||||
static inline pci_bus_addr_t pci_bus_address(struct pci_dev *pdev, int bar)
|
||||
{
|
||||
struct pci_bus_region region;
|
||||
|
||||
pcibios_resource_to_bus(pdev->bus, ®ion, &pdev->resource[bar]);
|
||||
_pcibios_resource_to_bus(pdev, ®ion, &pdev->resource[bar]);
|
||||
return region.start;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user