|
|
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) 1992 NeXT Computer, Inc.
27: *
28: * Dummy file for now.
29: *
30: * HISTORY
31: *
32: * 9 July 1992 ? at NeXT
33: * Created.
34: */
35:
36: /* @(#)dma.h 1.0 08/12/87 (c) 1987 NeXT */
37:
38: /*
39: **********************************************************************
40: * HISTORY
41: *
42: * 26-Sep-89 John Seamons (jks) at NeXT
43: * Made dd_csr in struct dma_dev an int (and changed the corresponding
44: * register #defines) because this register responds as a 32-bit device
45: * and therefore needs to be accessed this way to work on the 68040.
46: *
47: * 12-Apr-88 John Seamons (jks) at NeXT
48: * Changes to support DMA chip 313.
49: *
50: * 12-Aug-87 Mike DeMoney (mike) at NeXT
51: * Created.
52: *
53: **********************************************************************
54: */
55:
56: /*
57: * dma.h -- description of NeXT dma structures
58: */
59:
60: #if KERNEL_PRIVATE
61:
62: #ifndef _I386_DEV_DMA_
63: #define _I386_DEV_DMA_
64:
65: #define DMA_BEGINALIGNMENT 1
66: #define DMA_ENDALIGNMENT 1
67:
68: #define DMA_BEGINALIGN(type, addr) \
69: ((type)(((unsigned)(addr)+DMA_BEGINALIGNMENT-1) \
70: &~(DMA_BEGINALIGNMENT-1)))
71:
72: #define DMA_ENDALIGN(type, addr) \
73: ((type)(((unsigned)(addr)+DMA_ENDALIGNMENT-1) \
74: &~(DMA_ENDALIGNMENT-1)))
75: #define DMA_BEGINALIGNED(addr) (((unsigned)(addr)&(DMA_BEGINALIGNMENT-1))==0)
76: #define DMA_ENDALIGNED(addr) (((unsigned)(addr)&(DMA_ENDALIGNMENT-1))==0)
77: #define DMA_LONGALIGNED(addr) (((unsigned)(addr)&(DMA_LONGALIGNMENT-1))==0)
78:
79: #endif /* _I386_DEV_DMA_ */
80:
81: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.