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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [or32/] [console/] [txtcon.c] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1624 jcastillo
/*
2
 * linux/arch/or32/console/txtcon.c -- Low level text mode based console driver
3
 *
4
 * Based on:
5
 *
6
 * linux/arch/m68k/console/txtcon.c -- Low level text mode based console driver
7
 *
8
 *    Copyright (C) 1995 Geert Uytterhoeven
9
 *
10
 *
11
 * This file is currently only a skeleton, since all Amigas and Ataris have
12
 * bitmapped graphics.
13
 *
14
 *
15
 * This file is subject to the terms and conditions of the GNU General Public
16
 * License.  See the file COPYING in the main directory of this archive
17
 * for more details.
18
 */
19
 
20
 
21
#include <linux/types.h>
22
#include <linux/console.h>
23
 
24
 
25
   /*
26
    *    Interface used by the world
27
    */
28
 
29
static u_long txtcon_startup(u_long kmem_start, char **display_desc);
30
static void txtcon_init(struct vc_data *conp);
31
static int txtcon_deinit(struct vc_data *conp);
32
static int txtcon_clear(struct vc_data *conp, int sy, int sx, int height,
33
                        int width);
34
static int txtcon_putc(struct vc_data *conp, int c, int y, int x);
35
static int txtcon_putcs(struct vc_data *conp, const char *s, int count, int y,
36
                        int x);
37
static int txtcon_cursor(struct vc_data *conp, int mode);
38
static int txtcon_scroll(struct vc_data *conp, int t, int b, int dir, int count);
39
static int txtcon_bmove(struct vc_data *conp, int sy, int sx, int dy, int dx,
40
                        int height, int width);
41
static int txtcon_switch(struct vc_data *conp);
42
static int txtcon_blank(int blank);
43
 
44
 
45
 
46
static u_long txtcon_startup(u_long kmem_start, char **display_desc)
47
{
48
   *display_desc = "Not yet implemented";
49
   return(kmem_start);
50
}
51
 
52
 
53
static void txtcon_init(struct vc_data *conp)
54
{
55
}
56
 
57
 
58
static int txtcon_deinit(struct vc_data *conp)
59
{
60
   return(0);
61
}
62
 
63
 
64
/* ====================================================================== */
65
 
66
/* txtcon_XXX routines - interface used by the world */
67
 
68
 
69
static int txtcon_clear(struct vc_data *conp, int sy, int sx, int height,
70
                        int width)
71
{
72
   return(0);
73
}
74
 
75
 
76
static int txtcon_putc(struct vc_data *conp, int c, int y, int x)
77
{
78
   return(0);
79
}
80
 
81
 
82
static int txtcon_putcs(struct vc_data *conp, const char *s, int count, int y,
83
                        int x)
84
{
85
   return(0);
86
}
87
 
88
 
89
static int txtcon_cursor(struct vc_data *conp, int mode)
90
{
91
   return(0);
92
}
93
 
94
 
95
static int txtcon_scroll(struct vc_data *conp, int t, int b, int dir, int count)
96
{
97
   return(0);
98
}
99
 
100
 
101
static int txtcon_bmove(struct vc_data *conp, int sy, int sx, int dy, int dx,
102
                        int height, int width)
103
{
104
   return(0);
105
}
106
 
107
 
108
static int txtcon_switch(struct vc_data *conp)
109
{
110
   return(0);
111
}
112
 
113
 
114
static int txtcon_blank(int blank)
115
{
116
   return(0);
117
}
118
 
119
 
120
/* ====================================================================== */
121
 
122
   /*
123
    *    The console `switch' structure for the text mode based console
124
    */
125
 
126
struct consw txt_con = {
127
   txtcon_startup, txtcon_init, txtcon_deinit, txtcon_clear, txtcon_putc,
128
   txtcon_putcs, txtcon_cursor, txtcon_scroll, txtcon_bmove, txtcon_switch,
129
   txtcon_blank
130
};
131
 

powered by: WebSVN 2.1.0

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