Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11224
b: refs/heads/master
c: 870d3d9
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 4d35d90 commit 18727cc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61ed242d7e9d96dfb2e2f37058f5c822e5c6ca55
refs/heads/master: 870d3d98eb343fa0f079773653f6dbdd17f410ed
31 changes: 16 additions & 15 deletions trunk/include/asm-mips/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,22 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,

extern void pcibios_resource_to_bus(struct pci_dev *dev,
struct pci_bus_region *region, struct resource *res);
extern void pcibios_bus_to_resource(struct pci_dev *dev,
struct resource *res, struct pci_bus_region *region);

extern void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res,
struct pci_bus_region *region);

static inline struct resource *
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
{
struct resource *root = NULL;

if (res->flags & IORESOURCE_IO)
root = &ioport_resource;
if (res->flags & IORESOURCE_MEM)
root = &iomem_resource;

return root;
}

#ifdef CONFIG_PCI_DOMAINS

Expand All @@ -169,17 +183,4 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev)
/* Do platform specific device initialization at pci_enable_device() time */
extern int pcibios_plat_dev_init(struct pci_dev *dev);

static inline struct resource *
pcibios_select_root(struct pci_dev *pdev, struct resource *res)
{
struct resource *root = NULL;

if (res->flags & IORESOURCE_IO)
root = &ioport_resource;
if (res->flags & IORESOURCE_MEM)
root = &iomem_resource;

return root;
}

#endif /* _ASM_PCI_H */

0 comments on commit 18727cc

Please sign in to comment.