1103285Sikob/*	$NetBSD: cgd_rumpops.c,v 1.1 2009/12/19 15:03:34 pooka Exp $	*/
2103285Sikob
3103285Sikob/*
4103285Sikob * Copyright (c) 2009 The NetBSD Foundation, Inc.
5103285Sikob * All rights reserved.
6103285Sikob *
7103285Sikob * Redistribution and use in source and binary forms, with or without
8103285Sikob * modification, are permitted provided that the following conditions
9103285Sikob * are met:
10103285Sikob * 1. Redistributions of source code must retain the above copyright
11103285Sikob *    notice, this list of conditions and the following disclaimer.
12103285Sikob * 2. Redistributions in binary form must reproduce the above copyright
13103285Sikob *    notice, this list of conditions and the following disclaimer in the
14103285Sikob *    documentation and/or other materials provided with the distribution.
15103285Sikob *
16103285Sikob * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17103285Sikob * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18103285Sikob * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19103285Sikob * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20103285Sikob * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21103285Sikob * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22103285Sikob * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23103285Sikob * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24103285Sikob * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25103285Sikob * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26103285Sikob * POSSIBILITY OF SUCH DAMAGE.
27103285Sikob */
28103285Sikob
29103285Sikob#include <sys/cdefs.h>
30103285Sikob#ifndef lint
31103285Sikob__RCSID("$NetBSD: cgd_rumpops.c,v 1.1 2009/12/19 15:03:34 pooka Exp $");
32103285Sikob#endif /* !lint */
33103285Sikob
34103285Sikob#include <sys/types.h>
35103285Sikob#include <sys/ioctl.h>
36103285Sikob
37103285Sikob#include <rump/rump.h>
38103285Sikob#include <rump/rump_syscalls.h>
39103285Sikob#include <rump/rumpclient.h>
40103285Sikob
41103285Sikob#include "prog_ops.h"
42103285Sikob
43103285Sikobconst struct prog_ops prog_ops = {
44103285Sikob	.op_init =	rumpclient_init,
45103285Sikob	.op_open =	rump_sys_open,
46103285Sikob	.op_ioctl =	rump_sys_ioctl,
47103285Sikob	.op_pread =	rump_sys_pread,
48103285Sikob	.op_close =	rump_sys_close,
49103285Sikob};
50108701Ssimokawa