Commit 0684fe0a authored by David S. Miller's avatar David S. Miller

Merge nuts.ninka.net:/home/davem/src/BK/BAK-sparc-2.5

into nuts.ninka.net:/home/davem/src/BK/sparc-2.5
parents e6d19c6a 87b76279
...@@ -351,7 +351,7 @@ void sbus_free_consistent(struct sbus_dev *sdev, long n, void *p, u32 ba) ...@@ -351,7 +351,7 @@ void sbus_free_consistent(struct sbus_dev *sdev, long n, void *p, u32 ba)
* CPU view of this memory may be inconsistent with * CPU view of this memory may be inconsistent with
* a device view and explicit flushing is necessary. * a device view and explicit flushing is necessary.
*/ */
u32 sbus_map_single(struct sbus_dev *sdev, void *va, long len, int direction) dma_addr_t sbus_map_single(struct sbus_dev *sdev, void *va, size_t len, int direction)
{ {
#if 0 /* This is the version that abuses consistent space */ #if 0 /* This is the version that abuses consistent space */
unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK; unsigned long len_total = (len + PAGE_SIZE-1) & PAGE_MASK;
...@@ -398,7 +398,7 @@ u32 sbus_map_single(struct sbus_dev *sdev, void *va, long len, int direction) ...@@ -398,7 +398,7 @@ u32 sbus_map_single(struct sbus_dev *sdev, void *va, long len, int direction)
#endif #endif
} }
void sbus_unmap_single(struct sbus_dev *sdev, u32 ba, long n, int direction) void sbus_unmap_single(struct sbus_dev *sdev, dma_addr_t ba, size_t n, int direction)
{ {
#if 0 /* This is the version that abuses consistent space */ #if 0 /* This is the version that abuses consistent space */
struct resource *res; struct resource *res;
...@@ -445,7 +445,7 @@ void sbus_unmap_sg(struct sbus_dev *sdev, struct scatterlist *sg, int n, int dir ...@@ -445,7 +445,7 @@ void sbus_unmap_sg(struct sbus_dev *sdev, struct scatterlist *sg, int n, int dir
/* /*
*/ */
void sbus_dma_sync_single(struct sbus_dev *sdev, u32 ba, long size, int direction) void sbus_dma_sync_single(struct sbus_dev *sdev, dma_addr_t ba, size_t size, int direction)
{ {
#if 0 #if 0
unsigned long va; unsigned long va;
......
...@@ -394,7 +394,6 @@ static pte_t *srmmu_pte_alloc_one_fast(struct mm_struct *mm, unsigned long addre ...@@ -394,7 +394,6 @@ static pte_t *srmmu_pte_alloc_one_fast(struct mm_struct *mm, unsigned long addre
static pte_t *srmmu_pte_alloc_one(struct mm_struct *mm, unsigned long address) static pte_t *srmmu_pte_alloc_one(struct mm_struct *mm, unsigned long address)
{ {
BUG();
return NULL; return NULL;
} }
......
...@@ -258,7 +258,7 @@ struct lance_private { ...@@ -258,7 +258,7 @@ struct lance_private {
void (*tx)(struct net_device *); void (*tx)(struct net_device *);
char *name; char *name;
__u32 init_block_dvma; dma_addr_t init_block_dvma;
struct net_device *dev; /* Backpointer */ struct net_device *dev; /* Backpointer */
struct lance_private *next_module; struct lance_private *next_module;
struct sbus_dev *sdev; struct sbus_dev *sdev;
...@@ -320,7 +320,7 @@ static void lance_init_ring_dvma(struct net_device *dev) ...@@ -320,7 +320,7 @@ static void lance_init_ring_dvma(struct net_device *dev)
{ {
struct lance_private *lp = (struct lance_private *) dev->priv; struct lance_private *lp = (struct lance_private *) dev->priv;
volatile struct lance_init_block *ib = lp->init_block; volatile struct lance_init_block *ib = lp->init_block;
__u32 aib = lp->init_block_dvma; dma_addr_t aib = lp->init_block_dvma;
__u32 leptr; __u32 leptr;
int i; int i;
......
...@@ -117,7 +117,6 @@ BTFIXUPDEF_CALL(void, free_pgd_fast, pgd_t *) ...@@ -117,7 +117,6 @@ BTFIXUPDEF_CALL(void, free_pgd_fast, pgd_t *)
static __inline__ pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) static __inline__ pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)
{ {
BUG();
return 0; return 0;
} }
......
...@@ -112,13 +112,13 @@ extern void sbus_free_consistent(struct sbus_dev *, long, void *, u32); ...@@ -112,13 +112,13 @@ extern void sbus_free_consistent(struct sbus_dev *, long, void *, u32);
#define SBUS_DMA_NONE 3 #define SBUS_DMA_NONE 3
/* All the rest use streaming mode mappings. */ /* All the rest use streaming mode mappings. */
extern u32 sbus_map_single(struct sbus_dev *, void *, long, int); extern dma_addr_t sbus_map_single(struct sbus_dev *, void *, size_t, int);
extern void sbus_unmap_single(struct sbus_dev *, u32, long, int); extern void sbus_unmap_single(struct sbus_dev *, dma_addr_t, size_t, int);
extern int sbus_map_sg(struct sbus_dev *, struct scatterlist *, int, int); extern int sbus_map_sg(struct sbus_dev *, struct scatterlist *, int, int);
extern void sbus_unmap_sg(struct sbus_dev *, struct scatterlist *, int, int); extern void sbus_unmap_sg(struct sbus_dev *, struct scatterlist *, int, int);
/* Finally, allow explicit synchronization of streamable mappings. */ /* Finally, allow explicit synchronization of streamable mappings. */
extern void sbus_dma_sync_single(struct sbus_dev *, u32, long, int); extern void sbus_dma_sync_single(struct sbus_dev *, dma_addr_t, size_t, int);
extern void sbus_dma_sync_sg(struct sbus_dev *, struct scatterlist *, int, int); extern void sbus_dma_sync_sg(struct sbus_dev *, struct scatterlist *, int, int);
#endif /* !(_SPARC_SBUS_H) */ #endif /* !(_SPARC_SBUS_H) */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment