ia64/linux-2.6.18-xen.hg

annotate drivers/char/rio/func.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 : func.h
ian@0 24 ** SID : 1.3
ian@0 25 ** Last Modified : 11/6/98 11:34:10
ian@0 26 ** Retrieved : 11/6/98 11:34:21
ian@0 27 **
ian@0 28 ** ident @(#)func.h 1.3
ian@0 29 **
ian@0 30 ** -----------------------------------------------------------------------------
ian@0 31 */
ian@0 32
ian@0 33 #ifndef __func_h_def
ian@0 34 #define __func_h_def
ian@0 35
ian@0 36 #include <linux/kdev_t.h>
ian@0 37
ian@0 38 #ifdef SCCS_LABELS
ian@0 39 #ifndef lint
ian@0 40 static char *_func_h_sccs_ = "@(#)func.h 1.3";
ian@0 41 #endif
ian@0 42 #endif
ian@0 43
ian@0 44 /* rioboot.c */
ian@0 45 int RIOBootCodeRTA(struct rio_info *, struct DownLoad *);
ian@0 46 int RIOBootCodeHOST(struct rio_info *, struct DownLoad *);
ian@0 47 int RIOBootCodeUNKNOWN(struct rio_info *, struct DownLoad *);
ian@0 48 void msec_timeout(struct Host *);
ian@0 49 int RIOBootRup(struct rio_info *, unsigned int, struct Host *, struct PKT __iomem *);
ian@0 50 int RIOBootOk(struct rio_info *, struct Host *, unsigned long);
ian@0 51 int RIORtaBound(struct rio_info *, unsigned int);
ian@0 52 void rio_fill_host_slot(int, int, unsigned int, struct Host *);
ian@0 53
ian@0 54 /* riocmd.c */
ian@0 55 int RIOFoadRta(struct Host *, struct Map *);
ian@0 56 int RIOZombieRta(struct Host *, struct Map *);
ian@0 57 int RIOCommandRta(struct rio_info *, unsigned long, int (*func) (struct Host *, struct Map *));
ian@0 58 int RIOIdentifyRta(struct rio_info *, void __user *);
ian@0 59 int RIOKillNeighbour(struct rio_info *, void __user *);
ian@0 60 int RIOSuspendBootRta(struct Host *, int, int);
ian@0 61 int RIOFoadWakeup(struct rio_info *);
ian@0 62 struct CmdBlk *RIOGetCmdBlk(void);
ian@0 63 void RIOFreeCmdBlk(struct CmdBlk *);
ian@0 64 int RIOQueueCmdBlk(struct Host *, unsigned int, struct CmdBlk *);
ian@0 65 void RIOPollHostCommands(struct rio_info *, struct Host *);
ian@0 66 int RIOWFlushMark(unsigned long, struct CmdBlk *);
ian@0 67 int RIORFlushEnable(unsigned long, struct CmdBlk *);
ian@0 68 int RIOUnUse(unsigned long, struct CmdBlk *);
ian@0 69
ian@0 70 /* rioctrl.c */
ian@0 71 int riocontrol(struct rio_info *, dev_t, int, unsigned long, int);
ian@0 72
ian@0 73 int RIOPreemptiveCmd(struct rio_info *, struct Port *, unsigned char);
ian@0 74
ian@0 75 /* rioinit.c */
ian@0 76 void rioinit(struct rio_info *, struct RioHostInfo *);
ian@0 77 void RIOInitHosts(struct rio_info *, struct RioHostInfo *);
ian@0 78 void RIOISAinit(struct rio_info *, int);
ian@0 79 int RIODoAT(struct rio_info *, int, int);
ian@0 80 caddr_t RIOCheckForATCard(int);
ian@0 81 int RIOAssignAT(struct rio_info *, int, void __iomem *, int);
ian@0 82 int RIOBoardTest(unsigned long, void __iomem *, unsigned char, int);
ian@0 83 void RIOAllocDataStructs(struct rio_info *);
ian@0 84 void RIOSetupDataStructs(struct rio_info *);
ian@0 85 int RIODefaultName(struct rio_info *, struct Host *, unsigned int);
ian@0 86 struct rioVersion *RIOVersid(void);
ian@0 87 void RIOHostReset(unsigned int, struct DpRam __iomem *, unsigned int);
ian@0 88
ian@0 89 /* riointr.c */
ian@0 90 void RIOTxEnable(char *);
ian@0 91 void RIOServiceHost(struct rio_info *, struct Host *, int);
ian@0 92 int riotproc(struct rio_info *, struct ttystatics *, int, int);
ian@0 93
ian@0 94 /* rioparam.c */
ian@0 95 int RIOParam(struct Port *, int, int, int);
ian@0 96 int RIODelay(struct Port *PortP, int);
ian@0 97 int RIODelay_ni(struct Port *PortP, int);
ian@0 98 void ms_timeout(struct Port *);
ian@0 99 int can_add_transmit(struct PKT __iomem **, struct Port *);
ian@0 100 void add_transmit(struct Port *);
ian@0 101 void put_free_end(struct Host *, struct PKT __iomem *);
ian@0 102 int can_remove_receive(struct PKT __iomem **, struct Port *);
ian@0 103 void remove_receive(struct Port *);
ian@0 104
ian@0 105 /* rioroute.c */
ian@0 106 int RIORouteRup(struct rio_info *, unsigned int, struct Host *, struct PKT __iomem *);
ian@0 107 void RIOFixPhbs(struct rio_info *, struct Host *, unsigned int);
ian@0 108 unsigned int GetUnitType(unsigned int);
ian@0 109 int RIOSetChange(struct rio_info *);
ian@0 110 int RIOFindFreeID(struct rio_info *, struct Host *, unsigned int *, unsigned int *);
ian@0 111
ian@0 112
ian@0 113 /* riotty.c */
ian@0 114
ian@0 115 int riotopen(struct tty_struct *tty, struct file *filp);
ian@0 116 int riotclose(void *ptr);
ian@0 117 int riotioctl(struct rio_info *, struct tty_struct *, int, caddr_t);
ian@0 118 void ttyseth(struct Port *, struct ttystatics *, struct old_sgttyb *sg);
ian@0 119
ian@0 120 /* riotable.c */
ian@0 121 int RIONewTable(struct rio_info *);
ian@0 122 int RIOApel(struct rio_info *);
ian@0 123 int RIODeleteRta(struct rio_info *, struct Map *);
ian@0 124 int RIOAssignRta(struct rio_info *, struct Map *);
ian@0 125 int RIOReMapPorts(struct rio_info *, struct Host *, struct Map *);
ian@0 126 int RIOChangeName(struct rio_info *, struct Map *);
ian@0 127
ian@0 128 #if 0
ian@0 129 /* riodrvr.c */
ian@0 130 struct rio_info *rio_install(struct RioHostInfo *);
ian@0 131 int rio_uninstall(struct rio_info *);
ian@0 132 int rio_open(struct rio_info *, int, struct file *);
ian@0 133 int rio_close(struct rio_info *, struct file *);
ian@0 134 int rio_read(struct rio_info *, struct file *, char *, int);
ian@0 135 int rio_write(struct rio_info *, struct file *f, char *, int);
ian@0 136 int rio_ioctl(struct rio_info *, struct file *, int, char *);
ian@0 137 int rio_select(struct rio_info *, struct file *f, int, struct sel *);
ian@0 138 int rio_intr(char *);
ian@0 139 int rio_isr_thread(char *);
ian@0 140 struct rio_info *rio_info_store(int cmd, struct rio_info *p);
ian@0 141 #endif
ian@0 142
ian@0 143 extern void rio_copy_to_card(void *from, void __iomem *to, int len);
ian@0 144 extern int rio_minor(struct tty_struct *tty);
ian@0 145 extern int rio_ismodem(struct tty_struct *tty);
ian@0 146
ian@0 147 extern void rio_start_card_running(struct Host *HostP);
ian@0 148
ian@0 149 #endif /* __func_h_def */