OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [powerpc/] [ppcn_60x/] [console/] [vga_p.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  COPYRIGHT (c) 1998 by Radstone Technology
3
 *
4
 *
5
 * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
6
 * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
7
 * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
8
 * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
9
 *
10
 * You are hereby granted permission to use, copy, modify, and distribute
11
 * this file, provided that this notice, plus the above copyright notice
12
 * and disclaimer, appears in all copies. Radstone Technology will provide
13
 * no support for this code.
14
 *
15
 */
16
 
17
#ifndef _VGA_P_H_
18
#define _VGA_P_H_
19
 
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
 
24
#define VGA_FB          ((unsigned32)PCI_MEM_BASE+0xb8000)
25
#define VGA_NUM_ROWS    25
26
#define VGA_NUM_COLS    80
27
 
28
#define VGA_WRITE_SEQ(reg, val) \
29
        outport_byte(0x3c4, reg); \
30
        outport_byte(0x3c5, val)
31
#define VGA_READ_SEQ(reg, val) \
32
        outport_byte(0x3c4, reg); \
33
        inport_byte(0x3c5, val)
34
#define VGA_WRITE_CRTC(reg, val) \
35
        outport_byte(0x3d4, reg); \
36
        outport_byte(0x3d5, val)
37
#define VGA_WRITE_GRA(reg, val) \
38
        outport_byte(0x3ce, reg); \
39
        outport_byte(0x3cf, val)
40
#define VGA_WRITE_ATT(reg, val) \
41
        { \
42
                volatile unsigned8 ucDummy; \
43
                inport_byte(0x3da, ucDummy); \
44
                outport_byte(0x3c0, reg); \
45
                outport_byte(0x3c0, val); \
46
        }
47
 
48
/*
49
 * Exported functions
50
 */
51
extern boolean vga_probe(int minor);
52
 
53
extern void vga_init(int minor);
54
 
55
extern void vga_write(
56
        int   minor,
57
        char  cChar
58
);
59
 
60
extern int vga_write_support(
61
        int   minor,
62
        const char *buf,
63
        int   len
64
);
65
 
66
#ifdef __cplusplus
67
}
68
#endif
69
 
70
#endif /* _VGA_P_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.