aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/cistpl.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-06-27 19:28:52 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 21:03:19 -0400
commite6ea0b9ec5131ac360581d6924fed536758bd024 (patch)
treea6d97d93480e578b95ac855855906bee423c099f /drivers/pcmcia/cistpl.c
parent3b659fb862db02c77ea7e6db7e70b6e888681579 (diff)
[PATCH] pcmcia: rename some functions
Rename some functions in drivers/pcmcia/ to show they belong to the PCMCIA subsystem. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia/cistpl.c')
-rw-r--r--drivers/pcmcia/cistpl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia/cistpl.c
index e29a6ddf2fd7..af4ff08d6dcd 100644
--- a/drivers/pcmcia/cistpl.c
+++ b/drivers/pcmcia/cistpl.c
@@ -90,7 +90,7 @@ set_cis_map(struct pcmcia_socket *s, unsigned int card_offset, unsigned int flag
90{ 90{
91 pccard_mem_map *mem = &s->cis_mem; 91 pccard_mem_map *mem = &s->cis_mem;
92 if (!(s->features & SS_CAP_STATIC_MAP) && mem->res == NULL) { 92 if (!(s->features & SS_CAP_STATIC_MAP) && mem->res == NULL) {
93 mem->res = find_mem_region(0, s->map_size, s->map_size, 0, s); 93 mem->res = pcmcia_find_mem_region(0, s->map_size, s->map_size, 0, s);
94 if (mem->res == NULL) { 94 if (mem->res == NULL) {
95 printk(KERN_NOTICE "cs: unable to map card memory!\n"); 95 printk(KERN_NOTICE "cs: unable to map card memory!\n");
96 return NULL; 96 return NULL;
@@ -119,13 +119,13 @@ set_cis_map(struct pcmcia_socket *s, unsigned int card_offset, unsigned int flag
119#define IS_ATTR 1 119#define IS_ATTR 1
120#define IS_INDIRECT 8 120#define IS_INDIRECT 8
121 121
122int read_cis_mem(struct pcmcia_socket *s, int attr, u_int addr, 122int pcmcia_read_cis_mem(struct pcmcia_socket *s, int attr, u_int addr,
123 u_int len, void *ptr) 123 u_int len, void *ptr)
124{ 124{
125 void __iomem *sys, *end; 125 void __iomem *sys, *end;
126 unsigned char *buf = ptr; 126 unsigned char *buf = ptr;
127 127
128 cs_dbg(s, 3, "read_cis_mem(%d, %#x, %u)\n", attr, addr, len); 128 cs_dbg(s, 3, "pcmcia_read_cis_mem(%d, %#x, %u)\n", attr, addr, len);
129 129
130 if (attr & IS_INDIRECT) { 130 if (attr & IS_INDIRECT) {
131 /* Indirect accesses use a bunch of special registers at fixed 131 /* Indirect accesses use a bunch of special registers at fixed
@@ -183,13 +183,13 @@ int read_cis_mem(struct pcmcia_socket *s, int attr, u_int addr,
183 return 0; 183 return 0;
184} 184}
185 185
186void write_cis_mem(struct pcmcia_socket *s, int attr, u_int addr, 186void pcmcia_write_cis_mem(struct pcmcia_socket *s, int attr, u_int addr,
187 u_int len, void *ptr) 187 u_int len, void *ptr)
188{ 188{
189 void __iomem *sys, *end; 189 void __iomem *sys, *end;
190 unsigned char *buf = ptr; 190 unsigned char *buf = ptr;
191 191
192 cs_dbg(s, 3, "write_cis_mem(%d, %#x, %u)\n", attr, addr, len); 192 cs_dbg(s, 3, "pcmcia_write_cis_mem(%d, %#x, %u)\n", attr, addr, len);
193 193
194 if (attr & IS_INDIRECT) { 194 if (attr & IS_INDIRECT) {
195 /* Indirect accesses use a bunch of special registers at fixed 195 /* Indirect accesses use a bunch of special registers at fixed
@@ -274,7 +274,7 @@ static void read_cis_cache(struct pcmcia_socket *s, int attr, u_int addr,
274 ret = read_cb_mem(s, attr, addr, len, ptr); 274 ret = read_cb_mem(s, attr, addr, len, ptr);
275 else 275 else
276#endif 276#endif
277 ret = read_cis_mem(s, attr, addr, len, ptr); 277 ret = pcmcia_read_cis_mem(s, attr, addr, len, ptr);
278 278
279 if (ret == 0) { 279 if (ret == 0) {
280 /* Copy data into the cache */ 280 /* Copy data into the cache */
@@ -348,7 +348,7 @@ int verify_cis_cache(struct pcmcia_socket *s)
348 read_cb_mem(s, cis->attr, cis->addr, len, buf); 348 read_cb_mem(s, cis->attr, cis->addr, len, buf);
349 else 349 else
350#endif 350#endif
351 read_cis_mem(s, cis->attr, cis->addr, len, buf); 351 pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf);
352 352
353 if (memcmp(buf, cis->cache, len) != 0) { 353 if (memcmp(buf, cis->cache, len) != 0) {
354 kfree(buf); 354 kfree(buf);