Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/drivers/char/rio/func.h (Version 2.6.25.8) and /linux/drivers/char/rio/func.h (Version 2.6.11.8)


  1 /*                                                  1 /*
  2 ** -------------------------------------------      2 ** -----------------------------------------------------------------------------
  3 **                                                  3 **
  4 **  Perle Specialix driver for Linux                4 **  Perle Specialix driver for Linux
  5 **  Ported from existing RIO Driver for SCO so      5 **  Ported from existing RIO Driver for SCO sources.
  6  *                                                  6  *
  7  *  (C) 1990 - 2000 Specialix International Lt      7  *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  8  *                                                  8  *
  9  *      This program is free software; you can      9  *      This program is free software; you can redistribute it and/or modify
 10  *      it under the terms of the GNU General      10  *      it under the terms of the GNU General Public License as published by
 11  *      the Free Software Foundation; either v     11  *      the Free Software Foundation; either version 2 of the License, or
 12  *      (at your option) any later version.        12  *      (at your option) any later version.
 13  *                                                 13  *
 14  *      This program is distributed in the hop     14  *      This program is distributed in the hope that it will be useful,
 15  *      but WITHOUT ANY WARRANTY; without even     15  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 16  *      MERCHANTABILITY or FITNESS FOR A PARTI     16  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17  *      GNU General Public License for more de     17  *      GNU General Public License for more details.
 18  *                                                 18  *
 19  *      You should have received a copy of the     19  *      You should have received a copy of the GNU General Public License
 20  *      along with this program; if not, write     20  *      along with this program; if not, write to the Free Software
 21  *      Foundation, Inc., 675 Mass Ave, Cambri     21  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 22 **                                                 22 **
 23 **      Module          : func.h                   23 **      Module          : func.h
 24 **      SID             : 1.3                      24 **      SID             : 1.3
 25 **      Last Modified   : 11/6/98 11:34:10         25 **      Last Modified   : 11/6/98 11:34:10
 26 **      Retrieved       : 11/6/98 11:34:21         26 **      Retrieved       : 11/6/98 11:34:21
 27 **                                                 27 **
 28 **  ident @(#)func.h    1.3                        28 **  ident @(#)func.h    1.3
 29 **                                                 29 **
 30 ** -------------------------------------------     30 ** -----------------------------------------------------------------------------
 31 */                                                 31 */
 32                                                    32 
 33 #ifndef __func_h_def                               33 #ifndef __func_h_def
 34 #define __func_h_def                               34 #define __func_h_def
 35                                                    35 
 36 #include <linux/kdev_t.h>                          36 #include <linux/kdev_t.h>
 37                                                    37 
 38 #ifdef SCCS_LABELS                                 38 #ifdef SCCS_LABELS
 39 #ifndef lint                                       39 #ifndef lint
 40 static char *_func_h_sccs_ = "@(#)func.h           40 static char *_func_h_sccs_ = "@(#)func.h        1.3";
 41 #endif                                             41 #endif
 42 #endif                                             42 #endif
 43                                                    43 
 44 /* rioboot.c */                                    44 /* rioboot.c */
 45 int RIOBootCodeRTA(struct rio_info *, struct D     45 int RIOBootCodeRTA(struct rio_info *, struct DownLoad *);
 46 int RIOBootCodeHOST(struct rio_info *, struct  !!  46 int RIOBootCodeHOST(struct rio_info *, register struct DownLoad *);
 47 int RIOBootCodeUNKNOWN(struct rio_info *, stru     47 int RIOBootCodeUNKNOWN(struct rio_info *, struct DownLoad *);
 48 void msec_timeout(struct Host *);                  48 void msec_timeout(struct Host *);
 49 int RIOBootRup(struct rio_info *, unsigned int !!  49 int RIOBootRup(struct rio_info *, uint, struct Host *, struct PKT *);
 50 int RIOBootOk(struct rio_info *, struct Host * !!  50 int RIOBootOk(struct rio_info *,struct Host *, ulong);
 51 int RIORtaBound(struct rio_info *, unsigned in !!  51 int RIORtaBound(struct rio_info *, uint); 
 52 void rio_fill_host_slot(int, int, unsigned int !!  52 void FillSlot(int, int, uint, struct Host *);
 53                                                    53 
 54 /* riocmd.c */                                     54 /* riocmd.c */
 55 int RIOFoadRta(struct Host *, struct Map *);       55 int RIOFoadRta(struct Host *, struct Map *);
 56 int RIOZombieRta(struct Host *, struct Map *);     56 int RIOZombieRta(struct Host *, struct Map *);
 57 int RIOCommandRta(struct rio_info *, unsigned  !!  57 int RIOCommandRta(struct rio_info *, uint, int (* func)( struct Host *, 
 58 int RIOIdentifyRta(struct rio_info *, void __u !!  58                                                                 struct Map *));
 59 int RIOKillNeighbour(struct rio_info *, void _ !!  59 int RIOIdentifyRta(struct rio_info *, caddr_t); 
                                                   >>  60 int RIOKillNeighbour(struct rio_info *, caddr_t);
 60 int RIOSuspendBootRta(struct Host *, int, int)     61 int RIOSuspendBootRta(struct Host *, int, int);
 61 int RIOFoadWakeup(struct rio_info *);              62 int RIOFoadWakeup(struct rio_info *);
 62 struct CmdBlk *RIOGetCmdBlk(void);             !!  63 struct CmdBlk * RIOGetCmdBlk(void);
 63 void RIOFreeCmdBlk(struct CmdBlk *);               64 void RIOFreeCmdBlk(struct CmdBlk *);
 64 int RIOQueueCmdBlk(struct Host *, unsigned int !!  65 int RIOQueueCmdBlk(struct Host *, uint, struct CmdBlk *);
 65 void RIOPollHostCommands(struct rio_info *, st     66 void RIOPollHostCommands(struct rio_info *, struct Host *);
 66 int RIOWFlushMark(unsigned long, struct CmdBlk !!  67 int RIOWFlushMark(int, struct CmdBlk *);
 67 int RIORFlushEnable(unsigned long, struct CmdB !!  68 int RIORFlushEnable(int, struct CmdBlk *);
 68 int RIOUnUse(unsigned long, struct CmdBlk *);  !!  69 int RIOUnUse(int, struct CmdBlk *);
                                                   >>  70 void ShowPacket(uint, struct PKT *);
 69                                                    71 
 70 /* rioctrl.c */                                    72 /* rioctrl.c */
 71 int riocontrol(struct rio_info *, dev_t, int,  !!  73 int copyin(int, caddr_t, int);
 72                                                !!  74 int riocontrol(struct rio_info *, dev_t,int,caddr_t,int); 
 73 int RIOPreemptiveCmd(struct rio_info *, struct !!  75 int RIOPreemptiveCmd(struct rio_info *,struct Port *,uchar);
 74                                                    76 
 75 /* rioinit.c */                                    77 /* rioinit.c */
 76 void rioinit(struct rio_info *, struct RioHost     78 void rioinit(struct rio_info *, struct RioHostInfo *);
 77 void RIOInitHosts(struct rio_info *, struct Ri     79 void RIOInitHosts(struct rio_info *, struct RioHostInfo *);
 78 void RIOISAinit(struct rio_info *, int);       !!  80 void RIOISAinit(struct rio_info *,int);
 79 int RIODoAT(struct rio_info *, int, int);          81 int RIODoAT(struct rio_info *, int, int);
 80 caddr_t RIOCheckForATCard(int);                    82 caddr_t RIOCheckForATCard(int);
 81 int RIOAssignAT(struct rio_info *, int, void _ !!  83 int RIOAssignAT(struct rio_info *, int, caddr_t, int);
 82 int RIOBoardTest(unsigned long, void __iomem * !!  84 int RIOBoardTest(paddr_t, caddr_t, uchar, int);
 83 void RIOAllocDataStructs(struct rio_info *);       85 void RIOAllocDataStructs(struct rio_info *);
 84 void RIOSetupDataStructs(struct rio_info *);       86 void RIOSetupDataStructs(struct rio_info *);
 85 int RIODefaultName(struct rio_info *, struct H !!  87 int RIODefaultName(struct rio_info *, struct Host *, uint);
 86 struct rioVersion *RIOVersid(void);            !!  88 struct rioVersion * RIOVersid(void);
 87 void RIOHostReset(unsigned int, struct DpRam _ !!  89 int RIOMapin(paddr_t, int, caddr_t *);
                                                   >>  90 void RIOMapout(paddr_t, long, caddr_t);
                                                   >>  91 void RIOHostReset(uint, volatile struct DpRam *, uint);
 88                                                    92 
 89 /* riointr.c */                                    93 /* riointr.c */
 90 void RIOTxEnable(char *);                          94 void RIOTxEnable(char *);
 91 void RIOServiceHost(struct rio_info *, struct  !!  95 void RIOServiceHost(struct rio_info *, struct Host *, int);
 92 int riotproc(struct rio_info *, struct ttystat !!  96 int riotproc(struct rio_info *, register struct ttystatics *, int, int);
 93                                                    97 
 94 /* rioparam.c */                                   98 /* rioparam.c */
 95 int RIOParam(struct Port *, int, int, int);        99 int RIOParam(struct Port *, int, int, int);
 96 int RIODelay(struct Port *PortP, int);            100 int RIODelay(struct Port *PortP, int);
 97 int RIODelay_ni(struct Port *PortP, int);         101 int RIODelay_ni(struct Port *PortP, int);
 98 void ms_timeout(struct Port *);                   102 void ms_timeout(struct Port *);
 99 int can_add_transmit(struct PKT __iomem **, st !! 103 int can_add_transmit(struct PKT **, struct Port *);
100 void add_transmit(struct Port *);                 104 void add_transmit(struct Port *);
101 void put_free_end(struct Host *, struct PKT __ !! 105 void put_free_end(struct Host *, struct PKT *);
102 int can_remove_receive(struct PKT __iomem **,  !! 106 int can_remove_receive(struct PKT **, struct Port *);
103 void remove_receive(struct Port *);               107 void remove_receive(struct Port *);
104                                                   108 
105 /* rioroute.c */                                  109 /* rioroute.c */
106 int RIORouteRup(struct rio_info *, unsigned in !! 110 int RIORouteRup(struct rio_info *, uint, struct Host *, struct PKT *);
107 void RIOFixPhbs(struct rio_info *, struct Host !! 111 void RIOFixPhbs(struct rio_info *, struct Host *, uint); 
108 unsigned int GetUnitType(unsigned int);        !! 112 uint GetUnitType(uint);
109 int RIOSetChange(struct rio_info *);              113 int RIOSetChange(struct rio_info *);
110 int RIOFindFreeID(struct rio_info *, struct Ho !! 114 int RIOFindFreeID(struct rio_info *, struct Host *, uint *, uint *);
111                                                   115 
112                                                   116 
113 /* riotty.c */                                    117 /* riotty.c */
114                                                   118 
115 int riotopen(struct tty_struct *tty, struct fi !! 119 int riotopen(struct tty_struct * tty, struct file * filp);
116 int riotclose(void *ptr);                      !! 120 int riotclose(void  *ptr);
117 int riotioctl(struct rio_info *, struct tty_st !! 121 int riotioctl(struct rio_info *, struct tty_struct *, register int, register caddr_t); 
118 void ttyseth(struct Port *, struct ttystatics     122 void ttyseth(struct Port *, struct ttystatics *, struct old_sgttyb *sg);
119                                                   123 
120 /* riotable.c */                                  124 /* riotable.c */
121 int RIONewTable(struct rio_info *);               125 int RIONewTable(struct rio_info *);
122 int RIOApel(struct rio_info *);                   126 int RIOApel(struct rio_info *);
123 int RIODeleteRta(struct rio_info *, struct Map    127 int RIODeleteRta(struct rio_info *, struct Map *);
124 int RIOAssignRta(struct rio_info *, struct Map    128 int RIOAssignRta(struct rio_info *, struct Map *);
125 int RIOReMapPorts(struct rio_info *, struct Ho    129 int RIOReMapPorts(struct rio_info *, struct Host *, struct Map *);
126 int RIOChangeName(struct rio_info *, struct Ma !! 130 int RIOChangeName(struct rio_info *, struct Map*);
127                                                   131 
128 #if 0                                             132 #if 0
129 /* riodrvr.c */                                   133 /* riodrvr.c */
130 struct rio_info *rio_install(struct RioHostInf !! 134 struct rio_info * rio_install(struct RioHostInfo *);
131 int rio_uninstall(struct rio_info *);          !! 135 int rio_uninstall(register struct rio_info *);
132 int rio_open(struct rio_info *, int, struct fi    136 int rio_open(struct rio_info *, int, struct file *);
133 int rio_close(struct rio_info *, struct file *    137 int rio_close(struct rio_info *, struct file *);
134 int rio_read(struct rio_info *, struct file *,    138 int rio_read(struct rio_info *, struct file *, char *, int);
135 int rio_write(struct rio_info *, struct file * !! 139 int rio_write(struct rio_info *, struct file *  f, char *, int);
136 int rio_ioctl(struct rio_info *, struct file *    140 int rio_ioctl(struct rio_info *, struct file *, int, char *);
137 int rio_select(struct rio_info *, struct file  !! 141 int rio_select(struct rio_info *, struct file * f, int, struct sel *);
138 int rio_intr(char *);                          !! 142 int     rio_intr(char *);
139 int rio_isr_thread(char *);                    !! 143 int rio_isr_thread(char  *);
140 struct rio_info *rio_info_store(int cmd, struc !! 144 struct rio_info * rio_info_store( int cmd, struct rio_info * p);
141 #endif                                            145 #endif
142                                                   146 
143 extern void rio_copy_to_card(void *from, void  !! 147 extern int    rio_pcicopy(char *src, char *dst, int n);
144 extern int rio_minor(struct tty_struct *tty);  !! 148 extern int rio_minor (struct tty_struct *tty);
145 extern int rio_ismodem(struct tty_struct *tty) !! 149 extern int rio_ismodem (struct tty_struct *tty);
                                                   >> 150 extern void rio_udelay (int usecs);
146                                                   151 
147 extern void rio_start_card_running(struct Host !! 152 extern void rio_start_card_running (struct Host * HostP);
148                                                   153 
149 #endif                          /* __func_h_de !! 154 #endif  /* __func_h_def */
150                                                   155 
  This page was automatically generated by the LXR engine.