Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9141
b: refs/heads/master
c: d79e743
h: refs/heads/master
i:
  9139: 42e8df1
v: v3
  • Loading branch information
Paul Mackerras authored and Linus Torvalds committed Sep 21, 2005
1 parent 1ed0926 commit 3eed28d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 2fe9f798ba3cf7c939e638b78f46975e79039978
refs/heads/master: d79e743e9fcf03f521300a970eb1ab69641910ba
9 changes: 6 additions & 3 deletions trunk/arch/ppc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,14 @@ static unsigned int pci_parse_of_flags(u32 addr0)
unsigned int flags = 0;

if (addr0 & 0x02000000) {
flags |= IORESOURCE_MEM;
flags = IORESOURCE_MEM | PCI_BASE_ADDRESS_SPACE_MEMORY;
flags |= (addr0 >> 22) & PCI_BASE_ADDRESS_MEM_TYPE_64;
flags |= (addr0 >> 28) & PCI_BASE_ADDRESS_MEM_TYPE_1M;
if (addr0 & 0x40000000)
flags |= IORESOURCE_PREFETCH;
flags |= IORESOURCE_PREFETCH
| PCI_BASE_ADDRESS_MEM_PREFETCH;
} else if (addr0 & 0x01000000)
flags |= IORESOURCE_IO;
flags = IORESOURCE_IO | PCI_BASE_ADDRESS_SPACE_IO;
return flags;
}

Expand Down

0 comments on commit 3eed28d

Please sign in to comment.