Rev 3908 | Rev 3940 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3908 | Rev 3930 | ||
|---|---|---|---|
| Line 56... | Line 56... | ||
| 56 | 56 | ||
| 57 | SPINLOCK_INITIALIZE(egalock); |
57 | SPINLOCK_INITIALIZE(egalock); |
| 58 | static uint32_t ega_cursor; |
58 | static uint32_t ega_cursor; |
| 59 | static uint8_t *videoram; |
59 | static uint8_t *videoram; |
| 60 | static uint8_t *backbuf; |
60 | static uint8_t *backbuf; |
| 61 | static ioport_t ega_base; |
61 | static ioport8_t *ega_base; |
| 62 | 62 | ||
| 63 | chardev_t ega_console; |
63 | chardev_t ega_console; |
| 64 | 64 | ||
| 65 | /* |
65 | /* |
| 66 | * This function takes care of scrolling. |
66 | * This function takes care of scrolling. |
| Line 129... | Line 129... | ||
| 129 | 129 | ||
| 130 | static chardev_operations_t ega_ops = { |
130 | static chardev_operations_t ega_ops = { |
| 131 | .write = ega_putchar |
131 | .write = ega_putchar |
| 132 | }; |
132 | }; |
| 133 | 133 | ||
| 134 | void ega_init(ioport_t base, uintptr_t videoram_phys) |
134 | void ega_init(ioport8_t *base, uintptr_t videoram_phys) |
| 135 | { |
135 | { |
| 136 | /* Initialize the software structure. */ |
136 | /* Initialize the software structure. */ |
| 137 | ega_base = base; |
137 | ega_base = base; |
| 138 | 138 | ||
| 139 | backbuf = (uint8_t *) malloc(SCREEN * 2, 0); |
139 | backbuf = (uint8_t *) malloc(SCREEN * 2, 0); |