1137362Scognet/*-
2137362Scognet * Copyright (c) 2004 Mark R V Murray
3137362Scognet * All rights reserved.
4137362Scognet *
5137362Scognet * Redistribution and use in source and binary forms, with or without
6137362Scognet * modification, are permitted provided that the following conditions
7137362Scognet * are met:
8137362Scognet * 1. Redistributions of source code must retain the above copyright
9137362Scognet *    notice, this list of conditions and the following disclaimer
10137362Scognet *    in this position and unchanged.
11137362Scognet * 2. Redistributions in binary form must reproduce the above copyright
12137362Scognet *    notice, this list of conditions and the following disclaimer in the
13137362Scognet *    documentation and/or other materials provided with the distribution.
14137362Scognet *
15137362Scognet * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16137362Scognet * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17137362Scognet * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18137362Scognet * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19137362Scognet * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20137362Scognet * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21137362Scognet * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22137362Scognet * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23137362Scognet * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24137362Scognet * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25137362Scognet *
26137362Scognet * $FreeBSD$
27137362Scognet */
28137362Scognet
29217515Sjkim#ifndef _MACHINE_MEMDEV_H_
30217515Sjkim#define	_MACHINE_MEMDEV_H_
31217515Sjkim
32137362Scognet#define	CDEV_MINOR_MEM	0
33137362Scognet#define	CDEV_MINOR_KMEM	1
34137362Scognet
35137362Scognetd_open_t	memopen;
36137362Scognetd_read_t	memrw;
37137362Scognetd_mmap_t	memmmap;
38137362Scognet#define		memioctl	(d_ioctl_t *)NULL
39137362Scognet
40217515Sjkim#endif /* _MACHINE_MEMDEV_H_ */
41