gffbreg.h revision 1.1 1 1.1 macallan /* $NetBSD: gffbreg.h,v 1.1 2013/09/18 14:30:45 macallan Exp $ */
2 1.1 macallan
3 1.1 macallan /*
4 1.1 macallan * Copyright (c) 2007, 2012 Michael Lorenz
5 1.1 macallan * All rights reserved.
6 1.1 macallan *
7 1.1 macallan * Redistribution and use in source and binary forms, with or without
8 1.1 macallan * modification, are permitted provided that the following conditions
9 1.1 macallan * are met:
10 1.1 macallan * 1. Redistributions of source code must retain the above copyright
11 1.1 macallan * notice, this list of conditions and the following disclaimer.
12 1.1 macallan * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 macallan * notice, this list of conditions and the following disclaimer in the
14 1.1 macallan * documentation and/or other materials provided with the distribution.
15 1.1 macallan *
16 1.1 macallan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 1.1 macallan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 1.1 macallan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.1 macallan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 1.1 macallan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 1.1 macallan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 1.1 macallan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 1.1 macallan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 1.1 macallan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 1.1 macallan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 1.1 macallan */
27 1.1 macallan
28 1.1 macallan /*
29 1.1 macallan * A console driver for nvidia geforce graphics controllers
30 1.1 macallan * tested on macppc only so far
31 1.1 macallan * register definitions are mostly from the xf86-video-nv driver
32 1.1 macallan */
33 1.1 macallan
34 1.1 macallan #include <sys/cdefs.h>
35 1.1 macallan __KERNEL_RCSID(0, "$NetBSD: gffbreg.h,v 1.1 2013/09/18 14:30:45 macallan Exp $");
36 1.1 macallan
37 1.1 macallan #ifndef GFFBREG_H
38 1.1 macallan #define GFFBREG_H
39 1.1 macallan
40 1.1 macallan #define GFFB_RAMDAC0 0x00680000
41 1.1 macallan #define GFFB_RAMDAC1 0x00682000
42 1.1 macallan
43 1.1 macallan #define GFFB_PCIO0 0x00601000
44 1.1 macallan #define GFFB_PCIO1 0x00603000
45 1.1 macallan
46 1.1 macallan /* VGA registers live here, one set for each head */
47 1.1 macallan #define GFFB_PDIO0 0x00681000
48 1.1 macallan #define GFFB_PDIO1 0x00683000
49 1.1 macallan
50 1.1 macallan #define GFFB_CRTC0 0x00600000
51 1.1 macallan #define GFFB_CRTC1 0x00602000
52 1.1 macallan
53 1.1 macallan /* CRTC registers */
54 1.1 macallan #define GFFB_DISPLAYSTART 0x800
55 1.1 macallan
56 1.1 macallan /* VGA registers */
57 1.1 macallan #define GFFB_PEL_MASK 0x3c6
58 1.1 macallan #define GFFB_PEL_IR 0x3c7
59 1.1 macallan #define GFFB_PEL_IW 0x3c8
60 1.1 macallan #define GFFB_PEL_D 0x3c9
61 1.1 macallan
62 1.1 macallan #endif /* GFFBREG_H */