summaryrefslogtreecommitdiff
path: root/src/gfx/init_gu1.c
diff options
context:
space:
mode:
authorMartin-Éric Racine <martin-eric.racine@iki.fi>2012-07-11 15:50:28 +0300
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2012-07-11 15:50:28 +0300
commit1ed67d70ac9d3afd9b372c311aaf7b77e38b3e21 (patch)
tree134ec66d59b987c039a0690707d51fb15c99dd60 /src/gfx/init_gu1.c
parentb9afafec0a26eaec49e7f0ff08297c2bb795a9c2 (diff)
Whitespace cleanup using ../modular/x-indent.sh
Diffstat (limited to 'src/gfx/init_gu1.c')
-rw-r--r--src/gfx/init_gu1.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gfx/init_gu1.c b/src/gfx/init_gu1.c
index e7d9987..647fab5 100644
--- a/src/gfx/init_gu1.c
+++ b/src/gfx/init_gu1.c
@@ -43,7 +43,7 @@ gfx_gxm_config_read(unsigned char index)
OUTB(0x22, GXM_CONFIG_CCR3);
lock = INB(0x23);
OUTB(0x22, GXM_CONFIG_CCR3);
- OUTB(0x23, (unsigned char)(lock | 0x10));
+ OUTB(0x23, (unsigned char) (lock | 0x10));
OUTB(0x22, index);
value = INB(0x23);
OUTB(0x22, GXM_CONFIG_CCR3);
@@ -103,7 +103,8 @@ gfx_get_core_freq(void)
default:
return (0);
}
- } else {
+ }
+ else {
switch (dir0) {
case 0:
case 2:
@@ -150,7 +151,7 @@ gfx_get_cpu_register_base(void)
{
unsigned long base;
- base = (unsigned long)gfx_gxm_config_read(GXM_CONFIG_GCR);
+ base = (unsigned long) gfx_gxm_config_read(GXM_CONFIG_GCR);
base = (base & 0x03) << 30;
return (base);
}
@@ -175,7 +176,7 @@ gfx_get_frame_buffer_base(void)
{
unsigned long base;
- base = (unsigned long)gfx_gxm_config_read(GXM_CONFIG_GCR);
+ base = (unsigned long) gfx_gxm_config_read(GXM_CONFIG_GCR);
base = (base & 0x03) << 30;
if (base)
base |= 0x00800000;
@@ -225,7 +226,7 @@ gfx_get_vid_register_base(void)
{
unsigned long base;
- base = (unsigned long)gfx_gxm_config_read(GXM_CONFIG_GCR);
+ base = (unsigned long) gfx_gxm_config_read(GXM_CONFIG_GCR);
base = (base & 0x03) << 30;
if (base)
base |= 0x00010000;
@@ -254,7 +255,7 @@ gfx_get_vip_register_base(void)
unsigned long base = 0;
if ((gfx_cpu_version & 0xFF) == GFX_CPU_SC1200) {
- base = (unsigned long)gfx_gxm_config_read(GXM_CONFIG_GCR);
+ base = (unsigned long) gfx_gxm_config_read(GXM_CONFIG_GCR);
base = (base & 0x03) << 30;
if (base)
base |= 0x00015000;