1/* 2 * Copyright (c) 1995 Ugen J.S.Antsilevich 3 * 4 * Redistribution and use in source forms, with and without modification, 5 * are permitted provided that this entire comment appears intact. 6 * 7 * Redistribution in binary form may occur without any restrictions. 8 * Obviously, it would be nice if you gave credit where credit is due 9 * but requiring it would be too onerous. 10 * 11 * This software is provided ``AS IS'' without any warranties of any kind. 12 * 13 * Snoop stuff. 14 * |
15 * $FreeBSD: head/sys/dev/snp/snp.c 111815 2003-03-03 12:15:54Z phk $ |
16 */ 17 18#include <sys/param.h> 19#include <sys/systm.h> 20#include <sys/filio.h> 21#include <sys/malloc.h> 22#include <sys/tty.h> 23#include <sys/conf.h> --- 9 unchanged lines hidden (view full) --- 33static d_close_t snpclose; 34static d_read_t snpread; 35static d_write_t snpwrite; 36static d_ioctl_t snpioctl; 37static d_poll_t snppoll; 38 39#define CDEV_MAJOR 53 40static struct cdevsw snp_cdevsw = { |
41 .d_open = snpopen, 42 .d_close = snpclose, 43 .d_read = snpread, 44 .d_write = snpwrite, 45 .d_ioctl = snpioctl, 46 .d_poll = snppoll, 47 .d_name = "snp", 48 .d_maj = CDEV_MAJOR, |
49}; 50 51static struct linesw snpdisc = { 52 ttyopen, snplclose, ttread, snplwrite, 53 l_nullioctl, ttyinput, ttstart, ttymodem 54}; 55 56/* --- 602 unchanged lines hidden --- |