Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
75aeecfa
Commit
75aeecfa
authored
Oct 03, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: merge some changes from the ameslab tree
parent
0a1ab4c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
arch/ppc64/kernel/pci_dma.c
arch/ppc64/kernel/pci_dma.c
+4
-4
include/asm-ppc64/cputable.h
include/asm-ppc64/cputable.h
+1
-1
include/asm-ppc64/memory.h
include/asm-ppc64/memory.h
+1
-1
No files found.
arch/ppc64/kernel/pci_dma.c
View file @
75aeecfa
...
@@ -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.
*/
*/
st
atic
st
ruct
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
;
...
...
include/asm-ppc64/cputable.h
View file @
75aeecfa
...
@@ -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 mec
h
anism.
*/
*/
struct
cpu_spec
;
struct
cpu_spec
;
...
...
include/asm-ppc64/memory.h
View file @
75aeecfa
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment