diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-03-24 06:18:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-24 10:33:29 -0500 |
commit | 00d83a54aa824b11ebc8c66c4a879cfeb5029a22 (patch) | |
tree | c4d13bb89b7ee082439ae75a5c1ee2d9da52c3c4 /drivers/char/rio/func.h | |
parent | e2b3afd676ad3e15ca2efca3b3605c7d817ec6e3 (diff) |
[PATCH] rio driver rework continued #3
Second large chunk of code cleanup. The split between this and #3 and #4 is
fairly arbitary and due to the message length limit on the list. These
patches continue the process of ripping out macros and typedefs while cleaning
up lots of 32bit assumptions. Several inlines for compatibility also get
removed and that causes a lot of noise.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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 | ||