Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63031
b: refs/heads/master
c: 2052d6d
h: refs/heads/master
i:
  63029: bd9c584
  63027: 728ea6d
  63023: 3eee81a
v: v3
  • Loading branch information
Kumar Gala committed Jul 26, 2007
1 parent 4c6f458 commit 25d8e18
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7659c038d3d0a635b5aeff04aed523d7b6c1dde8
refs/heads/master: 2052d6d25decc04dc05beb99348b3d78f6e3490d
18 changes: 18 additions & 0 deletions trunk/arch/powerpc/kernel/pci_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@ LIST_HEAD(hose_list);

static int pci_bus_count;

static void
fixup_hide_host_resource_fsl(struct pci_dev* dev)
{
int i, class = dev->class >> 8;

if ((class == PCI_CLASS_PROCESSOR_POWERPC) &&
(dev->hdr_type == PCI_HEADER_TYPE_NORMAL) &&
(dev->bus->parent == NULL)) {
for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
dev->resource[i].start = 0;
dev->resource[i].end = 0;
dev->resource[i].flags = 0;
}
}
}
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_MOTOROLA, PCI_ANY_ID, fixup_hide_host_resource_fsl);
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_FREESCALE, PCI_ANY_ID, fixup_hide_host_resource_fsl);

static void
fixup_broken_pcnet32(struct pci_dev* dev)
{
Expand Down

0 comments on commit 25d8e18

Please sign in to comment.