Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/dev comments & whitespace police
details: https://anonhg.NetBSD.org/src/rev/dd1a66398483
branches: trunk
changeset: 789309:dd1a66398483
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Aug 14 01:53:27 2013 +0000
description:
comments & whitespace police
diffstat:
sys/arch/sparc/dev/cgfourteen.c | 24 ++++++++----------------
1 files changed, 8 insertions(+), 16 deletions(-)
diffs (59 lines):
diff -r 65da60bd896c -r dd1a66398483 sys/arch/sparc/dev/cgfourteen.c
--- a/sys/arch/sparc/dev/cgfourteen.c Tue Aug 13 20:41:25 2013 +0000
+++ b/sys/arch/sparc/dev/cgfourteen.c Wed Aug 14 01:53:27 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgfourteen.c,v 1.75 2013/06/04 22:31:30 macallan Exp $ */
+/* $NetBSD: cgfourteen.c,v 1.76 2013/08/14 01:53:27 macallan Exp $ */
/*
* Copyright (c) 1996
@@ -110,7 +110,7 @@
CFATTACH_DECL_NEW(cgfourteen, sizeof(struct cgfourteen_softc),
cgfourteenmatch, cgfourteenattach, NULL, NULL);
-
+
extern struct cfdriver cgfourteen_cd;
dev_type_open(cgfourteenopen);
@@ -191,14 +191,6 @@
return (strcmp(cf->cf_name, sa->sa_name) == 0);
}
-/*
- * Set COLOUR_OFFSET to the offset of the video RAM. This is to provide
- * space for faked overlay junk for the cg8 emulation.
- *
- * As it happens, this value is correct for both cg3 and cg8 emulation!
- */
-#define COLOUR_OFFSET (256*1024)
-
#if NWSDISPLAY > 0
static int cg14_ioctl(void *, void *, u_long, void *, int, struct lwp *);
static paddr_t cg14_mmap(void *, void *, off_t, int);
@@ -554,6 +546,11 @@
offset = sc->sc_fbaddr + CG14_FB_PR32;
off -= CG14_R32_VOFF;
#if NSX > 0
+ /*
+ * for convenience we also map the SX ranges here:
+ * - one page userland registers
+ * - CG14-sized IO space at 0x800000000 ( not a typo, it's above 4GB )
+ */
} else if (sc->sc_sx == NULL) {
return -1;
} else if (off >= CG14_SXREG_VOFF &&
@@ -568,12 +565,7 @@
#endif
} else
return -1;
- /*
- * for convenience we also map the SX ranges here:
- * - one page userland registers
- * - CG14-sized IO space at 0x800000000 ( not a typo, it's above 4GB )
- * bus_space_mmap() should accept 64bit bus_addr_t's by the look of it
- */
+
return (bus_space_mmap(sc->sc_bustag, offset, off, prot,
BUS_SPACE_MAP_LINEAR));
}
Home |
Main Index |
Thread Index |
Old Index