|
|
1.1 ! root 1: /* Copyright (c) 1994 NeXT Computer, Inc. All rights reserved. ! 2: * ! 3: * ! 4: * DDM macros for AMD SCSI driver. ! 5: */ ! 6: ! 7: #import <driverkit/debugging.h> ! 8: ! 9: /* ! 10: * The index into IODDMMasks[]. ! 11: */ ! 12: #define AMD_DDM_INDEX 2 ! 13: ! 14: #define DDM_EXPORTED 0x00000001 // exported methods ! 15: #define DDM_IOTHREAD 0x00000002 // I/O thread methods ! 16: #define DDM_INIT 0x00000004 // Initialization ! 17: #define DDM_INTR 0x00000008 // Interrupt ! 18: #define DDM_CHIP 0x00000010 // chip-level ! 19: #define DDM_ERROR 0x00000020 // error ! 20: #define DDM_DMA 0x00000040 // DMA ! 21: # ! 22: #define DDM_CONSOLE_LOG 0 /* really hosed...*/ ! 23: ! 24: #if DDM_CONSOLE_LOG ! 25: ! 26: #undef IODEBUG ! 27: #define IODEBUG(index, mask, x, a, b, c, d, e) { \ ! 28: if(IODDMMasks[index] & mask) { \ ! 29: IOLog(x, a, b, c,d, e); \ ! 30: } \ ! 31: } ! 32: ! 33: #endif DDM_CONSOLE_LOG ! 34: ! 35: /* ! 36: * Normal ddm calls.. ! 37: */ ! 38: #define ddm_exp(x, a, b, c, d, e) \ ! 39: IODEBUG(AMD_DDM_INDEX, DDM_EXPORTED, x, a, b, c, d, e) ! 40: ! 41: #define ddm_thr(x, a, b, c, d, e) \ ! 42: IODEBUG(AMD_DDM_INDEX, DDM_IOTHREAD, x, a, b, c, d, e) ! 43: ! 44: #define ddm_init(x, a, b, c, d, e) \ ! 45: IODEBUG(AMD_DDM_INDEX, DDM_INIT, x, a, b, c, d, e) ! 46: ! 47: /* ! 48: * catch both I/O thread events and interrupt events. ! 49: */ ! 50: #define ddm_intr(x, a, b, c, d, e) \ ! 51: IODEBUG(AMD_DDM_INDEX, (DDM_IOTHREAD | DDM_INTR), x, a, b, c, d, e) ! 52: ! 53: #define ddm_chip(x, a, b, c, d, e) \ ! 54: IODEBUG(AMD_DDM_INDEX, DDM_CHIP, x, a, b, c, d, e) ! 55: ! 56: #define ddm_err(x, a, b, c, d, e) \ ! 57: IODEBUG(AMD_DDM_INDEX, DDM_ERROR, x, a, b, c, d, e) ! 58: ! 59: #define ddm_dma(x, a, b, c, d, e) \ ! 60: IODEBUG(AMD_DDM_INDEX, DDM_DMA, x, a, b, c, d, e) ! 61:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.