Deleted Added
full compact
conf.h (58389) conf.h (59249)
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 * $FreeBSD: head/sys/sys/conf.h 58389 2000-03-20 16:28:35Z green $
39 * $FreeBSD: head/sys/sys/conf.h 59249 2000-04-15 05:54:02Z phk $
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45#include <sys/queue.h>
46
47#define SPECNAMELEN 15

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

92 */
93#define SPECHSZ 64
94#define SPECHASH(rdev) (((unsigned)(minor(rdev)))%SPECHSZ)
95
96/*
97 * Definitions of device driver entry switches
98 */
99
40 */
41
42#ifndef _SYS_CONF_H_
43#define _SYS_CONF_H_
44
45#include <sys/queue.h>
46
47#define SPECNAMELEN 15

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

92 */
93#define SPECHSZ 64
94#define SPECHASH(rdev) (((unsigned)(minor(rdev)))%SPECHSZ)
95
96/*
97 * Definitions of device driver entry switches
98 */
99
100struct bio;
100struct buf;
101struct proc;
102struct uio;
103
104typedef int d_open_t __P((dev_t dev, int oflags, int devtype, struct proc *p));
105typedef int d_close_t __P((dev_t dev, int fflag, int devtype, struct proc *p));
101struct buf;
102struct proc;
103struct uio;
104
105typedef int d_open_t __P((dev_t dev, int oflags, int devtype, struct proc *p));
106typedef int d_close_t __P((dev_t dev, int fflag, int devtype, struct proc *p));
106typedef void d_strategy_t __P((struct buf *bp));
107typedef void d_strategy_t __P((struct bio *bp));
107typedef int d_parms_t __P((dev_t dev, struct specinfo *sinfo, int ctl));
108typedef int d_ioctl_t __P((dev_t dev, u_long cmd, caddr_t data,
109 int fflag, struct proc *p));
110typedef int d_dump_t __P((dev_t dev));
111typedef int d_psize_t __P((dev_t dev));
112
113typedef int d_read_t __P((dev_t dev, struct uio *uio, int ioflag));
114typedef int d_write_t __P((dev_t dev, struct uio *uio, int ioflag));

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

136 * a queue somewhere, whereas dummy == 1 are let through. Once out
137 * of surgery, reset the flag and restart all the stuff on the stall
138 * queue.
139 */
140#define DEV_STRATEGY(bp, dummy) \
141 do { \
142 if ((!(bp)->b_iocmd) || ((bp)->b_iocmd & ((bp)->b_iocmd - 1))) \
143 Debugger("d_iocmd botch"); \
108typedef int d_parms_t __P((dev_t dev, struct specinfo *sinfo, int ctl));
109typedef int d_ioctl_t __P((dev_t dev, u_long cmd, caddr_t data,
110 int fflag, struct proc *p));
111typedef int d_dump_t __P((dev_t dev));
112typedef int d_psize_t __P((dev_t dev));
113
114typedef int d_read_t __P((dev_t dev, struct uio *uio, int ioflag));
115typedef int d_write_t __P((dev_t dev, struct uio *uio, int ioflag));

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

137 * a queue somewhere, whereas dummy == 1 are let through. Once out
138 * of surgery, reset the flag and restart all the stuff on the stall
139 * queue.
140 */
141#define DEV_STRATEGY(bp, dummy) \
142 do { \
143 if ((!(bp)->b_iocmd) || ((bp)->b_iocmd & ((bp)->b_iocmd - 1))) \
144 Debugger("d_iocmd botch"); \
144 (*devsw((bp)->b_dev)->d_strategy)(bp); \
145 (*devsw((bp)->b_dev)->d_strategy)(&(bp)->b_io); \
145 } while (0)
146
147/*
148 * Types for d_flags.
149 */
150#define D_TAPE 0x0001
151#define D_DISK 0x0002
152#define D_TTY 0x0004

--- 146 unchanged lines hidden ---
146 } while (0)
147
148/*
149 * Types for d_flags.
150 */
151#define D_TAPE 0x0001
152#define D_DISK 0x0002
153#define D_TTY 0x0004

--- 146 unchanged lines hidden ---