1178172Simp/*-
2178172Simp * Copyright (c) 2004 Mark R V Murray
3178172Simp * All rights reserved.
4178172Simp *
5178172Simp * Redistribution and use in source and binary forms, with or without
6178172Simp * modification, are permitted provided that the following conditions
7178172Simp * are met:
8178172Simp * 1. Redistributions of source code must retain the above copyright
9178172Simp *    notice, this list of conditions and the following disclaimer
10178172Simp *    in this position and unchanged.
11178172Simp * 2. Redistributions in binary form must reproduce the above copyright
12178172Simp *    notice, this list of conditions and the following disclaimer in the
13178172Simp *    documentation and/or other materials provided with the distribution.
14178172Simp *
15178172Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
16178172Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17178172Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18178172Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19178172Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20178172Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21178172Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22178172Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23178172Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24178172Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25178172Simp *
26178172Simp *	from: src/sys/alpha/include/memdev.h,v 1.2 2004/08/01 18:51:44 markm
27178172Simp * $FreeBSD$
28178172Simp */
29178172Simp
30217515Sjkim#ifndef _MACHINE_MEMDEV_H_
31217515Sjkim#define	_MACHINE_MEMDEV_H_
32217515Sjkim
33178172Simp#define	CDEV_MINOR_MEM	0
34211862Sjchandra#define	CDEV_MINOR_KMEM	1
35178172Simp
36178172Simpd_open_t	memopen;
37178172Simpd_read_t	memrw;
38178172Simp#define		memioctl	(d_ioctl_t *)NULL
39178172Simpd_mmap_t	memmmap;
40178172Simp
41217515Sjkim#endif /* _MACHINE_MEMDEV_H_ */
42