Annotation of driverkit/libDriver/Kernel/audioLog.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON- INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: /*
        !            25:  * audioLog.h
        !            26:  *
        !            27:  * Copyright (c) 1991, NeXT Computer, Inc.  All rights reserved.
        !            28:  *
        !            29:  *      Audio driver message logging.
        !            30:  *
        !            31:  * HISTORY
        !            32:  *      11/29/93/rkd    Fixed XPRs.
        !            33:  *      08/07/92/mtm    Original coding.
        !            34:  */
        !            35: 
        !            36: //#define DDM_DEBUG 1
        !            37: 
        !            38: #import <driverkit/generalFuncs.h>
        !            39: 
        !            40: /* FIXME: not in the kernel */
        !            41: #define mach_error_string(n) "MACH ERR"
        !            42: 
        !            43: #define log_msg(f)     IOLog f
        !            44: #define log_error(f)   IOLog f
        !            45: 
        !            46: #if 0
        !            47: #define        audio_panic()   {IOLog("Audio Driver spins for panic...\n"); \
        !            48:                             while(1) IOSleep(1000);}
        !            49: #else
        !            50: #define        audio_panic()   IOLog("Audio Driver error")
        !            51: #endif
        !            52: 
        !            53: #ifdef DEBUG
        !            54: #define log_debug(f)   IOLog f
        !            55: #else  DEBUG
        !            56: #define log_debug(f)
        !            57: #endif DEBUG
        !            58: 
        !            59: #ifdef DDM_DEBUG
        !            60: #define XPR_IODEVICE_INDEX 0
        !            61: #import <driverkit/debugging.h>
        !            62: 
        !            63: #define AUDIO_NUM_XPR_BUFS     1024
        !            64: 
        !            65: /*
        !            66:  * Should be different than other user drivers at XPR_IODEVICE_INDEX.
        !            67:  * c.f. printerdriver/printerTypes.h.
        !            68:  */
        !            69: #define XPR_AUDIO_USER         0x00001000      /* messages to/from user */
        !            70: #define XPR_AUDIO_DEVICE       0x00002000      /* audio device */
        !            71: #define XPR_AUDIO_CHANNEL      0x00004000      /* input and output channels */
        !            72: #define XPR_AUDIO_STREAM       0x00008000      /* record and play streams */
        !            73: #define        XPR_AUDIO_ALL           (XPR_AUDIO_USER|XPR_AUDIO_DEVICE|\
        !            74:                                 XPR_AUDIO_CHANNEL|XPR_AUDIO_STREAM)
        !            75: 
        !            76: #define xpr_audio_user(x, a, b, c, d, e) \
        !            77:     IODEBUG(XPR_IODEVICE_INDEX, XPR_AUDIO_USER, x, a, b, c, d, e)
        !            78: #define xpr_audio_device(x, a, b, c, d, e) \
        !            79:     IODEBUG(XPR_IODEVICE_INDEX, XPR_AUDIO_DEVICE, x, a, b, c, d, e)
        !            80: #define xpr_audio_channel(x, a, b, c, d, e) \
        !            81:     IODEBUG(XPR_IODEVICE_INDEX, XPR_AUDIO_CHANNEL, x, a, b, c, d, e)
        !            82: #define xpr_audio_stream(x, a, b, c, d, e) \
        !            83:     IODEBUG(XPR_IODEVICE_INDEX, XPR_AUDIO_STREAM, x, a, b, c, d, e)
        !            84: 
        !            85: #else  DDM_DEBUG
        !            86: #define xpr_audio_user(x, a, b, c, d, e)
        !            87: #define xpr_audio_device(x, a, b, c, d, e)
        !            88: #define xpr_audio_channel(x, a, b, c, d, e)
        !            89: #define xpr_audio_stream(x, a, b, c, d, e)
        !            90: #endif DDM_DEBUG
        !            91: 
        !            92: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.