{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

beep_ltimer - struct beep_softc*bs = kmalloc(sizeof(struct...

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online