1132956Smarkm/*-
2132956Smarkm * Copyright (c) 2004 Mark R V Murray
3132956Smarkm * All rights reserved.
4132956Smarkm *
5132956Smarkm * Redistribution and use in source and binary forms, with or without
6132956Smarkm * modification, are permitted provided that the following conditions
7132956Smarkm * are met:
8132956Smarkm * 1. Redistributions of source code must retain the above copyright
9132956Smarkm *    notice, this list of conditions and the following disclaimer
10132956Smarkm *    in this position and unchanged.
11132956Smarkm * 2. Redistributions in binary form must reproduce the above copyright
12132956Smarkm *    notice, this list of conditions and the following disclaimer in the
13132956Smarkm *    documentation and/or other materials provided with the distribution.
14132956Smarkm *
15132956Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16132956Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17132956Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18132956Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19132956Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20132956Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21132956Smarkm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22132956Smarkm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23132956Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24132956Smarkm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25132956Smarkm *
26132956Smarkm * $FreeBSD$
27132956Smarkm */
28132956Smarkm
29217515Sjkim#ifndef _MACHINE_MEMDEV_H_
30217515Sjkim#define	_MACHINE_MEMDEV_H_
31217515Sjkim
32132956Smarkm#define	CDEV_MINOR_MEM	0
33132956Smarkm#define	CDEV_MINOR_KMEM	1
34132956Smarkm
35132956Smarkmd_open_t	memopen;
36132956Smarkmd_read_t	memrw;
37132956Smarkmd_ioctl_t	memioctl;
38132956Smarkmd_mmap_t	memmmap;
39132956Smarkm
40217515Sjkim#endif /* _MACHINE_MEMDEV_H_ */
41