ia64/linux-2.6.18-xen.hg

annotate drivers/char/rio/rioinfo.h @ 893:f994bfe9b93b

linux/blktap2: reduce TLB flush scope

c/s 885 added very coarse TLB flushing. Since these flushes always
follow single page updates, single page flushes (when available) are
sufficient.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 04 10:32:57 2009 +0100 (2009-06-04)
parents 831230e53067
children
rev   line source
ian@0 1 /*
ian@0 2 ** -----------------------------------------------------------------------------
ian@0 3 **
ian@0 4 ** Perle Specialix driver for Linux
ian@0 5 ** Ported from existing RIO Driver for SCO sources.
ian@0 6 *
ian@0 7 * (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
ian@0 8 *
ian@0 9 * This program is free software; you can redistribute it and/or modify
ian@0 10 * it under the terms of the GNU General Public License as published by
ian@0 11 * the Free Software Foundation; either version 2 of the License, or
ian@0 12 * (at your option) any later version.
ian@0 13 *
ian@0 14 * This program is distributed in the hope that it will be useful,
ian@0 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ian@0 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ian@0 17 * GNU General Public License for more details.
ian@0 18 *
ian@0 19 * You should have received a copy of the GNU General Public License
ian@0 20 * along with this program; if not, write to the Free Software
ian@0 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
ian@0 22 **
ian@0 23 ** Module : rioinfo.h
ian@0 24 ** SID : 1.2
ian@0 25 ** Last Modified : 11/6/98 14:07:49
ian@0 26 ** Retrieved : 11/6/98 14:07:50
ian@0 27 **
ian@0 28 ** ident @(#)rioinfo.h 1.2
ian@0 29 **
ian@0 30 ** -----------------------------------------------------------------------------
ian@0 31 */
ian@0 32
ian@0 33 #ifndef __rioinfo_h
ian@0 34 #define __rioinfo_h
ian@0 35
ian@0 36 #ifdef SCCS_LABELS
ian@0 37 static char *_rioinfo_h_sccs_ = "@(#)rioinfo.h 1.2";
ian@0 38 #endif
ian@0 39
ian@0 40 /*
ian@0 41 ** Host card data structure
ian@0 42 */
ian@0 43 struct RioHostInfo {
ian@0 44 long location; /* RIO Card Base I/O address */
ian@0 45 long vector; /* RIO Card IRQ vector */
ian@0 46 int bus; /* ISA/EISA/MCA/PCI */
ian@0 47 int mode; /* pointer to host mode - INTERRUPT / POLLED */
ian@0 48 struct old_sgttyb
ian@0 49 *Sg; /* pointer to default term characteristics */
ian@0 50 };
ian@0 51
ian@0 52
ian@0 53 /* Mode in rio device info */
ian@0 54 #define INTERRUPTED_MODE 0x01 /* Interrupt is generated */
ian@0 55 #define POLLED_MODE 0x02 /* No interrupt */
ian@0 56 #define AUTO_MODE 0x03 /* Auto mode */
ian@0 57
ian@0 58 #define WORD_ACCESS_MODE 0x10 /* Word Access Mode */
ian@0 59 #define BYTE_ACCESS_MODE 0x20 /* Byte Access Mode */
ian@0 60
ian@0 61
ian@0 62 /* Bus type that RIO supports */
ian@0 63 #define ISA_BUS 0x01 /* The card is ISA */
ian@0 64 #define EISA_BUS 0x02 /* The card is EISA */
ian@0 65 #define MCA_BUS 0x04 /* The card is MCA */
ian@0 66 #define PCI_BUS 0x08 /* The card is PCI */
ian@0 67
ian@0 68 /*
ian@0 69 ** 11.11.1998 ARG - ESIL ???? part fix
ian@0 70 ** Moved definition for 'CHAN' here from rioinfo.c (it is now
ian@0 71 ** called 'DEF_TERM_CHARACTERISTICS').
ian@0 72 */
ian@0 73
ian@0 74 #define DEF_TERM_CHARACTERISTICS \
ian@0 75 { \
ian@0 76 B19200, B19200, /* input and output speed */ \
ian@0 77 'H' - '@', /* erase char */ \
ian@0 78 -1, /* 2nd erase char */ \
ian@0 79 'U' - '@', /* kill char */ \
ian@0 80 ECHO | CRMOD, /* mode */ \
ian@0 81 'C' - '@', /* interrupt character */ \
ian@0 82 '\\' - '@', /* quit char */ \
ian@0 83 'Q' - '@', /* start char */ \
ian@0 84 'S' - '@', /* stop char */ \
ian@0 85 'D' - '@', /* EOF */ \
ian@0 86 -1, /* brk */ \
ian@0 87 (LCRTBS | LCRTERA | LCRTKIL | LCTLECH), /* local mode word */ \
ian@0 88 'Z' - '@', /* process stop */ \
ian@0 89 'Y' - '@', /* delayed stop */ \
ian@0 90 'R' - '@', /* reprint line */ \
ian@0 91 'O' - '@', /* flush output */ \
ian@0 92 'W' - '@', /* word erase */ \
ian@0 93 'V' - '@' /* literal next char */ \
ian@0 94 }
ian@0 95
ian@0 96 #endif /* __rioinfo_h */