1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/isa/vga_isa.c 111815 2003-03-03 12:15:54Z phk $ |
27 */ 28 29#include "opt_vga.h" 30#include "opt_fb.h" 31#include "opt_syscons.h" /* should be removed in the future, XXX */ 32 33#include <sys/param.h> 34#include <sys/systm.h> --- 29 unchanged lines hidden (view full) --- 64static d_open_t isavga_open; 65static d_close_t isavga_close; 66static d_read_t isavga_read; 67static d_write_t isavga_write; 68static d_ioctl_t isavga_ioctl; 69static d_mmap_t isavga_mmap; 70 71static struct cdevsw isavga_cdevsw = { |
72 .d_open = isavga_open, 73 .d_close = isavga_close, 74 .d_read = isavga_read, 75 .d_write = isavga_write, 76 .d_ioctl = isavga_ioctl, 77 .d_mmap = isavga_mmap, 78 .d_name = VGA_DRIVER_NAME, 79 .d_maj = -1, |
80}; 81 82#endif /* FB_INSTALL_CDEV */ 83 84static void 85isavga_identify(driver_t *driver, device_t parent) 86{ 87 BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, VGA_DRIVER_NAME, 0); --- 129 unchanged lines hidden --- |