1/* 2 * Copyright (c) 1999 FreeBSD(98) port team. 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/pc98/cbus/gdc.c 111815 2003-03-03 12:15:54Z phk $ |
29 */ 30 31#include "opt_gdc.h" 32#include "opt_fb.h" 33#include "opt_syscons.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> --- 60 unchanged lines hidden (view full) --- 97static d_open_t gdcopen; 98static d_close_t gdcclose; 99static d_read_t gdcread; 100static d_write_t gdcwrite; 101static d_ioctl_t gdcioctl; 102static d_mmap_t gdcmmap; 103 104static struct cdevsw gdc_cdevsw = { |
105 .d_open = gdcopen, 106 .d_close = gdcclose, 107 .d_read = gdcread, 108 .d_write = gdcwrite, 109 .d_ioctl = gdcioctl, 110 .d_mmap = gdcmmap, 111 .d_name = DRIVER_NAME, 112 .d_maj = -1, |
113}; 114 115#endif /* FB_INSTALL_CDEV */ 116 117static void 118gdc_identify(driver_t *driver, device_t parent) 119{ 120 BUS_ADD_CHILD(parent, ISA_ORDER_SPECULATIVE, DRIVER_NAME, 0); --- 1323 unchanged lines hidden --- |