Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
8f28afac
Commit
8f28afac
authored
Jan 17, 2006
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
parents
c6b3feaf
4f3f2f6f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
26 deletions
+23
-26
arch/sparc/mm/iommu.c
arch/sparc/mm/iommu.c
+6
-7
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+11
-11
drivers/video/sbuslib.c
drivers/video/sbuslib.c
+3
-6
drivers/video/sbuslib.h
drivers/video/sbuslib.h
+1
-1
sound/sparc/cs4231.c
sound/sparc/cs4231.c
+2
-1
No files found.
arch/sparc/mm/iommu.c
View file @
8f28afac
...
...
@@ -295,8 +295,7 @@ static void iommu_release_one(u32 busa, int npages, struct sbus_bus *sbus)
int
ioptex
;
int
i
;
if
(
busa
<
iommu
->
start
)
BUG
();
BUG_ON
(
busa
<
iommu
->
start
);
ioptex
=
(
busa
-
iommu
->
start
)
>>
PAGE_SHIFT
;
for
(
i
=
0
;
i
<
npages
;
i
++
)
{
iopte_val
(
iommu
->
page_table
[
ioptex
+
i
])
=
0
;
...
...
@@ -340,9 +339,9 @@ static int iommu_map_dma_area(dma_addr_t *pba, unsigned long va,
iopte_t
*
first
;
int
ioptex
;
if
((
va
&
~
PAGE_MASK
)
!=
0
)
BUG
(
);
if
((
addr
&
~
PAGE_MASK
)
!=
0
)
BUG
(
);
if
((
len
&
~
PAGE_MASK
)
!=
0
)
BUG
(
);
BUG_ON
((
va
&
~
PAGE_MASK
)
!=
0
);
BUG_ON
((
addr
&
~
PAGE_MASK
)
!=
0
);
BUG_ON
((
len
&
~
PAGE_MASK
)
!=
0
);
/* page color = physical address */
ioptex
=
bit_map_string_get
(
&
iommu
->
usemap
,
len
>>
PAGE_SHIFT
,
...
...
@@ -405,8 +404,8 @@ static void iommu_unmap_dma_area(unsigned long busa, int len)
unsigned
long
end
;
int
ioptex
=
(
busa
-
iommu
->
start
)
>>
PAGE_SHIFT
;
if
((
busa
&
~
PAGE_MASK
)
!=
0
)
BUG
(
);
if
((
len
&
~
PAGE_MASK
)
!=
0
)
BUG
(
);
BUG_ON
((
busa
&
~
PAGE_MASK
)
!=
0
);
BUG_ON
((
len
&
~
PAGE_MASK
)
!=
0
);
iopte
+=
ioptex
;
end
=
busa
+
len
;
...
...
arch/sparc64/kernel/time.c
View file @
8f28afac
...
...
@@ -280,9 +280,9 @@ static struct sparc64_tick_ops stick_operations __read_mostly = {
* Since STICK is constantly updating, we have to access it carefully.
*
* The sequence we use to read is:
* 1) read
low
* 2) read
high
* 3) read
low again, if it rolled over increment high by 1
* 1) read
high
* 2) read
low
* 3) read
high again, if it rolled re-read both low and high again.
*
* Writing STICK safely is also tricky:
* 1) write low to zero
...
...
@@ -295,18 +295,18 @@ static struct sparc64_tick_ops stick_operations __read_mostly = {
static
unsigned
long
__hbird_read_stick
(
void
)
{
unsigned
long
ret
,
tmp1
,
tmp2
,
tmp3
;
unsigned
long
addr
=
HBIRD_STICK_ADDR
;
unsigned
long
addr
=
HBIRD_STICK_ADDR
+
8
;
__asm__
__volatile__
(
"ldxa [%1] %5, %2
\n\t
"
"add %1, 0x8, %1
\n\t
"
"ldxa [%1] %5, %3
\n\t
"
__asm__
__volatile__
(
"ldxa [%1] %5, %2
\n
"
"1:
\n\t
"
"sub %1, 0x8, %1
\n\t
"
"ldxa [%1] %5, %3
\n\t
"
"add %1, 0x8, %1
\n\t
"
"ldxa [%1] %5, %4
\n\t
"
"cmp %4, %2
\n\t
"
"blu,a,pn %%xcc, 1f
\n\t
"
" add %3, 1, %3
\n
"
"1:
\n\t
"
"sllx %3, 32, %3
\n\t
"
"bne,a,pn %%xcc, 1b
\n\t
"
" mov %4, %2
\n\t
"
"sllx %4, 32, %4
\n\t
"
"or %3, %4, %0
\n\t
"
:
"=&r"
(
ret
),
"=&r"
(
addr
),
"=&r"
(
tmp1
),
"=&r"
(
tmp2
),
"=&r"
(
tmp3
)
...
...
drivers/video/sbuslib.c
View file @
8f28afac
...
...
@@ -199,8 +199,7 @@ struct fbcmap32 {
#define FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32)
#define FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32)
static
int
fbiogetputcmap
(
struct
file
*
file
,
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
)
static
int
fbiogetputcmap
(
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
struct
fbcmap32
__user
*
argp
=
(
void
__user
*
)
arg
;
struct
fbcmap
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
...
...
@@ -236,8 +235,7 @@ struct fbcursor32 {
#define FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32)
#define FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32)
static
int
fbiogscursor
(
struct
file
*
file
,
struct
fb_info
*
info
,
unsigned
long
arg
)
static
int
fbiogscursor
(
struct
fb_info
*
info
,
unsigned
long
arg
)
{
struct
fbcursor
__user
*
p
=
compat_alloc_user_space
(
sizeof
(
*
p
));
struct
fbcursor32
__user
*
argp
=
(
void
__user
*
)
arg
;
...
...
@@ -263,8 +261,7 @@ static int fbiogscursor(struct file *file, struct fb_info *info,
return
info
->
fbops
->
fb_ioctl
(
info
,
FBIOSCURSOR
,
(
unsigned
long
)
p
);
}
long
sbusfb_compat_ioctl
(
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
)
int
sbusfb_compat_ioctl
(
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
)
{
switch
(
cmd
)
{
case
FBIOGTYPE
:
...
...
drivers/video/sbuslib.h
View file @
8f28afac
...
...
@@ -20,7 +20,7 @@ extern int sbusfb_mmap_helper(struct sbus_mmap_map *map,
int
sbusfb_ioctl_helper
(
unsigned
long
cmd
,
unsigned
long
arg
,
struct
fb_info
*
info
,
int
type
,
int
fb_depth
,
unsigned
long
fb_size
);
long
sbusfb_compat_ioctl
(
struct
fb_info
*
info
,
unsigned
int
cmd
,
int
sbusfb_compat_ioctl
(
struct
fb_info
*
info
,
unsigned
int
cmd
,
unsigned
long
arg
);
#endif
/* _SBUSLIB_H */
sound/sparc/cs4231.c
View file @
8f28afac
...
...
@@ -69,13 +69,14 @@ struct sbus_dma_info {
};
#endif
struct
snd_cs4231
;
struct
cs4231_dma_control
{
void
(
*
prepare
)(
struct
cs4231_dma_control
*
dma_cont
,
int
dir
);
void
(
*
enable
)(
struct
cs4231_dma_control
*
dma_cont
,
int
on
);
int
(
*
request
)(
struct
cs4231_dma_control
*
dma_cont
,
dma_addr_t
bus_addr
,
size_t
len
);
unsigned
int
(
*
address
)(
struct
cs4231_dma_control
*
dma_cont
);
void
(
*
reset
)(
struct
snd_cs4231
*
chip
);
void
(
*
preallocate
)(
struct
snd_cs4231
*
chip
,
struct
snd_
snd_
pcm
*
pcm
);
void
(
*
preallocate
)(
struct
snd_cs4231
*
chip
,
struct
snd_pcm
*
pcm
);
#ifdef EBUS_SUPPORT
struct
ebus_dma_info
ebus_info
;
#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