|
|
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.0 (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: * Copyright 1997-1998 by Apple Computer, Inc., All rights reserved. ! 26: * Copyright 1994-1997 NeXT Software, Inc., All rights reserved. ! 27: * ! 28: * IDE driver message logging -- IdeDDM.h ! 29: * ! 30: * HISTORY ! 31: * ! 32: * 1-Feb-1998 Joe Liu at Apple ! 33: * Added DDM_IDE_DMA. ! 34: * ! 35: * 22-Jul-1994 Rakesh Dubey at NeXT ! 36: * Created. ! 37: */ ! 38: ! 39: #ifndef _IDEDDM_H ! 40: #define _IDEDDM_H 1 ! 41: ! 42: ! 43: //#define DDM_DEBUG 1 ! 44: ! 45: #import <driverkit/generalFuncs.h> ! 46: ! 47: #ifdef DDM_DEBUG ! 48: #define DDM_IODEVICE_INDEX 0 ! 49: #import <driverkit/debugging.h> ! 50: ! 51: #define IDE_NUM_DDM_BUFS 256 ! 52: ! 53: /* ! 54: * Should be different than other user drivers at DDM_IODEVICE_INDEX. ! 55: * c.f. printerdriver/printerTypes.h. ! 56: */ ! 57: #define DDM_IDE_LOCK 0x00001000 /* lock */ ! 58: #define DDM_IDE_CTL 0x00002000 /* controller */ ! 59: #define DDM_IDE_CMD 0x00004000 /* IDE commands */ ! 60: #define DDM_IDE_DISK 0x00008000 /* disk */ ! 61: #define DDM_IDE_DMA 0x00000100 /* DMA ISA/PCI */ ! 62: #define DDM_IDE_LOG 0x00000200 /* Generic log messages */ ! 63: #define DDM_IDE_ALL (DDM_IDE_LOCK|DDM_IDE_CTL|DDM_IDE_DISK) ! 64: ! 65: #define ddm_ide_lock(x, a, b, c, d, e) \ ! 66: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_LOCK, x, a, b, c, d, e) ! 67: #define ddm_ide_ctl(x, a, b, c, d, e) \ ! 68: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_CTL, x, a, b, c, d, e) ! 69: #define ddm_ide_cmd(x, a, b, c, d, e) \ ! 70: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_CMD, x, a, b, c, d, e) ! 71: #define ddm_ide_disk(x, a, b, c, d, e) \ ! 72: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_DISK, x, a, b, c, d, e) ! 73: #define ddm_ide_dma(x, a, b, c, d, e) \ ! 74: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_DMA, x, a, b, c, d, e) ! 75: #define ddm_ide_log(x, a, b, c, d, e) \ ! 76: IODEBUG(DDM_IODEVICE_INDEX, DDM_IDE_LOG, x, a, b, c, d, e) ! 77: ! 78: #else DDM_DEBUG ! 79: #define ddm_ide_lock(x, a, b, c, d, e) ! 80: #define ddm_ide_ctl(x, a, b, c, d, e) ! 81: #define ddm_ide_cmd(x, a, b, c, d, e) ! 82: #define ddm_ide_disk(x, a, b, c, d, e) ! 83: #define ddm_ide_dma(x, a, b, c, d, e) ! 84: #define ddm_ide_log(x, a, b, c, d, e) ! 85: #endif DDM_DEBUG ! 86: ! 87: #endif /* _IDEDDM_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.