home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: /ax/networking:include/sys/conf.h:networking 1.1 $
- * $Source: /ax/networking:include/sys/conf.h: $
- *
- * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
- *
- * $Log: conf.h,v $
- * Revision 1.1 95/01/11 10:19:02 kwelton
- * Initial revision
- *
- * Revision 1.3 88/06/17 20:18:33 beta
- * Acorn Unix initial beta version
- *
- */
- /* @(#)conf.h 1.3 87/05/15 3.2/4.3NFSSRC */
- /*
- * Copyright (c) 1982, 1986 Regents of the University of California.
- * All rights reserved. The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
- *
- * @(#)conf.h 7.1 (Berkeley) 6/4/86
- */
-
- /*
- * Declaration of block device
- * switch. Each entry (row) is
- * the only link between the
- * main unix code and the driver.
- * The initialization of the
- * device switches is in the
- * file conf.c.
- */
- struct bdevsw
- {
- int (*d_open)();
- int (*d_close)();
- int (*d_strategy)();
- int (*d_dump)();
- int (*d_psize)();
- int d_flags;
- char d_name[2];
- };
- #ifdef KERNEL
- extern struct bdevsw bdevsw[]; /* Added extern for specfs routines */
- #endif
-
- /*
- * Character device switch.
- */
- struct cdevsw
- {
- int (*d_open)();
- int (*d_close)();
- int (*d_read)();
- int (*d_write)();
- int (*d_ioctl)();
- int (*d_stop)();
- int (*d_reset)();
- struct tty *d_ttys;
- int (*d_select)();
- int (*d_mmap)();
- int (*d_sectorsize)();
- };
- #ifdef KERNEL
- extern struct cdevsw cdevsw[]; /* Added extern for specfs routines */
- #endif
-
- /*
- * tty line control switch.
- */
- struct linesw
- {
- int (*l_open)();
- int (*l_close)();
- int (*l_read)();
- int (*l_write)();
- int (*l_ioctl)();
- int (*l_rint)();
- int (*l_rend)();
- int (*l_meta)();
- int (*l_start)();
- int (*l_modem)();
- };
- #ifdef KERNEL
- struct linesw linesw[];
- #endif
-
- /*
- * Swap device information
- */
- struct swdevt
- {
- dev_t sw_dev;
- int sw_freed;
- int sw_nblks;
- };
- #ifdef KERNEL
- struct swdevt swdevt[];
- #endif
-
- /* EOF conf.h */
-