con_lscreen - { struct con_softc *cs =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* * Attachment code for having the generic console device use the LAMEbus * screen device. */ #include <types.h> #include <lib.h> #include <generic/console.h> #include <lamebus/lscreen.h> #include "autoconf.h" struct con_softc * attach_con_to_lscreen(int consno, struct lscreen_softc *ls)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { struct con_softc *cs = kmalloc(sizeof(struct con_softc)); if (cs==NULL) { return NULL; } cs-&gt;cs_devdata = ls; cs-&gt;cs_send = lscreen_write; cs-&gt;cs_sendpolled = lscreen_write; ls-&gt;ls_devdata = cs; ls-&gt;ls_start = con_start; ls-&gt;ls_input = con_input; return cs; }...
View Full Document

This note was uploaded on 11/10/2009 for the course CS 536 taught by Professor Lums during the Spring '09 term at Indiana.

Ask a homework question - tutors are online