|
|
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: /*
26: * Copyright (c) 1987, 1988, 1989 NeXT, Inc.
27: *
28: * HISTORY
29: * 16-Mar-93 Curtis Galloway at NeXT
30: * Removed obsolete eventc.h.
31: *
32: * 02-Mar-89 Doug Mitchell at NeXT
33: * Added XPR_SCCMD.
34: *
35: * 25-Feb-88 Gregg Kellogg (gk) at NeXT
36: * Changed timestamp to use event counter
37: */
38:
39: /*
40: * File: i386/xpr.h
41: *
42: * Machine dependent module for the XPR tracing facility.
43: */
44:
45: #ifdef KERNEL_BUILD
46: #import "uxpr.h"
47: #import "xpr_debug.h"
48: #else /* KERNEL_BUILD */
49: #import <mach/features.h>
50: #endif /* KERNEL_BUILD */
51:
52: #ifndef DDM_DEBUG
53: #define DDM_DEBUG XPR_DEBUG
54: #endif /* DDM_DEBUG */
55:
56: #import <driverkit/debugging.h>
57: #import <driverkit/ddmPrivate.h>
58: #import <driverkit/Device_ddm.h>
59: #import <driverkit/xpr_mi.h>
60:
61: /*
62: * This stuff is old, probably should be deleted.
63: */
64: #define XPR_TIMESTAMP event_get()
65:
66: #define XPR_OD (1 << 21)
67: #define XPR_PRINTER (1 << 22)
68: #define XPR_SOUND (1 << 23)
69: #define XPR_DSP (1 << 24)
70: #define XPR_MIDI (1 << 25)
71: #define XPR_DMA (1 << 26)
72: #define XPR_EVENT (1 << 27)
73: #define XPR_SCSI (1 << 28)
74: #define XPR_SCC (1 << 29)
75: #define XPR_FD (1 << 30)
76: #define XPR_KM (1 << 31)
77:
78: /*
79: * Real driverkit style DDM defines.
80: */
81:
82: /*
83: * Compile-time flags:
84: *
85: * UXPR - this enables driverkit-style xpr functionality. The module which
86: * implements this, machdep/nrw/ddm.c, is compiled into the kernel
87: * when this flag is true. Currently this is true in all nrw builds.
88: * DDM_DEBUG - enables actual uxpr() macros. Currrently this is true only
89: * in nrw DEBUG builds.
90: *
91: * RELEASE kernels compile in ddm.c to allow loadable servers to use the
92: * uxpr mechanism.
93: */
94:
95: #define XPR_DMABUF 0x00000100 // IOEISADirectDevice dma buffers
96:
97: #define xpr_dmabuf(x, a, b, c, d, e) \
98: IODEBUG(XPR_IODEVICE_INDEX, XPR_DMABUF, x, a, b, c, d, e)
99:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.