diff options
Diffstat (limited to 'drivers/char/rio/func.h')
-rw-r--r-- | drivers/char/rio/func.h | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/drivers/char/rio/func.h b/drivers/char/rio/func.h index b4778410ec6e..8967772d833d 100644 --- a/drivers/char/rio/func.h +++ b/drivers/char/rio/func.h | |||
@@ -43,35 +43,34 @@ static char *_func_h_sccs_ = "@(#)func.h 1.3"; | |||
43 | 43 | ||
44 | /* rioboot.c */ | 44 | /* rioboot.c */ |
45 | int RIOBootCodeRTA(struct rio_info *, struct DownLoad *); | 45 | int RIOBootCodeRTA(struct rio_info *, struct DownLoad *); |
46 | int RIOBootCodeHOST(struct rio_info *, register struct DownLoad *); | 46 | int RIOBootCodeHOST(struct rio_info *, struct DownLoad *); |
47 | int RIOBootCodeUNKNOWN(struct rio_info *, struct DownLoad *); | 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 *, uint, struct Host *, struct PKT *); | 49 | int RIOBootRup(struct rio_info *, unsigned int, struct Host *, struct PKT *); |
50 | int RIOBootOk(struct rio_info *, struct Host *, ulong); | 50 | int RIOBootOk(struct rio_info *, struct Host *, unsigned long); |
51 | int RIORtaBound(struct rio_info *, uint); | 51 | int RIORtaBound(struct rio_info *, unsigned int); |
52 | void FillSlot(int, int, uint, struct Host *); | 52 | void FillSlot(int, int, unsigned int, 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 *, uint, int (*func) (struct Host *, struct Map *)); | 57 | int RIOCommandRta(struct rio_info *, unsigned long, int (*func) (struct Host *, struct Map *)); |
58 | int RIOIdentifyRta(struct rio_info *, caddr_t); | 58 | int RIOIdentifyRta(struct rio_info *, void *); |
59 | int RIOKillNeighbour(struct rio_info *, caddr_t); | 59 | int RIOKillNeighbour(struct rio_info *, void *); |
60 | int RIOSuspendBootRta(struct Host *, int, int); | 60 | int RIOSuspendBootRta(struct Host *, int, int); |
61 | int RIOFoadWakeup(struct rio_info *); | 61 | int RIOFoadWakeup(struct rio_info *); |
62 | struct CmdBlk *RIOGetCmdBlk(void); | 62 | struct CmdBlk *RIOGetCmdBlk(void); |
63 | void RIOFreeCmdBlk(struct CmdBlk *); | 63 | void RIOFreeCmdBlk(struct CmdBlk *); |
64 | int RIOQueueCmdBlk(struct Host *, uint, struct CmdBlk *); | 64 | int RIOQueueCmdBlk(struct Host *, unsigned int, struct CmdBlk *); |
65 | void RIOPollHostCommands(struct rio_info *, struct Host *); | 65 | void RIOPollHostCommands(struct rio_info *, struct Host *); |
66 | int RIOWFlushMark(int, struct CmdBlk *); | 66 | int RIOWFlushMark(unsigned long, struct CmdBlk *); |
67 | int RIORFlushEnable(int, struct CmdBlk *); | 67 | int RIORFlushEnable(unsigned long, struct CmdBlk *); |
68 | int RIOUnUse(int, struct CmdBlk *); | 68 | int RIOUnUse(unsigned long, struct CmdBlk *); |
69 | void ShowPacket(uint, struct PKT *); | 69 | void ShowPacket(unsigned int, struct PKT *); |
70 | 70 | ||
71 | /* rioctrl.c */ | 71 | /* rioctrl.c */ |
72 | int copyin(int, caddr_t, int); | ||
73 | int riocontrol(struct rio_info *, dev_t, int, caddr_t, int); | 72 | int riocontrol(struct rio_info *, dev_t, int, caddr_t, int); |
74 | int RIOPreemptiveCmd(struct rio_info *, struct Port *, uchar); | 73 | int RIOPreemptiveCmd(struct rio_info *, struct Port *, unsigned char); |
75 | 74 | ||
76 | /* rioinit.c */ | 75 | /* rioinit.c */ |
77 | void rioinit(struct rio_info *, struct RioHostInfo *); | 76 | void rioinit(struct rio_info *, struct RioHostInfo *); |
@@ -80,19 +79,19 @@ void RIOISAinit(struct rio_info *, int); | |||
80 | int RIODoAT(struct rio_info *, int, int); | 79 | int RIODoAT(struct rio_info *, int, int); |
81 | caddr_t RIOCheckForATCard(int); | 80 | caddr_t RIOCheckForATCard(int); |
82 | int RIOAssignAT(struct rio_info *, int, caddr_t, int); | 81 | int RIOAssignAT(struct rio_info *, int, caddr_t, int); |
83 | int RIOBoardTest(paddr_t, caddr_t, uchar, int); | 82 | int RIOBoardTest(paddr_t, caddr_t, unsigned char, int); |
84 | void RIOAllocDataStructs(struct rio_info *); | 83 | void RIOAllocDataStructs(struct rio_info *); |
85 | void RIOSetupDataStructs(struct rio_info *); | 84 | void RIOSetupDataStructs(struct rio_info *); |
86 | int RIODefaultName(struct rio_info *, struct Host *, uint); | 85 | int RIODefaultName(struct rio_info *, struct Host *, unsigned int); |
87 | struct rioVersion *RIOVersid(void); | 86 | struct rioVersion *RIOVersid(void); |
88 | int RIOMapin(paddr_t, int, caddr_t *); | 87 | int RIOMapin(paddr_t, int, caddr_t *); |
89 | void RIOMapout(paddr_t, long, caddr_t); | 88 | void RIOMapout(paddr_t, long, caddr_t); |
90 | void RIOHostReset(uint, volatile struct DpRam *, uint); | 89 | void RIOHostReset(unsigned int, struct DpRam *, unsigned int); |
91 | 90 | ||
92 | /* riointr.c */ | 91 | /* riointr.c */ |
93 | void RIOTxEnable(char *); | 92 | void RIOTxEnable(char *); |
94 | void RIOServiceHost(struct rio_info *, struct Host *, int); | 93 | void RIOServiceHost(struct rio_info *, struct Host *, int); |
95 | int riotproc(struct rio_info *, register struct ttystatics *, int, int); | 94 | int riotproc(struct rio_info *, struct ttystatics *, int, int); |
96 | 95 | ||
97 | /* rioparam.c */ | 96 | /* rioparam.c */ |
98 | int RIOParam(struct Port *, int, int, int); | 97 | int RIOParam(struct Port *, int, int, int); |
@@ -106,18 +105,18 @@ int can_remove_receive(struct PKT **, struct Port *); | |||
106 | void remove_receive(struct Port *); | 105 | void remove_receive(struct Port *); |
107 | 106 | ||
108 | /* rioroute.c */ | 107 | /* rioroute.c */ |
109 | int RIORouteRup(struct rio_info *, uint, struct Host *, struct PKT *); | 108 | int RIORouteRup(struct rio_info *, unsigned int, struct Host *, struct PKT *); |
110 | void RIOFixPhbs(struct rio_info *, struct Host *, uint); | 109 | void RIOFixPhbs(struct rio_info *, struct Host *, unsigned int); |
111 | uint GetUnitType(uint); | 110 | unsigned int GetUnitType(unsigned int); |
112 | int RIOSetChange(struct rio_info *); | 111 | int RIOSetChange(struct rio_info *); |
113 | int RIOFindFreeID(struct rio_info *, struct Host *, uint *, uint *); | 112 | int RIOFindFreeID(struct rio_info *, struct Host *, unsigned int *, unsigned int *); |
114 | 113 | ||
115 | 114 | ||
116 | /* riotty.c */ | 115 | /* riotty.c */ |
117 | 116 | ||
118 | int riotopen(struct tty_struct *tty, struct file *filp); | 117 | int riotopen(struct tty_struct *tty, struct file *filp); |
119 | int riotclose(void *ptr); | 118 | int riotclose(void *ptr); |
120 | int riotioctl(struct rio_info *, struct tty_struct *, register int, register caddr_t); | 119 | int riotioctl(struct rio_info *, struct tty_struct *, int, caddr_t); |
121 | void ttyseth(struct Port *, struct ttystatics *, struct old_sgttyb *sg); | 120 | void ttyseth(struct Port *, struct ttystatics *, struct old_sgttyb *sg); |
122 | 121 | ||
123 | /* riotable.c */ | 122 | /* riotable.c */ |
@@ -131,7 +130,7 @@ int RIOChangeName(struct rio_info *, struct Map *); | |||
131 | #if 0 | 130 | #if 0 |
132 | /* riodrvr.c */ | 131 | /* riodrvr.c */ |
133 | struct rio_info *rio_install(struct RioHostInfo *); | 132 | struct rio_info *rio_install(struct RioHostInfo *); |
134 | int rio_uninstall(register struct rio_info *); | 133 | int rio_uninstall(struct rio_info *); |
135 | int rio_open(struct rio_info *, int, struct file *); | 134 | int rio_open(struct rio_info *, int, struct file *); |
136 | int rio_close(struct rio_info *, struct file *); | 135 | int rio_close(struct rio_info *, struct file *); |
137 | int rio_read(struct rio_info *, struct file *, char *, int); | 136 | int rio_read(struct rio_info *, struct file *, char *, int); |
@@ -143,7 +142,7 @@ int rio_isr_thread(char *); | |||
143 | struct rio_info *rio_info_store(int cmd, struct rio_info *p); | 142 | struct rio_info *rio_info_store(int cmd, struct rio_info *p); |
144 | #endif | 143 | #endif |
145 | 144 | ||
146 | extern int rio_pcicopy(char *src, char *dst, int n); | 145 | extern void rio_copy_to_card(void *to, void *from, int len); |
147 | extern int rio_minor(struct tty_struct *tty); | 146 | extern int rio_minor(struct tty_struct *tty); |
148 | extern int rio_ismodem(struct tty_struct *tty); | 147 | extern int rio_ismodem(struct tty_struct *tty); |
149 | 148 | ||