1*8eadc5ecSjsg /* $OpenBSD: conf.h,v 1.11 2024/09/04 07:45:08 jsg Exp $ */ 2f5df1827Smickey /* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */ 3f5df1827Smickey 4f5df1827Smickey /* 5f5df1827Smickey * Copyright (c) 1996 Christos Zoulas. All rights reserved. 6f5df1827Smickey * 7f5df1827Smickey * Redistribution and use in source and binary forms, with or without 8f5df1827Smickey * modification, are permitted provided that the following conditions 9f5df1827Smickey * are met: 10f5df1827Smickey * 1. Redistributions of source code must retain the above copyright 11f5df1827Smickey * notice, this list of conditions and the following disclaimer. 12f5df1827Smickey * 2. Redistributions in binary form must reproduce the above copyright 13f5df1827Smickey * notice, this list of conditions and the following disclaimer in the 14f5df1827Smickey * documentation and/or other materials provided with the distribution. 15f5df1827Smickey * 3. All advertising materials mentioning features or use of this software 16f5df1827Smickey * must display the following acknowledgement: 17f5df1827Smickey * This product includes software developed by Christos Zoulas. 18f5df1827Smickey * 4. The name of the author may not be used to endorse or promote products 19f5df1827Smickey * derived from this software without specific prior written permission. 20f5df1827Smickey * 21f5df1827Smickey * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 22f5df1827Smickey * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 23f5df1827Smickey * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 24f5df1827Smickey * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 25f5df1827Smickey * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 26f5df1827Smickey * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27f5df1827Smickey * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28f5df1827Smickey * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29f5df1827Smickey * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30f5df1827Smickey * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31f5df1827Smickey */ 32f5df1827Smickey 33f5df1827Smickey #include <sys/conf.h> 34f5df1827Smickey 35f5df1827Smickey #define mmread mmrw 36f5df1827Smickey #define mmwrite mmrw 37f5df1827Smickey cdev_decl(mm); 38f5df1827Smickey 39f5df1827Smickey bdev_decl(fd); 40f5df1827Smickey cdev_decl(fd); 41f5df1827Smickey 42f5df1827Smickey cdev_decl(spkr); 43f5df1827Smickey 44f5df1827Smickey cdev_decl(bios); 457934d707Stholo 467934d707Stholo #define cdev_acpi_init(c,n) {\ 477934d707Stholo dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ 487934d707Stholo (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ 492ad04261Svisa (dev_type_stop((*))) enodev, 0, \ 50e2ca5dd4Snicm (dev_type_mmap((*))) enodev, 0, 0, dev_init(c,n,kqfilter) } 517934d707Stholo cdev_decl(acpi); 52a456bd90Sderaadt 53a456bd90Sderaadt cdev_decl(pctr); 548bc79b23Sreyk 558bc79b23Sreyk #include "vmm.h" 568bc79b23Sreyk cdev_decl(vmm); 5789961ef8Sbluhm 58*8eadc5ecSjsg #include "psp.h" 5989961ef8Sbluhm cdev_decl(psp); 60