spkr.c (109268) | spkr.c (109623) |
---|---|
1/* 2 * spkr.c -- device driver for console speaker 3 * 4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 5 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> 6 * modified for PC98 by Kakefuda 7 * | 1/* 2 * spkr.c -- device driver for console speaker 3 * 4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 5 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su> 6 * modified for PC98 by Kakefuda 7 * |
8 * $FreeBSD: head/sys/dev/speaker/spkr.c 109268 2003-01-15 02:02:33Z mdodd $ | 8 * $FreeBSD: head/sys/dev/speaker/spkr.c 109623 2003-01-21 08:56:16Z alfred $ |
9 */ 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/bus.h> 14#include <sys/kernel.h> 15#include <sys/module.h> 16#include <sys/uio.h> --- 473 unchanged lines hidden (view full) --- 490 else if (spkr_active) 491 return(EBUSY); 492 else 493 { 494#ifdef DEBUG 495 (void) printf("spkropen: about to perform play initialization\n"); 496#endif /* DEBUG */ 497 playinit(); | 9 */ 10 11#include <sys/param.h> 12#include <sys/systm.h> 13#include <sys/bus.h> 14#include <sys/kernel.h> 15#include <sys/module.h> 16#include <sys/uio.h> --- 473 unchanged lines hidden (view full) --- 490 else if (spkr_active) 491 return(EBUSY); 492 else 493 { 494#ifdef DEBUG 495 (void) printf("spkropen: about to perform play initialization\n"); 496#endif /* DEBUG */ 497 playinit(); |
498 spkr_inbuf = malloc(DEV_BSIZE, M_SPKR, M_WAITOK); | 498 spkr_inbuf = malloc(DEV_BSIZE, M_SPKR, 0); |
499 spkr_active = TRUE; 500 return(0); 501 } 502} 503 504static int 505spkrwrite(dev, uio, ioflag) 506 dev_t dev; --- 182 unchanged lines hidden --- | 499 spkr_active = TRUE; 500 return(0); 501 } 502} 503 504static int 505spkrwrite(dev, uio, ioflag) 506 dev_t dev; --- 182 unchanged lines hidden --- |