Subversion Repositories HelenOS

Rev

Rev 4338 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4338 Rev 4344
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup genarch_drivers
29
/** @addtogroup genarch_drivers
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
35
#ifndef KERN_EGA_H_
35
#ifndef KERN_EGA_H_
36
#define KERN_EGA_H_
36
#define KERN_EGA_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
 
39
 
40
#define ROW     80
40
#define EGA_COLS       80
41
#define ROWS        25
41
#define EGA_ROWS       25
42
#define SCREEN      (ROW * ROWS)
42
#define EGA_SCREEN     (EGA_COLS * EGA_ROWS)
-
 
43
#define EGA_VRAM_SIZE  (2 * EGA_SCREEN)
43
 
44
 
44
/* EGA device registers. */
45
/* EGA device registers. */
45
#define EGA_INDEX_REG   0
46
#define EGA_INDEX_REG  0
46
#define EGA_DATA_REG    1
47
#define EGA_DATA_REG   1
47
 
48
 
48
extern void ega_redraw(void);
49
extern void ega_redraw(void);
49
extern void ega_init(ioport_t, uintptr_t);
50
extern void ega_init(ioport8_t *, uintptr_t);
50
 
51
 
51
#endif
52
#endif
52
 
53
 
53
/** @}
54
/** @}
54
 */
55
 */