193418Sbrian/*-
293418Sbrian * Copyright (c) 2000 Brian Somers <brian@Awfulhak.org>
393418Sbrian * All rights reserved.
493418Sbrian *
593418Sbrian * Redistribution and use in source and binary forms, with or without
693418Sbrian * modification, are permitted provided that the following conditions
793418Sbrian * are met:
893418Sbrian * 1. Redistributions of source code must retain the above copyright
993418Sbrian *    notice, this list of conditions and the following disclaimer.
1093418Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1193418Sbrian *    notice, this list of conditions and the following disclaimer in the
1293418Sbrian *    documentation and/or other materials provided with the distribution.
1393418Sbrian *
1493418Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1593418Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1693418Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1793418Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1893418Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1993418Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2093418Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2193418Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2293418Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2393418Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2493418Sbrian * SUCH DAMAGE.
2593418Sbrian *
2693418Sbrian * $FreeBSD$
2793418Sbrian */
2893418Sbrian
2993418Sbrianstruct physical;
3093418Sbrianstruct device;
3193418Sbrian
3293418Sbrian#define DEF_NGCDDELAY	5	/* Default ``set cd'' value */
3393418Sbrian
3493418Sbrianextern struct device *ng_Create(struct physical *);
3593418Sbrianextern struct device *ng_iov2device(int, struct physical *, struct iovec *,
3693418Sbrian                                    int *, int, int *, int *);
37134789Sbrianextern unsigned ng_DeviceSize(void);
38