Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
04538cdb
Commit
04538cdb
authored
15 years ago
by
Anatolij Gustschin
Browse files
Options
Downloads
Patches
Plain Diff
video: bus_vcxk.c: fix style issues added by
50217dee
Signed-off-by:
Anatolij Gustschin
<
agust@denx.de
>
parent
50217dee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/video/bus_vcxk.c
+15
-11
15 additions, 11 deletions
drivers/video/bus_vcxk.c
with
15 additions
and
11 deletions
drivers/video/bus_vcxk.c
+
15
−
11
View file @
04538cdb
...
@@ -131,7 +131,7 @@ int vcxk_init(unsigned long width, unsigned long height)
...
@@ -131,7 +131,7 @@ int vcxk_init(unsigned long width, unsigned long height)
#endif
#endif
#ifdef CONFIG_SYS_VCXK_DOUBLEBUFFERED
#ifdef CONFIG_SYS_VCXK_DOUBLEBUFFERED
double_bws_word
=
(
u_short
*
)
double_bws
;
double_bws_word
=
(
u_short
*
)
double_bws
;
double_bws_long
=
(
u_long
*
)
double_bws
;
double_bws_long
=
(
u_long
*
)
double_bws
;
debug
(
"%lx %lx %lx
\n
"
,
double_bws
,
double_bws_word
,
double_bws_long
);
debug
(
"%lx %lx %lx
\n
"
,
double_bws
,
double_bws_word
,
double_bws_long
);
#endif
#endif
...
@@ -152,7 +152,8 @@ int vcxk_init(unsigned long width, unsigned long height)
...
@@ -152,7 +152,8 @@ int vcxk_init(unsigned long width, unsigned long height)
vcxk_bws_long
[
1
]
=
0x0
;
vcxk_bws_long
[
1
]
=
0x0
;
vcxk_bws_long
[
1
]
=
0x55AAAA55
;
vcxk_bws_long
[
1
]
=
0x55AAAA55
;
vcxk_bws_long
[
5
]
=
0x0
;
vcxk_bws_long
[
5
]
=
0x0
;
if
(
vcxk_bws_long
[
1
]
==
0x55AAAA55
)
VC4K16
=
1
;
if
(
vcxk_bws_long
[
1
]
==
0x55AAAA55
)
VC4K16
=
1
;
#else
#else
VC4K16
=
1
;
VC4K16
=
1
;
debug
(
"No autodetect: use vc4k
\n
"
);
debug
(
"No autodetect: use vc4k
\n
"
);
...
@@ -261,6 +262,7 @@ void vcxk_cls(void)
...
@@ -261,6 +262,7 @@ void vcxk_cls(void)
void
vcxk_clear
(
void
)
void
vcxk_clear
(
void
)
{
{
int
cnt
;
int
cnt
;
for
(
cnt
=
0
;
cnt
<
(
16384
/
4
);
cnt
++
)
{
for
(
cnt
=
0
;
cnt
<
(
16384
/
4
);
cnt
++
)
{
VCXK_BWS_LONG
(
cnt
,
0
)
VCXK_BWS_LONG
(
cnt
,
0
)
}
}
...
@@ -317,7 +319,8 @@ int vcxk_request(void)
...
@@ -317,7 +319,8 @@ int vcxk_request(void)
int
vcxk_acknowledge_wait
(
void
)
int
vcxk_acknowledge_wait
(
void
)
{
{
while
(
VCXK_ACKNOWLEDGE
);
while
(
VCXK_ACKNOWLEDGE
)
;
return
1
;
return
1
;
}
}
...
@@ -332,7 +335,7 @@ int vcxk_acknowledge_wait(void)
...
@@ -332,7 +335,7 @@ int vcxk_acknowledge_wait(void)
***
***
*/
*/
void
vcxk_draw_mono
(
unsigned
char
*
dataptr
,
unsigned
long
linewidth
,
void
vcxk_draw_mono
(
unsigned
char
*
dataptr
,
unsigned
long
linewidth
,
unsigned
long
cp_width
,
unsigned
long
cp_height
)
unsigned
long
cp_width
,
unsigned
long
cp_height
)
{
{
unsigned
char
*
lineptr
;
unsigned
char
*
lineptr
;
...
@@ -346,7 +349,8 @@ void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth,
...
@@ -346,7 +349,8 @@ void vcxk_draw_mono(unsigned char *dataptr, unsigned long linewidth,
else
else
vcxk_setpixel
(
xcnt
,
ycnt
-
1
,
0
);
vcxk_setpixel
(
xcnt
,
ycnt
-
1
,
0
);
if
((
xcnt
%
8
)
==
7
)
lineptr
++
;
if
((
xcnt
%
8
)
==
7
)
lineptr
++
;
}
/* endfor xcnt */
}
/* endfor xcnt */
dataptr
=
dataptr
+
linewidth
;
dataptr
=
dataptr
+
linewidth
;
}
/* endfor ycnt */
}
/* endfor ycnt */
...
@@ -403,12 +407,12 @@ int vcxk_display_bitmap(ulong addr, int x, int y)
...
@@ -403,12 +407,12 @@ int vcxk_display_bitmap(ulong addr, int x, int y)
if
(
c_height
<
height
)
if
(
c_height
<
height
)
dataptr
=
dataptr
+
lw
*
(
height
-
c_height
);
dataptr
=
dataptr
+
lw
*
(
height
-
c_height
);
switch
(
bpp
)
{
switch
(
bpp
)
{
case
1
:
case
1
:
vcxk_draw_mono
(
dataptr
,
lw
,
c_width
,
c_height
);
vcxk_draw_mono
(
dataptr
,
lw
,
c_width
,
c_height
);
break
;
break
;
default:
default:
printf
(
"Error: %ld bit per pixel "
printf
(
"Error: %ld bit per pixel "
"not supported by VCxK
\n
"
,
bpp
);
"not supported by VCxK
\n
"
,
bpp
);
return
0
;
return
0
;
}
}
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment