diff options
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index 38b3a26a3ff3..c4d7908fa37f 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -224,7 +224,7 @@ static int pcmcia_adjust_resource_info(adjust_t *adj) | |||
224 | static int pcmcia_get_window(struct pcmcia_socket *s, window_handle_t *wh_out, | 224 | static int pcmcia_get_window(struct pcmcia_socket *s, window_handle_t *wh_out, |
225 | window_handle_t wh, win_req_t *req) | 225 | window_handle_t wh, win_req_t *req) |
226 | { | 226 | { |
227 | window_t *win; | 227 | pccard_mem_map *win; |
228 | window_handle_t w; | 228 | window_handle_t w; |
229 | 229 | ||
230 | wh--; | 230 | wh--; |
@@ -238,17 +238,17 @@ static int pcmcia_get_window(struct pcmcia_socket *s, window_handle_t *wh_out, | |||
238 | if (w == MAX_WIN) | 238 | if (w == MAX_WIN) |
239 | return -EINVAL; | 239 | return -EINVAL; |
240 | win = &s->win[w]; | 240 | win = &s->win[w]; |
241 | req->Base = win->ctl.res->start; | 241 | req->Base = win->res->start; |
242 | req->Size = win->ctl.res->end - win->ctl.res->start + 1; | 242 | req->Size = win->res->end - win->res->start + 1; |
243 | req->AccessSpeed = win->ctl.speed; | 243 | req->AccessSpeed = win->speed; |
244 | req->Attributes = 0; | 244 | req->Attributes = 0; |
245 | if (win->ctl.flags & MAP_ATTRIB) | 245 | if (win->flags & MAP_ATTRIB) |
246 | req->Attributes |= WIN_MEMORY_TYPE_AM; | 246 | req->Attributes |= WIN_MEMORY_TYPE_AM; |
247 | if (win->ctl.flags & MAP_ACTIVE) | 247 | if (win->flags & MAP_ACTIVE) |
248 | req->Attributes |= WIN_ENABLE; | 248 | req->Attributes |= WIN_ENABLE; |
249 | if (win->ctl.flags & MAP_16BIT) | 249 | if (win->flags & MAP_16BIT) |
250 | req->Attributes |= WIN_DATA_WIDTH_16; | 250 | req->Attributes |= WIN_DATA_WIDTH_16; |
251 | if (win->ctl.flags & MAP_USE_WAIT) | 251 | if (win->flags & MAP_USE_WAIT) |
252 | req->Attributes |= WIN_USE_WAIT; | 252 | req->Attributes |= WIN_USE_WAIT; |
253 | 253 | ||
254 | *wh_out = w + 1; | 254 | *wh_out = w + 1; |
@@ -268,7 +268,7 @@ static int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t wh, | |||
268 | return -EINVAL; | 268 | return -EINVAL; |
269 | 269 | ||
270 | req->Page = 0; | 270 | req->Page = 0; |
271 | req->CardOffset = skt->win[wh].ctl.card_start; | 271 | req->CardOffset = skt->win[wh].card_start; |
272 | return 0; | 272 | return 0; |
273 | } /* pcmcia_get_mem_page */ | 273 | } /* pcmcia_get_mem_page */ |
274 | 274 | ||