source: rtems/c/src/lib/libbsp/powerpc/ppcn_60x/console/vga_p.h @ eba2e4f

4.104.114.84.95
Last change on this file since eba2e4f was 0c04c377, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 16:48:14

./clock/Makefile.in,v
./clock/clock.c,v
./console/Makefile.in,v
./console/config.c,v
./console/console.c,v
./console/console.h,v
./console/debugio.c,v
./console/i8042.c,v
./console/i8042_p.h,v
./console/i8042vga.c,v
./console/i8042vga.h,v
./console/ns16550.c,v
./console/ns16550.h,v
./console/ns16550_p.h,v
./console/ns16550cfg.c,v
./console/ns16550cfg.h,v
./console/vga.c,v
./console/vga_p.h,v
./console/z85c30.c,v
./console/z85c30.h,v
./console/z85c30_p.h,v
./console/z85c30cfg.c,v
./console/z85c30cfg.h,v
./include/Makefile.in,v
./include/bsp.h,v
./include/chain.h,v
./include/coverhd.h,v
./include/extisrdrv.h,v
./include/nvram.h,v
./include/pci.h,v
./include/tod.h,v
./network/Makefile.in,v
./network/amd79c970.c,v
./network/amd79c970.h,v
./nvram/Makefile.in,v
./nvram/ds1385.h,v
./nvram/mk48t18.h,v
./nvram/nvram.c,v
./nvram/prepnvr.h,v
./nvram/stk11c68.h,v
./pci/Makefile.in,v
./pci/pci.c,v
./start/Makefile.in,v
./start/start.s,v
./startup/Makefile.in,v
./startup/bspclean.c,v
./startup/bspstart.c,v
./startup/bsptrap.s,v
./startup/device-tree,v
./startup/genpvec.c,v
./startup/linkcmds,v
./startup/rtems-ctor.cc,v
./startup/sbrk.c,v
./startup/setvec.c,v
./startup/spurious.c,v
./startup/swap.c,v
./timer/Makefile.in,v
./timer/timer.c,v
./tod/Makefile.in,v
./tod/cmos.h,v
./tod/tod.c,v
./universe/Makefile.in,v
./universe/universe.c,v
./vectors/Makefile.in,v
./vectors/README,v
./vectors/align_h.s,v
./vectors/vectors.s,v
./wrapup/Makefile.in,v
./Makefile.in,v
./README,v
./STATUS,v
./bsp_specs,v

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*
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
21extern "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 */
51extern boolean vga_probe(int minor);
52
53extern void vga_init(int minor);
54
55extern void vga_write(
56        int   minor,
57        char  cChar
58);
59
60extern 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_ */
Note: See TracBrowser for help on using the repository browser.