Root/
Source at commit 1164 created 13 years 12 days ago. By azimutz, Add some pauses to nvidia.c and ati.c to help user feedback collection. | |
---|---|
1 | /*␊ |
2 | * Copyright (c) 2000-2008 Apple, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * @APPLE_OSREFERENCE_LICENSE_HEADER_START@␊ |
5 | * ␊ |
6 | * This file contains Original Code and/or Modifications of Original Code␊ |
7 | * as defined in and that are subject to the Apple Public Source License␊ |
8 | * Version 2.0 (the 'License'). You may not use this file except in␊ |
9 | * compliance with the License. The rights granted to you under the License␊ |
10 | * may not be used to create, or enable the creation or redistribution of,␊ |
11 | * unlawful or unlicensed copies of an Apple operating system, or to␊ |
12 | * circumvent, violate, or enable the circumvention or violation of, any␊ |
13 | * terms of an Apple operating system software license agreement.␊ |
14 | * ␊ |
15 | * Please obtain a copy of the License at␊ |
16 | * http://www.opensource.apple.com/apsl/ and read it before using this file.␊ |
17 | * ␊ |
18 | * The Original Code and all software distributed under the License are␊ |
19 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
20 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
21 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
22 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.␊ |
23 | * Please see the License for the specific language governing rights and␊ |
24 | * limitations under the License.␊ |
25 | * ␊ |
26 | * @APPLE_OSREFERENCE_LICENSE_HEADER_END@␊ |
27 | */␊ |
28 | /* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */␊ |
29 | ␊ |
30 | /*-␊ |
31 | * Copyright (c) 1991, 1993, 1994␊ |
32 | *␉The Regents of the University of California. All rights reserved.␊ |
33 | *␊ |
34 | * Redistribution and use in source and binary forms, with or without␊ |
35 | * modification, are permitted provided that the following conditions␊ |
36 | * are met:␊ |
37 | * 1. Redistributions of source code must retain the above copyright␊ |
38 | * notice, this list of conditions and the following disclaimer.␊ |
39 | * 2. Redistributions in binary form must reproduce the above copyright␊ |
40 | * notice, this list of conditions and the following disclaimer in the␊ |
41 | * documentation and/or other materials provided with the distribution.␊ |
42 | * 3. All advertising materials mentioning features or use of this software␊ |
43 | * must display the following acknowledgement:␊ |
44 | *␉This product includes software developed by the University of␊ |
45 | *␉California, Berkeley and its contributors.␊ |
46 | * 4. Neither the name of the University nor the names of its contributors␊ |
47 | * may be used to endorse or promote products derived from this software␊ |
48 | * without specific prior written permission.␊ |
49 | *␊ |
50 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND␊ |
51 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE␊ |
52 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE␊ |
53 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE␊ |
54 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL␊ |
55 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS␊ |
56 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)␊ |
57 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT␊ |
58 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY␊ |
59 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF␊ |
60 | * SUCH DAMAGE.␊ |
61 | *␊ |
62 | *␉@(#)ffs_extern.h␉8.6 (Berkeley) 3/30/95␊ |
63 | */␊ |
64 | #ifndef __UFS_FFS_FFS_EXTERN_H__␊ |
65 | #define __UFS_FFS_FFS_EXTERN_H__␊ |
66 | ␊ |
67 | #include <sys/appleapiopts.h>␊ |
68 | ␊ |
69 | #ifdef __APPLE_API_UNSTABLE␊ |
70 | /*␊ |
71 | * Sysctl values for the fast filesystem.␊ |
72 | */␊ |
73 | #define FFS_CLUSTERREAD␉␉1␉/* cluster reading enabled */␊ |
74 | #define FFS_CLUSTERWRITE␉2␉/* cluster writing enabled */␊ |
75 | #define FFS_REALLOCBLKS␉␉3␉/* block reallocation enabled */␊ |
76 | #define FFS_ASYNCFREE␉␉4␉/* asynchronous block freeing enabled */␊ |
77 | #define␉FFS_MAXID␉␉5␉/* number of valid ffs ids */␊ |
78 | ␊ |
79 | #define FFS_NAMES { \␊ |
80 | ␉{ 0, 0 }, \␊ |
81 | ␉{ "doclusterread", CTLTYPE_INT }, \␊ |
82 | ␉{ "doclusterwrite", CTLTYPE_INT }, \␊ |
83 | ␉{ "doreallocblks", CTLTYPE_INT }, \␊ |
84 | ␉{ "doasyncfree", CTLTYPE_INT }, \␊ |
85 | }␊ |
86 | #endif /* __APPLE_API_UNSTABLE */␊ |
87 | ␊ |
88 | struct buf;␊ |
89 | struct fs;␊ |
90 | struct inode;␊ |
91 | struct mount;␊ |
92 | struct nameidata;␊ |
93 | struct proc;␊ |
94 | struct vfsstatfs;␊ |
95 | struct timeval;␊ |
96 | #ifndef _KAUTH_CRED_T␊ |
97 | #define␉_KAUTH_CRED_T␊ |
98 | struct ucred;␊ |
99 | typedef struct ucred *kauth_cred_t;␊ |
100 | #endif␉/* !_KAUTH_CRED_T */␊ |
101 | struct uio;␊ |
102 | struct vnode;␊ |
103 | struct mbuf;␊ |
104 | struct vfsconf;␊ |
105 | ␊ |
106 | #ifdef __APPLE_API_PRIVATE␊ |
107 | __BEGIN_DECLS␊ |
108 | int␉ffs_fsync_internal(vnode_t, int);␊ |
109 | ␊ |
110 | int␉ffs_blkatoff(vnode_t, off_t, char **, buf_t *);␊ |
111 | ␊ |
112 | int␉ffs_alloc(struct inode *,␊ |
113 | ␉ ufs_daddr_t, ufs_daddr_t, int, kauth_cred_t, ufs_daddr_t *);␊ |
114 | int␉ffs_balloc(struct inode *,␊ |
115 | ␉ ufs_daddr_t, int, kauth_cred_t, struct buf **, int, int *);␊ |
116 | int ffs_blkalloc(struct inode *ip, ufs_daddr_t lbn,int size,␊ |
117 | ␉kauth_cred_t cred, int flags);␊ |
118 | void␉ffs_blkfree(struct inode *, ufs_daddr_t, int32_t);␊ |
119 | ufs_daddr_t ffs_blkpref(struct inode *, ufs_daddr_t, int, ufs_daddr_t *);␊ |
120 | void␉ffs_clrblock(struct fs *, u_char *, ufs_daddr_t);␊ |
121 | int␉ffs_fhtovp(struct mount *, int, unsigned char *, struct vnode **, vfs_context_t);␊ |
122 | void␉ffs_fragacct(struct fs *, int, int32_t [], int);␊ |
123 | int␉ffs_fsync(struct vnop_fsync_args *);␊ |
124 | int␉ffs_init(struct vfsconf *);␊ |
125 | int␉ffs_isblock(struct fs *, u_char *, ufs_daddr_t);␊ |
126 | int␉ffs_mount(struct mount *, vnode_t , user_addr_t, vfs_context_t);␊ |
127 | int␉ffs_mountfs(struct vnode *, struct mount *, vfs_context_t);␊ |
128 | int␉ffs_mountroot(mount_t, vnode_t, vfs_context_t);␊ |
129 | int␉ffs_read(struct vnop_read_args *);␊ |
130 | int␉ffs_realloccg(struct inode *,␊ |
131 | ␉ ufs_daddr_t, ufs_daddr_t, int, int, kauth_cred_t, struct buf **);␊ |
132 | int␉ffs_reclaim(struct vnop_reclaim_args *);␊ |
133 | void␉ffs_setblock(struct fs *, u_char *, ufs_daddr_t);␊ |
134 | int␉ffs_vfs_getattr(struct mount *, struct vfs_attr *, vfs_context_t);␊ |
135 | int␉ffs_vfs_setattr(struct mount *, struct vfs_attr *, vfs_context_t);␊ |
136 | int␉ffs_sync(struct mount *, int, vfs_context_t);␊ |
137 | int␉ffs_sysctl(int *, u_int, user_addr_t, size_t *, user_addr_t, size_t, vfs_context_t);␊ |
138 | int␉ffs_unmount(struct mount *, int, vfs_context_t);␊ |
139 | int␉ffs_update(struct vnode *, struct timeval *, struct timeval *, int);␊ |
140 | int␉ffs_valloc(vnode_t dvp, mode_t mode, kauth_cred_t cred, vnode_t *vpp);␊ |
141 | int␉ffs_vfree(struct vnode *vp, ino_t ino, int mode);␊ |
142 | int␉ffs_vget(struct mount *, ino64_t, struct vnode **, vfs_context_t);␊ |
143 | int␉ffs_vptofh(struct vnode *, int *, unsigned char *, vfs_context_t);␊ |
144 | int␉ffs_write(struct vnop_write_args *);␊ |
145 | int ffs_pagein(struct vnop_pagein_args *);␊ |
146 | int ffs_pageout(struct vnop_pageout_args *);␊ |
147 | int ffs_blktooff(struct vnop_blktooff_args *);␊ |
148 | int ffs_offtoblk(struct vnop_offtoblk_args *);␊ |
149 | ␊ |
150 | __END_DECLS␊ |
151 | ␊ |
152 | extern int (**ffs_vnodeop_p)(void *);␊ |
153 | extern int (**ffs_specop_p)(void *);␊ |
154 | #if FIFO␊ |
155 | extern int (**ffs_fifoop_p)(void *);␊ |
156 | #define FFS_FIFOOPS ffs_fifoop_p␊ |
157 | #else␊ |
158 | #define FFS_FIFOOPS NULL␊ |
159 | #endif␊ |
160 | ␊ |
161 | #endif /* __APPLE_API_PRIVATE */␊ |
162 | #endif /* __UFS_FFS_FFS_EXTERN_H__ */␊ |
163 |