diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-06-27 19:28:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 21:03:19 -0400 |
commit | e6ea0b9ec5131ac360581d6924fed536758bd024 (patch) | |
tree | a6d97d93480e578b95ac855855906bee423c099f /drivers/pcmcia/cs.c | |
parent | 3b659fb862db02c77ea7e6db7e70b6e888681579 (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/cs.c')
-rw-r--r-- | drivers/pcmcia/cs.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index fec9e0304738..574706e74791 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c | |||
@@ -787,7 +787,7 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base, | |||
787 | return 1; | 787 | return 1; |
788 | for (i = 0; i < MAX_IO_WIN; i++) { | 788 | for (i = 0; i < MAX_IO_WIN; i++) { |
789 | if (s->io[i].NumPorts == 0) { | 789 | if (s->io[i].NumPorts == 0) { |
790 | s->io[i].res = find_io_region(*base, num, align, s); | 790 | s->io[i].res = pcmcia_find_io_region(*base, num, align, s); |
791 | if (s->io[i].res) { | 791 | if (s->io[i].res) { |
792 | s->io[i].Attributes = attr; | 792 | s->io[i].Attributes = attr; |
793 | s->io[i].BasePort = *base = s->io[i].res->start; | 793 | s->io[i].BasePort = *base = s->io[i].res->start; |
@@ -800,7 +800,7 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base, | |||
800 | /* Try to extend top of window */ | 800 | /* Try to extend top of window */ |
801 | try = s->io[i].BasePort + s->io[i].NumPorts; | 801 | try = s->io[i].BasePort + s->io[i].NumPorts; |
802 | if ((*base == 0) || (*base == try)) | 802 | if ((*base == 0) || (*base == try)) |
803 | if (adjust_io_region(s->io[i].res, s->io[i].res->start, | 803 | if (pcmcia_adjust_io_region(s->io[i].res, s->io[i].res->start, |
804 | s->io[i].res->end + num, s) == 0) { | 804 | s->io[i].res->end + num, s) == 0) { |
805 | *base = try; | 805 | *base = try; |
806 | s->io[i].NumPorts += num; | 806 | s->io[i].NumPorts += num; |
@@ -810,7 +810,7 @@ static int alloc_io_space(struct pcmcia_socket *s, u_int attr, ioaddr_t *base, | |||
810 | /* Try to extend bottom of window */ | 810 | /* Try to extend bottom of window */ |
811 | try = s->io[i].BasePort - num; | 811 | try = s->io[i].BasePort - num; |
812 | if ((*base == 0) || (*base == try)) | 812 | if ((*base == 0) || (*base == try)) |
813 | if (adjust_io_region(s->io[i].res, s->io[i].res->start - num, | 813 | if (pcmcia_adjust_io_region(s->io[i].res, s->io[i].res->start - num, |
814 | s->io[i].res->end, s) == 0) { | 814 | s->io[i].res->end, s) == 0) { |
815 | s->io[i].BasePort = *base = try; | 815 | s->io[i].BasePort = *base = try; |
816 | s->io[i].NumPorts += num; | 816 | s->io[i].NumPorts += num; |
@@ -872,12 +872,12 @@ int pccard_access_configuration_register(struct pcmcia_socket *s, | |||
872 | 872 | ||
873 | switch (reg->Action) { | 873 | switch (reg->Action) { |
874 | case CS_READ: | 874 | case CS_READ: |
875 | read_cis_mem(s, 1, addr, 1, &val); | 875 | pcmcia_read_cis_mem(s, 1, addr, 1, &val); |
876 | reg->Value = val; | 876 | reg->Value = val; |
877 | break; | 877 | break; |
878 | case CS_WRITE: | 878 | case CS_WRITE: |
879 | val = reg->Value; | 879 | val = reg->Value; |
880 | write_cis_mem(s, 1, addr, 1, &val); | 880 | pcmcia_write_cis_mem(s, 1, addr, 1, &val); |
881 | break; | 881 | break; |
882 | default: | 882 | default: |
883 | return CS_BAD_ARGS; | 883 | return CS_BAD_ARGS; |
@@ -1050,7 +1050,7 @@ int pccard_get_status(struct pcmcia_socket *s, unsigned int function, cs_status_ | |||
1050 | (c->IntType & (INT_MEMORY_AND_IO | INT_ZOOMED_VIDEO))) { | 1050 | (c->IntType & (INT_MEMORY_AND_IO | INT_ZOOMED_VIDEO))) { |
1051 | u_char reg; | 1051 | u_char reg; |
1052 | if (c->Present & PRESENT_PIN_REPLACE) { | 1052 | if (c->Present & PRESENT_PIN_REPLACE) { |
1053 | read_cis_mem(s, 1, (c->ConfigBase+CISREG_PRR)>>1, 1, ®); | 1053 | pcmcia_read_cis_mem(s, 1, (c->ConfigBase+CISREG_PRR)>>1, 1, ®); |
1054 | status->CardState |= | 1054 | status->CardState |= |
1055 | (reg & PRR_WP_STATUS) ? CS_EVENT_WRITE_PROTECT : 0; | 1055 | (reg & PRR_WP_STATUS) ? CS_EVENT_WRITE_PROTECT : 0; |
1056 | status->CardState |= | 1056 | status->CardState |= |
@@ -1064,7 +1064,7 @@ int pccard_get_status(struct pcmcia_socket *s, unsigned int function, cs_status_ | |||
1064 | status->CardState |= CS_EVENT_READY_CHANGE; | 1064 | status->CardState |= CS_EVENT_READY_CHANGE; |
1065 | } | 1065 | } |
1066 | if (c->Present & PRESENT_EXT_STATUS) { | 1066 | if (c->Present & PRESENT_EXT_STATUS) { |
1067 | read_cis_mem(s, 1, (c->ConfigBase+CISREG_ESR)>>1, 1, ®); | 1067 | pcmcia_read_cis_mem(s, 1, (c->ConfigBase+CISREG_ESR)>>1, 1, ®); |
1068 | status->CardState |= | 1068 | status->CardState |= |
1069 | (reg & ESR_REQ_ATTN) ? CS_EVENT_REQUEST_ATTENTION : 0; | 1069 | (reg & ESR_REQ_ATTN) ? CS_EVENT_REQUEST_ATTENTION : 0; |
1070 | } | 1070 | } |
@@ -1401,7 +1401,7 @@ int pcmcia_request_configuration(client_handle_t handle, | |||
1401 | c->Present = c->CardValues = req->Present; | 1401 | c->Present = c->CardValues = req->Present; |
1402 | if (req->Present & PRESENT_COPY) { | 1402 | if (req->Present & PRESENT_COPY) { |
1403 | c->Copy = req->Copy; | 1403 | c->Copy = req->Copy; |
1404 | write_cis_mem(s, 1, (base + CISREG_SCR)>>1, 1, &c->Copy); | 1404 | pcmcia_write_cis_mem(s, 1, (base + CISREG_SCR)>>1, 1, &c->Copy); |
1405 | } | 1405 | } |
1406 | if (req->Present & PRESENT_OPTION) { | 1406 | if (req->Present & PRESENT_OPTION) { |
1407 | if (s->functions == 1) { | 1407 | if (s->functions == 1) { |
@@ -1415,30 +1415,30 @@ int pcmcia_request_configuration(client_handle_t handle, | |||
1415 | if (c->state & CONFIG_IRQ_REQ) | 1415 | if (c->state & CONFIG_IRQ_REQ) |
1416 | if (!(c->irq.Attributes & IRQ_FORCED_PULSE)) | 1416 | if (!(c->irq.Attributes & IRQ_FORCED_PULSE)) |
1417 | c->Option |= COR_LEVEL_REQ; | 1417 | c->Option |= COR_LEVEL_REQ; |
1418 | write_cis_mem(s, 1, (base + CISREG_COR)>>1, 1, &c->Option); | 1418 | pcmcia_write_cis_mem(s, 1, (base + CISREG_COR)>>1, 1, &c->Option); |
1419 | mdelay(40); | 1419 | mdelay(40); |
1420 | } | 1420 | } |
1421 | if (req->Present & PRESENT_STATUS) { | 1421 | if (req->Present & PRESENT_STATUS) { |
1422 | c->Status = req->Status; | 1422 | c->Status = req->Status; |
1423 | write_cis_mem(s, 1, (base + CISREG_CCSR)>>1, 1, &c->Status); | 1423 | pcmcia_write_cis_mem(s, 1, (base + CISREG_CCSR)>>1, 1, &c->Status); |
1424 | } | 1424 | } |
1425 | if (req->Present & PRESENT_PIN_REPLACE) { | 1425 | if (req->Present & PRESENT_PIN_REPLACE) { |
1426 | c->Pin = req->Pin; | 1426 | c->Pin = req->Pin; |
1427 | write_cis_mem(s, 1, (base + CISREG_PRR)>>1, 1, &c->Pin); | 1427 | pcmcia_write_cis_mem(s, 1, (base + CISREG_PRR)>>1, 1, &c->Pin); |
1428 | } | 1428 | } |
1429 | if (req->Present & PRESENT_EXT_STATUS) { | 1429 | if (req->Present & PRESENT_EXT_STATUS) { |
1430 | c->ExtStatus = req->ExtStatus; | 1430 | c->ExtStatus = req->ExtStatus; |
1431 | write_cis_mem(s, 1, (base + CISREG_ESR)>>1, 1, &c->ExtStatus); | 1431 | pcmcia_write_cis_mem(s, 1, (base + CISREG_ESR)>>1, 1, &c->ExtStatus); |
1432 | } | 1432 | } |
1433 | if (req->Present & PRESENT_IOBASE_0) { | 1433 | if (req->Present & PRESENT_IOBASE_0) { |
1434 | u_char b = c->io.BasePort1 & 0xff; | 1434 | u_char b = c->io.BasePort1 & 0xff; |
1435 | write_cis_mem(s, 1, (base + CISREG_IOBASE_0)>>1, 1, &b); | 1435 | pcmcia_write_cis_mem(s, 1, (base + CISREG_IOBASE_0)>>1, 1, &b); |
1436 | b = (c->io.BasePort1 >> 8) & 0xff; | 1436 | b = (c->io.BasePort1 >> 8) & 0xff; |
1437 | write_cis_mem(s, 1, (base + CISREG_IOBASE_1)>>1, 1, &b); | 1437 | pcmcia_write_cis_mem(s, 1, (base + CISREG_IOBASE_1)>>1, 1, &b); |
1438 | } | 1438 | } |
1439 | if (req->Present & PRESENT_IOSIZE) { | 1439 | if (req->Present & PRESENT_IOSIZE) { |
1440 | u_char b = c->io.NumPorts1 + c->io.NumPorts2 - 1; | 1440 | u_char b = c->io.NumPorts1 + c->io.NumPorts2 - 1; |
1441 | write_cis_mem(s, 1, (base + CISREG_IOSIZE)>>1, 1, &b); | 1441 | pcmcia_write_cis_mem(s, 1, (base + CISREG_IOSIZE)>>1, 1, &b); |
1442 | } | 1442 | } |
1443 | 1443 | ||
1444 | /* Configure I/O windows */ | 1444 | /* Configure I/O windows */ |
@@ -1678,7 +1678,7 @@ int pcmcia_request_window(client_handle_t *handle, win_req_t *req, window_handle | |||
1678 | win->sock = s; | 1678 | win->sock = s; |
1679 | 1679 | ||
1680 | if (!(s->features & SS_CAP_STATIC_MAP)) { | 1680 | if (!(s->features & SS_CAP_STATIC_MAP)) { |
1681 | win->ctl.res = find_mem_region(req->Base, req->Size, align, | 1681 | win->ctl.res = pcmcia_find_mem_region(req->Base, req->Size, align, |
1682 | (req->Attributes & WIN_MAP_BELOW_1MB), s); | 1682 | (req->Attributes & WIN_MAP_BELOW_1MB), s); |
1683 | if (!win->ctl.res) | 1683 | if (!win->ctl.res) |
1684 | return CS_IN_USE; | 1684 | return CS_IN_USE; |