1 /*-
2 * Copyright (c) 2009
3 * Thorsten Glaser <tg@mirbsd.org>
4 *
5 * Provided that these terms and disclaimer and all copyright notices
6 * are retained or reproduced in an accompanying document, permission
7 * is granted to deal in this work without restriction, including un-
8 * limited rights to use, publicly perform, distribute, sell, modify,
9 * merge, give away, or sublicence.
10 *
11 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
12 * the utmost extent permitted by applicable law, neither express nor
13 * implied; without malicious intent or gross negligence. In no event
14 * may a licensor, author or contributor be held liable for indirect,
15 * direct, other damage, loss, or other issues arising in any way out
16 * of dealing in the work, even if advised of the possibility of such
17 * damage or existence of a defect, except proven that it results out
18 * of said person's immediate fault when using the work as intended.
19 */
20
21 #include <sys/param.h>
22 #include <sys/time.h>
23 #include <sys/stat.h>
24 #include <sys/slibkern.h>
25 #include <lib/libsa/stand.h>
26 #include <lib/libsa/dummydev.h>
27
28 __RCSID("$MirOS: src/sys/lib/libsa/dummydev.c,v 1.1 2009/12/26 15:06:15 tg Exp $");
29
30 int
dummydev_strategy(void * devdata,int rw,daddr_t blk,size_t size,void * buf,size_t * rsize)31 dummydev_strategy(void *devdata, int rw, daddr_t blk, size_t size, void *buf,
32 size_t *rsize)
33 {
34 return (EIO);
35 }
36
37 int
dummydev_open(struct open_file * f,...)38 dummydev_open(struct open_file *f, ...)
39 {
40 return (0);
41 }
42
43 int
dummydev_close(struct open_file * f)44 dummydev_close(struct open_file *f)
45 {
46 return (0);
47 }
48
49 int
dummydev_ioctl(struct open_file * f,u_long cmd,void * data)50 dummydev_ioctl(struct open_file *f, u_long cmd, void *data)
51 {
52 return (EIO);
53 }
54