Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175813
b: refs/heads/master
c: 128b4a0
h: refs/heads/master
i:
  175811: 0d8665f
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Dec 8, 2009
1 parent 819527f commit 0f8659a
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 7fb19ea054a0cdf1a4d935e68d51bde4d3725414
refs/heads/master: 128b4a0ef74e8d48033513e41a413087ba30e36b
1 change: 1 addition & 0 deletions trunk/arch/powerpc/include/asm/macio.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct macio_dev
struct macio_bus *bus; /* macio bus this device is on */
struct macio_dev *media_bay; /* Device is part of a media bay */
struct of_device ofdev;
struct device_dma_parameters dma_parms; /* ide needs that */
int n_resources;
struct resource resource[MACIO_DEV_COUNT_RESOURCES];
int n_interrupts;
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/macintosh/macio_asic.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ static struct macio_dev * macio_add_one_device(struct macio_chip *chip,
dev->ofdev.dev.parent = parent;
dev->ofdev.dev.bus = &macio_bus_type;
dev->ofdev.dev.release = macio_release_dev;
dev->ofdev.dev.dma_parms = &dev->dma_parms;

/* Standard DMA paremeters */
dma_set_max_seg_size(&dev->ofdev.dev, 65536);
dma_set_seg_boundary(&dev->ofdev.dev, 0xffffffff);

#ifdef CONFIG_PCI
/* Set the DMA ops to the ones from the PCI device, this could be
Expand Down

0 comments on commit 0f8659a

Please sign in to comment.