beep_ltimer

beep_ltimer - { struct beep_softc *bs =...

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 beep device use the LAMEbus * ltimer device for beeping. */ #include <types.h> #include <lib.h> #include <generic/beep.h> #include <lamebus/ltimer.h> #include "autoconf.h" struct beep_softc * attach_beep_to_ltimer(int beepno, struct ltimer_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 beep_softc *bs = kmalloc(sizeof(struct beep_softc)); if (bs==NULL) { return NULL; } (void)beepno; // unused bs->bs_devdata = ls; bs->bs_beep = ltimer_beep; return bs; }...
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