Commit 75aeecfa authored by Anton Blanchard's avatar Anton Blanchard

ppc64: merge some changes from the ameslab tree

parent 0a1ab4c6
...@@ -98,7 +98,7 @@ void free_tce_range_nolock(struct TceTable *, ...@@ -98,7 +98,7 @@ void free_tce_range_nolock(struct TceTable *,
unsigned order ); unsigned order );
/* allocates a range of tces and sets them to the pages */ /* allocates a range of tces and sets them to the pages */
static inline dma_addr_t get_tces( struct TceTable *, inline dma_addr_t get_tces( struct TceTable *,
unsigned order, unsigned order,
void *page, void *page,
unsigned numPages, unsigned numPages,
...@@ -210,7 +210,7 @@ static void tce_build_pSeries(struct TceTable *tbl, long tcenum, ...@@ -210,7 +210,7 @@ static void tce_build_pSeries(struct TceTable *tbl, long tcenum,
* Build a TceTable structure. This contains a multi-level bit map which * Build a TceTable structure. This contains a multi-level bit map which
* is used to manage allocation of the tce space. * is used to manage allocation of the tce space.
*/ */
static struct TceTable *build_tce_table( struct TceTable * tbl ) struct TceTable *build_tce_table( struct TceTable * tbl )
{ {
unsigned long bits, bytes, totalBytes; unsigned long bits, bytes, totalBytes;
unsigned long numBits[NUM_TCE_LEVELS], numBytes[NUM_TCE_LEVELS]; unsigned long numBits[NUM_TCE_LEVELS], numBytes[NUM_TCE_LEVELS];
...@@ -518,7 +518,7 @@ static long test_tce_range( struct TceTable *tbl, long tcenum, unsigned order ) ...@@ -518,7 +518,7 @@ static long test_tce_range( struct TceTable *tbl, long tcenum, unsigned order )
return retval; return retval;
} }
static inline dma_addr_t get_tces( struct TceTable *tbl, unsigned order, void *page, unsigned numPages, int direction ) inline dma_addr_t get_tces( struct TceTable *tbl, unsigned order, void *page, unsigned numPages, int direction )
{ {
long tcenum; long tcenum;
unsigned long uaddr; unsigned long uaddr;
...@@ -581,7 +581,7 @@ static void tce_free_one_pSeries( struct TceTable *tbl, long tcenum ) ...@@ -581,7 +581,7 @@ static void tce_free_one_pSeries( struct TceTable *tbl, long tcenum )
} }
#endif #endif
static void tce_free(struct TceTable *tbl, dma_addr_t dma_addr, void tce_free(struct TceTable *tbl, dma_addr_t dma_addr,
unsigned order, unsigned num_pages) unsigned order, unsigned num_pages)
{ {
long tcenum, total_tces, free_tce; long tcenum, total_tces, free_tce;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
/* This structure can grow, it's real size is used by head.S code /* This structure can grow, it's real size is used by head.S code
* via the mkdefs mecanism. * via the mkdefs mechanism.
*/ */
struct cpu_spec; struct cpu_spec;
......
...@@ -58,7 +58,7 @@ static inline void isync(void) ...@@ -58,7 +58,7 @@ static inline void isync(void)
#define HMT_LOW #define HMT_LOW
#define HMT_MEDIUM #define HMT_MEDIUM
#define HMT_LOW #define HMT_HIGH
#endif #endif
#endif #endif
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