Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208549
b: refs/heads/master
c: 3b9c6c1
h: refs/heads/master
i:
  208547: 4496d08
v: v3
  • Loading branch information
FUJITA Tomonori authored and Linus Torvalds committed Aug 11, 2010
1 parent 3f72e6d commit bcfd7bb
Show file tree
Hide file tree
Showing 23 changed files with 1 addition and 69 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: d80e0d96a328cc864a1cb359f545a6ed0c61812d
refs/heads/master: 3b9c6c11f519718d618f5d7c9508daf78b207f6f
6 changes: 0 additions & 6 deletions trunk/Documentation/DMA-API.txt
Original file line number Diff line number Diff line change
Expand Up @@ -455,12 +455,6 @@ Free memory allocated by the nonconsistent API. All parameters must
be identical to those passed in (and returned by
dma_alloc_noncoherent()).

int
dma_is_consistent(struct device *dev, dma_addr_t dma_handle)

Returns true if the device dev is performing consistent DMA on the memory
area pointed to by the dma_handle.

int
dma_get_cache_alignment(void)

Expand Down
1 change: 0 additions & 1 deletion trunk/arch/alpha/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ static inline int dma_set_mask(struct device *dev, u64 mask)

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)

#define dma_cache_sync(dev, va, size, dir) ((void)0)

Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ static inline int dma_set_mask(struct device *dev, u64 dma_mask)
return 0;
}

static inline int dma_is_consistent(struct device *dev, dma_addr_t handle)
{
return !!arch_is_coherent();
}

/*
* DMA errors are defined by all-bits-set in the DMA address.
*/
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/avr32/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,4 @@ dma_sync_sg_for_device(struct device *dev, struct scatterlist *sg,
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)

static inline int dma_is_consistent(struct device *dev, dma_addr_t dma_addr)
{
return 1;
}

#endif /* __ASM_AVR32_DMA_MAPPING_H */
1 change: 0 additions & 1 deletion trunk/arch/blackfin/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_supported(d, m) (1)
#define dma_is_consistent(d, h) (1)

static inline int
dma_set_mask(struct device *dev, u64 dma_mask)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/cris/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ dma_set_mask(struct device *dev, u64 mask)
return 0;
}

#define dma_is_consistent(d, h) (1)

static inline void
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/frv/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ int dma_set_mask(struct device *dev, u64 mask)
return 0;
}

#define dma_is_consistent(d, h) (1)

static inline
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/ia64/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,4 @@ dma_cache_sync (struct device *dev, void *vaddr, size_t size,
mb();
}

#define dma_is_consistent(d, h) (1) /* all we do is coherent memory... */

#endif /* _ASM_IA64_DMA_MAPPING_H */
5 changes: 0 additions & 5 deletions trunk/arch/m68k/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ static inline int dma_set_mask(struct device *dev, u64 mask)
return 0;
}

static inline int dma_is_consistent(struct device *dev, dma_addr_t dma_addr)
{
return 0;
}

extern void *dma_alloc_coherent(struct device *, size_t,
dma_addr_t *, gfp_t);
extern void dma_free_coherent(struct device *, size_t,
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/microblaze/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)

static inline void *dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t *dma_handle, gfp_t flag)
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/mips/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ dma_set_mask(struct device *dev, u64 mask)
return 0;
}

extern int dma_is_consistent(struct device *dev, dma_addr_t dma_addr);

extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction);

Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/mips/mm/dma-default.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,6 @@ int dma_supported(struct device *dev, u64 mask)

EXPORT_SYMBOL(dma_supported);

int dma_is_consistent(struct device *dev, dma_addr_t dma_addr)
{
return plat_device_is_coherent(dev);
}

EXPORT_SYMBOL(dma_is_consistent);

void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
{
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/mn10300/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ int dma_set_mask(struct device *dev, u64 mask)
return 0;
}

#define dma_is_consistent(d) (1)

static inline
void dma_cache_sync(void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/parisc/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,6 @@ dma_set_mask(struct device *dev, u64 mask)
return 0;
}

static inline int
dma_is_consistent(struct device *dev, dma_addr_t dma_addr)
{
return (hppa_dma_ops->dma_sync_single_for_cpu == NULL);
}

static inline void
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/powerpc/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr)

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#ifdef CONFIG_NOT_COHERENT_CACHE
#define dma_is_consistent(d, h) (0)
#else
#define dma_is_consistent(d, h) (1)
#endif

static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/sh/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)

#ifdef CONFIG_DMA_COHERENT
#define dma_is_consistent(d, h) (1)
#else
#define dma_is_consistent(d, h) (0)
#endif

static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
struct dma_map_ops *ops = get_dma_ops(dev);
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/sparc/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ extern int dma_supported(struct device *dev, u64 mask);

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)

extern struct dma_map_ops *dma_ops, pci32_dma_ops;
extern struct bus_type pci_bus_type;
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/tile/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,4 @@ dma_set_mask(struct device *dev, u64 mask)
return 0;
}

#define dma_is_consistent(d, h) (1)

#endif /* _ASM_TILE_DMA_MAPPING_H */
1 change: 0 additions & 1 deletion trunk/arch/um/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ dma_sync_sg_for_cpu(struct device *dev, struct scatterlist *sg, int nelems,

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)

static inline int
dma_get_cache_alignment(void)
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)

#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
#define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h)
#define dma_is_consistent(d, h) (1)

extern int dma_supported(struct device *hwdev, u64 mask);
extern int dma_set_mask(struct device *dev, u64 mask);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/xtensa/include/asm/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ dma_set_mask(struct device *dev, u64 mask)
return 0;
}

#define dma_is_consistent(d, h) (1)

static inline void
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction)
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/asm-generic/dma-mapping-broken.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ dma_set_mask(struct device *dev, u64 mask);
extern int
dma_get_cache_alignment(void);

extern int
dma_is_consistent(struct device *dev, dma_addr_t dma_handle);

extern void
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction);
Expand Down

0 comments on commit bcfd7bb

Please sign in to comment.