Changeset 26e7d6d in mainline for kernel/genarch/src/drivers/dsrln/dsrlnout.c
- Timestamp:
- 2011-09-19T16:31:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a347a11
- Parents:
- 3842a955 (diff), 086290d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/dsrln/dsrlnout.c
r3842a955 r26e7d6d 42 42 #include <sysinfo/sysinfo.h> 43 43 #include <str.h> 44 #include <ddi/ddi.h> 44 45 45 46 typedef struct { 47 parea_t parea; 46 48 ioport8_t *base; 47 49 } dsrlnout_instance_t; 48 50 49 static void dsrlnout_putchar(outdev_t *dev, const wchar_t ch , bool silent)51 static void dsrlnout_putchar(outdev_t *dev, const wchar_t ch) 50 52 { 51 53 dsrlnout_instance_t *instance = (dsrlnout_instance_t *) dev->data; 52 54 53 if ( !silent) {55 if ((!instance->parea.mapped) || (console_override)) { 54 56 if (ascii_check(ch)) 55 57 pio_write_8(instance->base, ch); … … 70 72 return NULL; 71 73 72 dsrlnout_instance_t *instance = malloc(sizeof(dsrlnout_instance_t), FRAME_ATOMIC); 74 dsrlnout_instance_t *instance = malloc(sizeof(dsrlnout_instance_t), 75 FRAME_ATOMIC); 73 76 if (!instance) { 74 77 free(dsrlndev); … … 80 83 81 84 instance->base = base; 85 link_initialize(&instance->parea.link); 86 instance->parea.pbase = KA2PA(base); 87 instance->parea.frames = 1; 88 instance->parea.unpriv = false; 89 instance->parea.mapped = false; 90 ddi_parea_register(&instance->parea); 82 91 83 92 if (!fb_exported) { 84 93 /* 85 * This is the necessary evil until the userspace driver is entirely 94 * This is the necessary evil until 95 * the userspace driver is entirely 86 96 * self-sufficient. 87 97 */
Note:
See TracChangeset
for help on using the changeset viewer.