Deleted Added
full compact
conf.h (81068) conf.h (83366)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 2000
5 * Poul-Henning Kamp. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

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

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)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 * Copyright (c) 2000
5 * Poul-Henning Kamp. All rights reserved.
6 * (c) UNIX System Laboratories, Inc.
7 * All or some portions of this file are derived from material licensed
8 * to the University of California by American Telephone and Telegraph

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

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)conf.h 8.5 (Berkeley) 1/9/95
41 * $FreeBSD: head/sys/sys/conf.h 81068 2001-08-02 20:35:35Z imp $
41 * $FreeBSD: head/sys/sys/conf.h 83366 2001-09-12 08:38:13Z julian $
42 */
43
44#ifndef _SYS_CONF_H_
45#define _SYS_CONF_H_
46
47#ifdef _KERNEL
48#include <sys/eventhandler.h>
49

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

105#define SPECHASH(rdev) (((unsigned)(minor(rdev)))%SPECHSZ)
106
107/*
108 * Definitions of device driver entry switches
109 */
110
111struct bio;
112struct buf;
42 */
43
44#ifndef _SYS_CONF_H_
45#define _SYS_CONF_H_
46
47#ifdef _KERNEL
48#include <sys/eventhandler.h>
49

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

105#define SPECHASH(rdev) (((unsigned)(minor(rdev)))%SPECHSZ)
106
107/*
108 * Definitions of device driver entry switches
109 */
110
111struct bio;
112struct buf;
113struct proc;
113struct thread;
114struct uio;
115struct knote;
116
114struct uio;
115struct knote;
116
117typedef int d_open_t __P((dev_t dev, int oflags, int devtype, struct proc *p));
118typedef int d_close_t __P((dev_t dev, int fflag, int devtype, struct proc *p));
117typedef int d_open_t __P((dev_t dev, int oflags, int devtype, struct thread *td));
118typedef int d_close_t __P((dev_t dev, int fflag, int devtype, struct thread *td));
119typedef void d_strategy_t __P((struct bio *bp));
120typedef int d_ioctl_t __P((dev_t dev, u_long cmd, caddr_t data,
119typedef void d_strategy_t __P((struct bio *bp));
120typedef int d_ioctl_t __P((dev_t dev, u_long cmd, caddr_t data,
121 int fflag, struct proc *p));
121 int fflag, struct thread *td));
122typedef int d_dump_t __P((dev_t dev));
123typedef int d_psize_t __P((dev_t dev));
124
125typedef int d_read_t __P((dev_t dev, struct uio *uio, int ioflag));
126typedef int d_write_t __P((dev_t dev, struct uio *uio, int ioflag));
122typedef int d_dump_t __P((dev_t dev));
123typedef int d_psize_t __P((dev_t dev));
124
125typedef int d_read_t __P((dev_t dev, struct uio *uio, int ioflag));
126typedef int d_write_t __P((dev_t dev, struct uio *uio, int ioflag));
127typedef int d_poll_t __P((dev_t dev, int events, struct proc *p));
127typedef int d_poll_t __P((dev_t dev, int events, struct thread *td));
128typedef int d_kqfilter_t __P((dev_t dev, struct knote *kn));
129typedef int d_mmap_t __P((dev_t dev, vm_offset_t offset, int nprot));
130
131typedef int l_open_t __P((dev_t dev, struct tty *tp));
132typedef int l_close_t __P((struct tty *tp, int flag));
133typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
134typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
135typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
128typedef int d_kqfilter_t __P((dev_t dev, struct knote *kn));
129typedef int d_mmap_t __P((dev_t dev, vm_offset_t offset, int nprot));
130
131typedef int l_open_t __P((dev_t dev, struct tty *tp));
132typedef int l_close_t __P((struct tty *tp, int flag));
133typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
134typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
135typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
136 int flag, struct proc *p));
136 int flag, struct thread *td));
137typedef int l_rint_t __P((int c, struct tty *tp));
138typedef int l_start_t __P((struct tty *tp));
139typedef int l_modem_t __P((struct tty *tp, int flag));
140
141/*
142 * XXX: The dummy argument can be used to do what strategy1() never
143 * did anywhere: Create a per device flag to lock the device during
144 * label/slice surgery, all calls with a dummy == 0 gets stalled on

--- 196 unchanged lines hidden ---
137typedef int l_rint_t __P((int c, struct tty *tp));
138typedef int l_start_t __P((struct tty *tp));
139typedef int l_modem_t __P((struct tty *tp, int flag));
140
141/*
142 * XXX: The dummy argument can be used to do what strategy1() never
143 * did anywhere: Create a per device flag to lock the device during
144 * label/slice surgery, all calls with a dummy == 0 gets stalled on

--- 196 unchanged lines hidden ---