KNF: Fix some whitespace inconsistencies.

This commit is contained in:
scottr 1997-11-08 23:22:38 +00:00
parent 0dfa0df14c
commit 60dd653baa
2 changed files with 22 additions and 20 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_iv.c,v 1.26 1997/11/08 04:12:52 briggs Exp $ */
/* $NetBSD: grf_iv.c,v 1.27 1997/11/08 23:22:38 scottr Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -84,11 +84,11 @@ grfiv_match(parent, cf, aux)
struct obio_attach_args *oa = (struct obio_attach_args *)aux;
bus_space_handle_t bsh;
int found, sense;
u_int base;
u_int base;
found = 1;
switch (current_mac_model->class) {
switch (current_mac_model->class) {
case MACH_CLASSQ:
/*
* Assume DAFB for all of these, unless we can't
@ -126,12 +126,13 @@ grfiv_match(parent, cf, aux)
bus_space_unmap(oa->oa_tag, bsh, 0x1000);
break;
case MACH_CLASSAV:
case MACH_CLASSAV:
base = CIVIC_CONTROL_BASE;
if (bus_space_map(oa->oa_tag, base, 0x1000, 0, &bsh)) {
panic("failed to map space for CIVIC control regs.\n");
}
/* Disable interrupts */
bus_space_write_1(oa->oa_tag, bsh, 0x120, 0);
@ -162,15 +163,15 @@ grfiv_attach(parent, self, aux)
struct obio_attach_args *oa = (struct obio_attach_args *)aux;
struct grfbus_softc *sc;
struct grfmode *gm;
u_int base;
u_int base;
sc = (struct grfbus_softc *)self;
sc->card_id = 0;
switch (current_mac_model->class) {
case MACH_CLASSQ:
base=QUADRA_DAFB_BASE;
switch (current_mac_model->class) {
case MACH_CLASSQ:
base = QUADRA_DAFB_BASE;
sc->sc_tag = oa->oa_tag;
if (bus_space_map(sc->sc_tag, base, 0x1000, 0, &sc->sc_regh)) {
panic("failed to map space for DAFB regs.\n");
@ -178,8 +179,8 @@ grfiv_attach(parent, self, aux)
printf(": DAFB: Monitor sense %x.\n", R4(sc,0x1C)&7);
bus_space_unmap(sc->sc_tag, sc->sc_regh, 0x1000);
break;
case MACH_CLASSQ2:
case MACH_CLASSAV:
case MACH_CLASSQ2:
case MACH_CLASSAV:
default:
printf(": Internal Video\n");
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: grf_obio.c,v 1.26 1997/11/08 04:12:52 briggs Exp $ */
/* $NetBSD: grf_obio.c,v 1.27 1997/11/08 23:22:38 scottr Exp $ */
/*
* Copyright (c) 1995 Allen Briggs. All rights reserved.
@ -84,11 +84,11 @@ grfiv_match(parent, cf, aux)
struct obio_attach_args *oa = (struct obio_attach_args *)aux;
bus_space_handle_t bsh;
int found, sense;
u_int base;
u_int base;
found = 1;
switch (current_mac_model->class) {
switch (current_mac_model->class) {
case MACH_CLASSQ:
/*
* Assume DAFB for all of these, unless we can't
@ -126,12 +126,13 @@ grfiv_match(parent, cf, aux)
bus_space_unmap(oa->oa_tag, bsh, 0x1000);
break;
case MACH_CLASSAV:
case MACH_CLASSAV:
base = CIVIC_CONTROL_BASE;
if (bus_space_map(oa->oa_tag, base, 0x1000, 0, &bsh)) {
panic("failed to map space for CIVIC control regs.\n");
}
/* Disable interrupts */
bus_space_write_1(oa->oa_tag, bsh, 0x120, 0);
@ -162,15 +163,15 @@ grfiv_attach(parent, self, aux)
struct obio_attach_args *oa = (struct obio_attach_args *)aux;
struct grfbus_softc *sc;
struct grfmode *gm;
u_int base;
u_int base;
sc = (struct grfbus_softc *)self;
sc->card_id = 0;
switch (current_mac_model->class) {
case MACH_CLASSQ:
base=QUADRA_DAFB_BASE;
switch (current_mac_model->class) {
case MACH_CLASSQ:
base = QUADRA_DAFB_BASE;
sc->sc_tag = oa->oa_tag;
if (bus_space_map(sc->sc_tag, base, 0x1000, 0, &sc->sc_regh)) {
panic("failed to map space for DAFB regs.\n");
@ -178,8 +179,8 @@ grfiv_attach(parent, self, aux)
printf(": DAFB: Monitor sense %x.\n", R4(sc,0x1C)&7);
bus_space_unmap(sc->sc_tag, sc->sc_regh, 0x1000);
break;
case MACH_CLASSQ2:
case MACH_CLASSAV:
case MACH_CLASSQ2:
case MACH_CLASSAV:
default:
printf(": Internal Video\n");
break;