source: rtems/cpukit/libnetworking/sys/conf.h @ 72cbfbb3

4.104.114.84.95
Last change on this file since 72cbfbb3 was 72cbfbb3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/18/07 at 07:56:34

2007-03-18 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/sys/conf.h: Remove non-implemented/unused symbols.
  • Property mode set to 100644
File size: 4.5 KB
Line 
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.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 *    notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 *    notice, this list of conditions and the following disclaimer in the
17 *    documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 *    must display the following acknowledgement:
20 *      This product includes software developed by the University of
21 *      California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 *    may be used to endorse or promote products derived from this software
24 *    without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
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$
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45/*
46 * Definitions of device driver entry switches
47 */
48
49struct buf;
50struct proc;
51struct tty;
52struct uio;
53struct vnode;
54
55typedef int d_open_t(dev_t dev, int oflags, int devtype, struct proc *p);
56typedef int d_close_t(dev_t dev, int fflag, int devtype, struct proc *p);
57typedef void d_strategy_t(struct buf *bp);
58typedef int d_ioctl_t(dev_t dev, int cmd, caddr_t data,
59                           int fflag, struct proc *p);
60typedef int d_dump_t(dev_t dev);
61typedef int d_psize_t(dev_t dev);
62
63typedef int d_read_t(dev_t dev, struct uio *uio, int ioflag);
64typedef int d_write_t(dev_t dev, struct uio *uio, int ioflag);
65typedef void d_stop_t(struct tty *tp, int rw);
66typedef int d_reset_t(dev_t dev);
67typedef struct tty *d_devtotty_t(dev_t dev);
68typedef int d_select_t(dev_t dev, int which, struct proc *p);
69typedef int d_mmap_t(dev_t dev, int offset, int nprot);
70
71typedef int l_open_t(dev_t dev, struct tty *tp);
72typedef int l_close_t(struct tty *tp, int flag);
73typedef int l_read_t(struct tty *tp, struct uio *uio, int flag);
74typedef int l_write_t(struct tty *tp, struct uio *uio, int flag);
75typedef int l_ioctl_t(struct tty *tp, int cmd, caddr_t data,
76                           int flag, struct proc *p);
77typedef int l_rint_t(int c, struct tty *tp);
78typedef int l_start_t(struct tty *tp);
79typedef int l_modem_t(struct tty *tp, int flag);
80
81/*
82 * Block device switch table
83 */
84struct bdevsw {
85        d_open_t        *d_open;
86        d_close_t       *d_close;
87        d_strategy_t    *d_strategy;
88        d_ioctl_t       *d_ioctl;
89        d_dump_t        *d_dump;
90        d_psize_t       *d_psize;
91        int             d_flags;
92        char            *d_name;        /* name of the driver e.g. audio */
93        struct cdevsw   *d_cdev;        /* cross pointer to the cdev */
94        int             d_maj;          /* the major number we were assigned */
95};
96
97#ifdef _KERNEL
98extern struct bdevsw *bdevsw[];
99#endif
100
101/*
102 * Character device switch table
103 */
104struct cdevsw {
105        d_open_t        *d_open;
106        d_close_t       *d_close;
107        d_read_t        *d_read;
108        d_write_t       *d_write;
109        d_ioctl_t       *d_ioctl;
110        d_stop_t        *d_stop;
111        d_reset_t       *d_reset;       /* XXX not used */
112        d_devtotty_t    *d_devtotty;
113        d_select_t      *d_select;
114        d_mmap_t        *d_mmap;
115        d_strategy_t    *d_strategy;
116        char            *d_name;        /* see above */
117        struct bdevsw   *d_bdev;
118        int             d_maj;
119};
120
121#ifdef _KERNEL
122extern struct cdevsw *cdevsw[];
123#endif
124
125/*
126 * Swap device table
127 */
128struct swdevt {
129        dev_t   sw_dev;
130        int     sw_flags;
131        int     sw_nblks;
132        struct  vnode *sw_vp;
133};
134#define SW_FREED        0x01
135#define SW_SEQUENTIAL   0x02
136#define sw_freed        sw_flags        /* XXX compat */
137
138#include <machine/conf.h>
139
140#endif /* !_SYS_CONF_H_ */
Note: See TracBrowser for help on using the repository browser.