Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24647
b: refs/heads/master
c: b239cbe
h: refs/heads/master
i:
  24645: f190f4a
  24643: 4c17eab
  24639: 73d51d3
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Mar 28, 2006
1 parent ea0206d commit 7ff8b6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: 69ed3324983bb937d78a8579ed91b90242ee5aaa
refs/heads/master: b239cbe957ae730caa8af2f169a4d35b8c1bb299
1 change: 1 addition & 0 deletions trunk/arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ int global_phb_number; /* Global phb counter */

/* Cached ISA bridge dev. */
struct pci_dev *ppc64_isabridge_dev = NULL;
EXPORT_SYMBOL_GPL(ppc64_isabridge_dev);

static void fixup_broken_pcnet32(struct pci_dev* dev)
{
Expand Down
5 changes: 3 additions & 2 deletions trunk/include/asm-powerpc/floppy.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#ifdef CONFIG_PCI

#include <linux/pci.h>
#include <asm/ppc-pci.h> /* for ppc64_isabridge_dev */

#define fd_dma_setup(addr,size,mode,io) powerpc_fd_dma_setup(addr,size,mode,io)

Expand All @@ -52,12 +53,12 @@ static __inline__ int powerpc_fd_dma_setup(char *addr, unsigned long size,
if (bus_addr
&& (addr != prev_addr || size != prev_size || dir != prev_dir)) {
/* different from last time -- unmap prev */
pci_unmap_single(NULL, bus_addr, prev_size, prev_dir);
pci_unmap_single(ppc64_isabridge_dev, bus_addr, prev_size, prev_dir);
bus_addr = 0;
}

if (!bus_addr) /* need to map it */
bus_addr = pci_map_single(NULL, addr, size, dir);
bus_addr = pci_map_single(ppc64_isabridge_dev, addr, size, dir);

/* remember this one as prev */
prev_addr = addr;
Expand Down

0 comments on commit 7ff8b6a

Please sign in to comment.