Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci add a few register definitions
details: https://anonhg.NetBSD.org/src/rev/a4c92c0746a7
branches: trunk
changeset: 781019:a4c92c0746a7
user: macallan <macallan%NetBSD.org@localhost>
date: Wed Aug 15 15:39:23 2012 +0000
description:
add a few register definitions
diffstat:
sys/dev/pci/machfbreg.h | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 635afd5af0a7 -r a4c92c0746a7 sys/dev/pci/machfbreg.h
--- a/sys/dev/pci/machfbreg.h Wed Aug 15 14:51:30 2012 +0000
+++ b/sys/dev/pci/machfbreg.h Wed Aug 15 15:39:23 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machfbreg.h,v 1.4 2010/05/04 05:08:01 macallan Exp $ */
+/* $NetBSD: machfbreg.h,v 1.5 2012/08/15 15:39:23 macallan Exp $ */
/*
* Copyright 1992,1993,1994,1995,1996,1997 by Kevin E. Martin, Chapel Hill, North Carolina.
@@ -27,6 +27,11 @@
* Modified for the Mach64 by Kevin E. Martin (martin%cs.unc.edu@localhost)
*/
+/* BARs */
+#define MACH64_BAR_APERTURE 0x10 /* all mach64 have this */
+#define MACH64_BAR_IO 0x14 /* most mach64 have this */
+#define MACH64_BAR_MMIO 0x18 /* Rage Pro and newer */
+
/* NON-GUI MEMORY MAPPED Registers - expressed in BYTE offsets */
#define CRTC_H_TOTAL_DISP 0x0000 /* Dword offset 00 */
@@ -254,9 +259,13 @@
#define AUTO_BLKWRT_DIS 0x000002000
/* BUS_CNTL register constants */
+#define BUS_APER_REG_DIS 0x00000010 /* register block 0 */
+#define BUS_EXTRA_PIPE_DIS 0x00000020 /* disable extra pipeline */
+#define BUS_DISABLE_MASTER 0x00000040 /* disable busmaster */
+#define BUS_WRITE_ROM_EN 0x00000080 /* write to flash ROM */
#define BUS_FIFO_ERR_ACK 0x00200000
#define BUS_HOST_ERR_ACK 0x00800000
-#define BUS_APER_REG_DIS 0x00000010
+#define BUS_EXT_REG_EN 0x08000000 /* register block 1 */
/* GEN_TEST_CNTL register constants */
#define GEN_OVR_OUTPUT_EN 0x20
Home |
Main Index |
Thread Index |
Old Index