memdev.h revision 217515
154359Sroberto/*-
254359Sroberto * Copyright (c) 2004 Mark R V Murray
354359Sroberto * All rights reserved.
454359Sroberto *
554359Sroberto * Redistribution and use in source and binary forms, with or without
654359Sroberto * modification, are permitted provided that the following conditions
754359Sroberto * are met:
854359Sroberto * 1. Redistributions of source code must retain the above copyright
954359Sroberto *    notice, this list of conditions and the following disclaimer
1054359Sroberto *    in this position and unchanged.
1154359Sroberto * 2. Redistributions in binary form must reproduce the above copyright
1282498Sroberto *    notice, this list of conditions and the following disclaimer in the
1354359Sroberto *    documentation and/or other materials provided with the distribution.
1454359Sroberto *
1554359Sroberto * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
1654359Sroberto * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1754359Sroberto * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1854359Sroberto * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1954359Sroberto * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2054359Sroberto * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2154359Sroberto * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2254359Sroberto * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2354359Sroberto * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2454359Sroberto * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2554359Sroberto *
2654359Sroberto * $FreeBSD: head/sys/amd64/include/memdev.h 217515 2011-01-17 22:58:28Z jkim $
2754359Sroberto */
2854359Sroberto
2954359Sroberto#ifndef _MACHINE_MEMDEV_H_
3054359Sroberto#define	_MACHINE_MEMDEV_H_
3154359Sroberto
3254359Sroberto#define	CDEV_MINOR_MEM	0
3354359Sroberto#define	CDEV_MINOR_KMEM	1
3454359Sroberto
3554359Srobertod_open_t	memopen;
3654359Srobertod_read_t	memrw;
3754359Srobertod_ioctl_t	memioctl;
3854359Srobertod_mmap_t	memmmap;
3954359Sroberto
4054359Sroberto#endif /* _MACHINE_MEMDEV_H_ */
4154359Sroberto