Deleted Added
full compact
conf.h (50092) conf.h (50254)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)conf.h 8.5 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)conf.h 8.5 (Berkeley) 1/9/95
39 * $Id: conf.h,v 1.75 1999/08/17 20:25:48 billf Exp $
39 * $Id: conf.h,v 1.76 1999/08/20 20:24:59 julian Exp $
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45#include <sys/queue.h>
46
47#define SPECNAMELEN 15
48
49struct tty;
50struct vnode;
51
52struct specinfo {
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45#include <sys/queue.h>
46
47#define SPECNAMELEN 15
48
49struct tty;
50struct vnode;
51
52struct specinfo {
53 struct mount *si_mountpoint;
54 int si_bsize_phys; /* minimum physical block size */
55 int si_bsize_best; /* optimal block size / VBLK */
56 int si_bsize_max; /* maximum block size */
57
58 udev_t si_udev;
59 SLIST_ENTRY(specinfo) si_hash;
60 struct vnode *si_hlist;
61 char si_name[SPECNAMELEN + 1];
62 void *si_drv1, *si_drv2;
63 struct cdevsw *si_devsw;
64 void *si_devfs; /* save cookie for devfs operations */
65 union {
66 struct {
67 struct tty *__sit_tty;
68 } __si_tty;
53
54 udev_t si_udev;
55 SLIST_ENTRY(specinfo) si_hash;
56 struct vnode *si_hlist;
57 char si_name[SPECNAMELEN + 1];
58 void *si_drv1, *si_drv2;
59 struct cdevsw *si_devsw;
60 void *si_devfs; /* save cookie for devfs operations */
61 union {
62 struct {
63 struct tty *__sit_tty;
64 } __si_tty;
65 struct {
66 struct mount *__sid_mountpoint;
67 int __sid_bsize_phys; /* min physical block size */
68 int __sid_bsize_best; /* optimal block size */
69 int __sid_bsize_max; /* maximum block size */
70 } __si_disk;
69 } __si_u;
70};
71
72#define si_tty_tty __si_u.__si_tty.__sit_tty
71 } __si_u;
72};
73
74#define si_tty_tty __si_u.__si_tty.__sit_tty
75#define si_mountpoint __si_u.__si_disk.__sid_mountpoint
76#define si_bsize_phys __si_u.__si_disk.__sid_bsize_phys
77#define si_bsize_best __si_u.__si_disk.__sid_bsize_best
78#define si_bsize_max __si_u.__si_disk.__sid_bsize_max
73
74/*
75 * Exported shorthand
76 */
77#define v_hashchain v_rdev->si_hlist
78#define v_specmountpoint v_rdev->si_mountpoint
79
80/*

--- 32 unchanged lines hidden (view full) ---

113typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
114typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
115typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
116 int flag, struct proc *p));
117typedef int l_rint_t __P((int c, struct tty *tp));
118typedef int l_start_t __P((struct tty *tp));
119typedef int l_modem_t __P((struct tty *tp, int flag));
120
79
80/*
81 * Exported shorthand
82 */
83#define v_hashchain v_rdev->si_hlist
84#define v_specmountpoint v_rdev->si_mountpoint
85
86/*

--- 32 unchanged lines hidden (view full) ---

119typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
120typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
121typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
122 int flag, struct proc *p));
123typedef int l_rint_t __P((int c, struct tty *tp));
124typedef int l_start_t __P((struct tty *tp));
125typedef int l_modem_t __P((struct tty *tp, int flag));
126
127/* This is type of the function DEVFS uses to hook into the kernel with */
128typedef void devfs_create_t __P((dev_t dev, uid_t uid, gid_t gid, int perms));
129
121/*
122 * XXX: The dummy argument can be used to do what strategy1() never
123 * did anywhere: Create a per device flag to lock the device during
124 * label/slice surgery, all calls with a dummy == 0 gets stalled on
125 * a queue somewhere, whereas dummy == 1 are let through. Once out
126 * of surgery, reset the flag and restart all the stuff on the stall
127 * queue.
128 */

--- 138 unchanged lines hidden (view full) ---

267char *devtoname __P((dev_t dev));
268int iskmemdev __P((dev_t dev));
269int iszerodev __P((dev_t dev));
270dev_t makebdev __P((int maj, int min));
271dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
272int lminor __P((dev_t dev));
273void setconf __P((void));
274
130/*
131 * XXX: The dummy argument can be used to do what strategy1() never
132 * did anywhere: Create a per device flag to lock the device during
133 * label/slice surgery, all calls with a dummy == 0 gets stalled on
134 * a queue somewhere, whereas dummy == 1 are let through. Once out
135 * of surgery, reset the flag and restart all the stuff on the stall
136 * queue.
137 */

--- 138 unchanged lines hidden (view full) ---

276char *devtoname __P((dev_t dev));
277int iskmemdev __P((dev_t dev));
278int iszerodev __P((dev_t dev));
279dev_t makebdev __P((int maj, int min));
280dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
281int lminor __P((dev_t dev));
282void setconf __P((void));
283
284extern devfs_create_t *devfs_create_hook;
285
275/*
276 * XXX: This included for when DEVFS resurfaces
277 */
278
279#define UID_ROOT 0
280#define UID_BIN 3
281#define UID_UUCP 66
282
283#define GID_WHEEL 0
284#define GID_KMEM 2
285#define GID_OPERATOR 5
286#define GID_BIN 7
287#define GID_GAMES 13
288#define GID_DIALER 68
289
290#endif /* KERNEL */
291
292#endif /* !_SYS_CONF_H_ */
286/*
287 * XXX: This included for when DEVFS resurfaces
288 */
289
290#define UID_ROOT 0
291#define UID_BIN 3
292#define UID_UUCP 66
293
294#define GID_WHEEL 0
295#define GID_KMEM 2
296#define GID_OPERATOR 5
297#define GID_BIN 7
298#define GID_GAMES 13
299#define GID_DIALER 68
300
301#endif /* KERNEL */
302
303#endif /* !_SYS_CONF_H_ */