Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169137
b: refs/heads/master
c: 16456eb
h: refs/heads/master
i:
  169135: e39720b
v: v3
  • Loading branch information
Magnus Damm authored and Dominik Brodowski committed Nov 28, 2009
1 parent 5c9c632 commit cab9232
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 868575d1e87ff2091800aea816972ddb46de60d5
refs/heads/master: 16456ebabfec3f8f509fc18b45f256d066a1b360
2 changes: 2 additions & 0 deletions trunk/drivers/pcmcia/cs_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ extern void pcmcia_put_dev(struct pcmcia_device *p_dev);

struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s,
unsigned int function);
int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t win,
memreq_t *req);

/* pcmcia_ioctl.c */
extern void __init pcmcia_setup_ioctl(void);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/pcmcia/pcmcia_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
buf->win_info.handle->index + 1, &buf->win_info.window);
break;
case DS_GET_MEM_PAGE:
ret = pcmcia_get_mem_page(buf->win_info.handle,
ret = pcmcia_get_mem_page(s, buf->win_info.handle,
&buf->win_info.map);
break;
case DS_REPLACE_CIS:
Expand Down
5 changes: 4 additions & 1 deletion trunk/drivers/pcmcia/pcmcia_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,11 @@ EXPORT_SYMBOL(pcmcia_get_window);
*
* Change the card address of an already open memory window.
*/
int pcmcia_get_mem_page(window_handle_t win, memreq_t *req)
int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t wh,
memreq_t *req)
{
window_handle_t win = wh;

if ((win == NULL) || (win->magic != WINDOW_MAGIC))
return -EINVAL;
req->Page = 0;
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/pcmcia/ds.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev,
int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req,
window_handle_t *wh);
int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t win);

int pcmcia_get_mem_page(window_handle_t win, memreq_t *req);
int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t win,
memreq_t *req);

Expand Down

0 comments on commit cab9232

Please sign in to comment.