con_lser

con_lser - if(cs==NULL return NULL(void)consno unused...

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 * serial device. */ #include <types.h> #include <lib.h> #include <generic/console.h> #include <lamebus/lser.h> #include "autoconf.h" struct con_softc * attach_con_to_lser(int consno, struct lser_softc *ls) { struct con_softc *cs = kmalloc(sizeof(struct con_softc));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if (cs==NULL) { return NULL; } (void)consno; // unused cs->cs_devdata = ls; cs->cs_send = lser_write; cs->cs_sendpolled = lser_writepolled; ls->ls_devdata = cs; ls->ls_start = con_start; ls->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