Changeset 9cd98796 in mainline
- Timestamp:
- 2009-03-03T22:57:26Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff685c9
- Parents:
- 1ae8f2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fb/ega.c
r1ae8f2b r9cd98796 52 52 #include <console/style.h> 53 53 #include <console/color.h> 54 #include <sys/types.h> 54 55 55 56 #include "ega.h" … … 64 65 saved_screen saved_screens[MAX_SAVED_SCREENS]; 65 66 66 #define EGA_IO_ ADDRESS 0x3d467 #define EGA_IO_BASE ((ioport8_t *) 0x3d4) 67 68 #define EGA_IO_SIZE 2 68 69 … … 100 101 ega_cursor = col + scr_width * row; 101 102 102 outb(EGA_IO_ADDRESS, 0xe);103 outb(EGA_IO_ADDRESS+ 1, (ega_cursor >> 8) & 0xff);104 outb(EGA_IO_ADDRESS, 0xf);105 outb(EGA_IO_ADDRESS+ 1, ega_cursor & 0xff);103 pio_write_8(EGA_IO_BASE, 0xe); 104 pio_write_8(EGA_IO_BASE + 1, (ega_cursor >> 8) & 0xff); 105 pio_write_8(EGA_IO_BASE, 0xf); 106 pio_write_8(EGA_IO_BASE + 1, ega_cursor & 0xff); 106 107 } 107 108 … … 110 111 uint8_t stat; 111 112 112 outb(EGA_IO_ADDRESS, 0xa);113 stat =inb(EGA_IO_ADDRESS+ 1);114 outb(EGA_IO_ADDRESS, 0xa);115 outb(EGA_IO_ADDRESS+ 1, stat | (1 << 5));113 pio_write_8(EGA_IO_BASE, 0xa); 114 stat = pio_read_8(EGA_IO_BASE + 1); 115 pio_write_8(EGA_IO_BASE, 0xa); 116 pio_write_8(EGA_IO_BASE + 1, stat | (1 << 5)); 116 117 } 117 118 … … 120 121 uint8_t stat; 121 122 122 outb(EGA_IO_ADDRESS, 0xa);123 stat =inb(EGA_IO_ADDRESS+ 1);124 outb(EGA_IO_ADDRESS, 0xa);125 outb(EGA_IO_ADDRESS+ 1, stat & (~(1 << 5)));123 pio_write_8(EGA_IO_BASE, 0xa); 124 stat = pio_read_8(EGA_IO_BASE + 1); 125 pio_write_8(EGA_IO_BASE, 0xa); 126 pio_write_8(EGA_IO_BASE + 1, stat & (~(1 << 5))); 126 127 } 127 128 … … 381 382 style = NORMAL_COLOR; 382 383 383 iospace_enable(task_get_id(), (void *) EGA_IO_ ADDRESS, 2);384 iospace_enable(task_get_id(), (void *) EGA_IO_BASE, 2); 384 385 385 386 sz = scr_width * scr_height * 2;
Note:
See TracChangeset
for help on using the changeset viewer.