Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sgimips/dev PR/50783: David Binderman: Indent switc...
details: https://anonhg.NetBSD.org/src/rev/4e984d3319be
branches: trunk
changeset: 343503:4e984d3319be
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 08 16:44:45 2016 +0000
description:
PR/50783: David Binderman: Indent switch properly, add missing break.
diffstat:
sys/arch/sgimips/dev/crmfb.c | 65 ++++++++++++++++++++++---------------------
1 files changed, 33 insertions(+), 32 deletions(-)
diffs (86 lines):
diff -r 356631396752 -r 4e984d3319be sys/arch/sgimips/dev/crmfb.c
--- a/sys/arch/sgimips/dev/crmfb.c Mon Feb 08 16:42:04 2016 +0000
+++ b/sys/arch/sgimips/dev/crmfb.c Mon Feb 08 16:44:45 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crmfb.c,v 1.41 2015/09/23 20:09:45 macallan Exp $ */
+/* $NetBSD: crmfb.c,v 1.42 2016/02/08 16:44:45 christos Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crmfb.c,v 1.41 2015/09/23 20:09:45 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crmfb.c,v 1.42 2016/02/08 16:44:45 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1107,36 +1107,37 @@
bus_space_write_8(sc->sc_iot, sc->sc_reh, 0x40, 0);
switch (depth) {
- case 8:
- sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_8 |
- DE_MODE_TYPE_CI | DE_MODE_PIXDEPTH_8;
- sc->sc_mte_mode = MTE_MODE_DST_ECC |
- (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
- (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
- (MTE_DEPTH_8 << MTE_DEPTH_SHIFT);
- sc->sc_mte_x_shift = 0;
- break;
- case 16:
- sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_16 |
- DE_MODE_TYPE_RGBA | DE_MODE_PIXDEPTH_16;
- sc->sc_mte_mode = MTE_MODE_DST_ECC |
- (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
- (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
- (MTE_DEPTH_16 << MTE_DEPTH_SHIFT);
- sc->sc_mte_x_shift = 1;
- break;
- case 32:
- sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_32 |
- DE_MODE_TYPE_RGBA | DE_MODE_PIXDEPTH_32;
- break;
- sc->sc_mte_mode = MTE_MODE_DST_ECC |
- (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
- (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
- (MTE_DEPTH_32 << MTE_DEPTH_SHIFT);
- sc->sc_mte_x_shift = 2;
- default:
- panic("%s: unsuported colour depth %d\n", __func__,
- depth);
+ case 8:
+ sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_8 |
+ DE_MODE_TYPE_CI | DE_MODE_PIXDEPTH_8;
+ sc->sc_mte_mode = MTE_MODE_DST_ECC |
+ (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
+ (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
+ (MTE_DEPTH_8 << MTE_DEPTH_SHIFT);
+ sc->sc_mte_x_shift = 0;
+ break;
+ case 16:
+ sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_16 |
+ DE_MODE_TYPE_RGBA | DE_MODE_PIXDEPTH_16;
+ sc->sc_mte_mode = MTE_MODE_DST_ECC |
+ (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
+ (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
+ (MTE_DEPTH_16 << MTE_DEPTH_SHIFT);
+ sc->sc_mte_x_shift = 1;
+ break;
+ case 32:
+ sc->sc_de_mode = DE_MODE_TLB_A | DE_MODE_BUFDEPTH_32 |
+ DE_MODE_TYPE_RGBA | DE_MODE_PIXDEPTH_32;
+ break;
+ sc->sc_mte_mode = MTE_MODE_DST_ECC |
+ (MTE_TLB_A << MTE_DST_TLB_SHIFT) |
+ (MTE_TLB_A << MTE_SRC_TLB_SHIFT) |
+ (MTE_DEPTH_32 << MTE_DEPTH_SHIFT);
+ sc->sc_mte_x_shift = 2;
+ break;
+ default:
+ panic("%s: unsuported colour depth %d\n", __func__,
+ depth);
}
sc->sc_needs_sync = 0;
sc->sc_src_mode = 0xffffffff;
Home |
Main Index |
Thread Index |
Old Index