memdev.h revision 132956
19126SWyllys.Ingersoll@Sun.COM/*-
29126SWyllys.Ingersoll@Sun.COM * Copyright (c) 2004 Mark R V Murray
39126SWyllys.Ingersoll@Sun.COM * All rights reserved.
49126SWyllys.Ingersoll@Sun.COM *
59126SWyllys.Ingersoll@Sun.COM * Redistribution and use in source and binary forms, with or without
69126SWyllys.Ingersoll@Sun.COM * modification, are permitted provided that the following conditions
79126SWyllys.Ingersoll@Sun.COM * are met:
89126SWyllys.Ingersoll@Sun.COM * 1. Redistributions of source code must retain the above copyright
99126SWyllys.Ingersoll@Sun.COM *    notice, this list of conditions and the following disclaimer
109126SWyllys.Ingersoll@Sun.COM *    in this position and unchanged.
119126SWyllys.Ingersoll@Sun.COM * 2. Redistributions in binary form must reproduce the above copyright
129126SWyllys.Ingersoll@Sun.COM *    notice, this list of conditions and the following disclaimer in the
139126SWyllys.Ingersoll@Sun.COM *    documentation and/or other materials provided with the distribution.
149126SWyllys.Ingersoll@Sun.COM *
159126SWyllys.Ingersoll@Sun.COM * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
169126SWyllys.Ingersoll@Sun.COM * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
179126SWyllys.Ingersoll@Sun.COM * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
189126SWyllys.Ingersoll@Sun.COM * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
199126SWyllys.Ingersoll@Sun.COM * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
209126SWyllys.Ingersoll@Sun.COM * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
219126SWyllys.Ingersoll@Sun.COM * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
229126SWyllys.Ingersoll@Sun.COM * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
239126SWyllys.Ingersoll@Sun.COM * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
249126SWyllys.Ingersoll@Sun.COM * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
259126SWyllys.Ingersoll@Sun.COM *
269126SWyllys.Ingersoll@Sun.COM * $FreeBSD: head/sys/ia64/include/memdev.h 132956 2004-08-01 11:40:54Z markm $
279126SWyllys.Ingersoll@Sun.COM */
289126SWyllys.Ingersoll@Sun.COM
299126SWyllys.Ingersoll@Sun.COM#define CDEV_MAJOR	2
309126SWyllys.Ingersoll@Sun.COM#define	CDEV_MINOR_MEM	0
319126SWyllys.Ingersoll@Sun.COM#define	CDEV_MINOR_KMEM	1
329126SWyllys.Ingersoll@Sun.COM
339126SWyllys.Ingersoll@Sun.COMd_open_t	memopen;
349126SWyllys.Ingersoll@Sun.COMd_read_t	memrw;
359126SWyllys.Ingersoll@Sun.COM#define		memioctl	(d_ioctl_t *)NULL;
369126SWyllys.Ingersoll@Sun.COMd_mmap_t	memmmap;
379126SWyllys.Ingersoll@Sun.COM
389126SWyllys.Ingersoll@Sun.COMvoid		dev_mem_md_init(void);
399126SWyllys.Ingersoll@Sun.COM