1262152Sluigi/*-
2262152Sluigi * Copyright (c) 2000 Brian Somers <brian@Awfulhak.org>
3262152Sluigi * All rights reserved.
4262152Sluigi *
5262152Sluigi * Redistribution and use in source and binary forms, with or without
6262152Sluigi * modification, are permitted provided that the following conditions
7262152Sluigi * are met:
8262152Sluigi * 1. Redistributions of source code must retain the above copyright
9262152Sluigi *    notice, this list of conditions and the following disclaimer.
10262152Sluigi * 2. Redistributions in binary form must reproduce the above copyright
11262152Sluigi *    notice, this list of conditions and the following disclaimer in the
12262152Sluigi *    documentation and/or other materials provided with the distribution.
13262152Sluigi *
14262152Sluigi * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15262152Sluigi * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16262152Sluigi * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17262152Sluigi * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18262152Sluigi * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19262152Sluigi * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20262152Sluigi * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21262152Sluigi * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22262152Sluigi * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23262152Sluigi * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24262152Sluigi * SUCH DAMAGE.
25262152Sluigi *
26262152Sluigi * $FreeBSD$
27262152Sluigi */
28262152Sluigi
29262152Sluigistruct physical;
30262152Sluigistruct device;
31262152Sluigi
32262152Sluigi#define DEF_NGCDDELAY	5	/* Default ``set cd'' value */
33262152Sluigi
34262152Sluigiextern struct device *ng_Create(struct physical *);
35262152Sluigiextern struct device *ng_iov2device(int, struct physical *, struct iovec *,
36262152Sluigi                                    int *, int, int *, int *);
37262152Sluigiextern unsigned ng_DeviceSize(void);
38262152Sluigi