memdev.h revision 132965
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: head/sys/ia64/include/memdev.h 132965 2004-08-01 18:51:44Z markm $ 27132956Smarkm */ 28132956Smarkm 29132956Smarkm#define CDEV_MAJOR 2 30132956Smarkm#define CDEV_MINOR_MEM 0 31132956Smarkm#define CDEV_MINOR_KMEM 1 32132956Smarkm 33132956Smarkmd_open_t memopen; 34132956Smarkmd_read_t memrw; 35132965Smarkm#define memioctl (d_ioctl_t *)NULL 36132956Smarkmd_mmap_t memmmap; 37132956Smarkm 38132956Smarkmvoid dev_mem_md_init(void); 39