@@ -197,8 +197,8 @@ int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t wh,
197197 dev_dbg (& s -> dev , "failure: requested page is zero\n" );
198198 return - EINVAL ;
199199 }
200- s -> win [wh ].ctl . card_start = req -> CardOffset ;
201- if (s -> ops -> set_mem_map (s , & s -> win [wh ]. ctl ) != 0 ) {
200+ s -> win [wh ].card_start = req -> CardOffset ;
201+ if (s -> ops -> set_mem_map (s , & s -> win [wh ]) != 0 ) {
202202 dev_dbg (& s -> dev , "failed to set_mem_map\n" );
203203 return - EIO ;
204204 }
@@ -398,7 +398,7 @@ static int pcmcia_release_irq(struct pcmcia_device *p_dev, irq_req_t *req)
398398int pcmcia_release_window (struct pcmcia_device * p_dev , window_handle_t wh )
399399{
400400 struct pcmcia_socket * s = p_dev -> socket ;
401- window_t * win ;
401+ pccard_mem_map * win ;
402402
403403 wh -- ;
404404 if (wh >= MAX_WIN )
@@ -412,15 +412,15 @@ int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t wh)
412412 }
413413
414414 /* Shut down memory window */
415- win -> ctl . flags &= ~MAP_ACTIVE ;
416- s -> ops -> set_mem_map (s , & win -> ctl );
415+ win -> flags &= ~MAP_ACTIVE ;
416+ s -> ops -> set_mem_map (s , win );
417417 s -> state &= ~SOCKET_WIN_REQ (wh );
418418
419419 /* Release system memory */
420- if (win -> ctl . res ) {
421- release_resource (win -> ctl . res );
422- kfree (win -> ctl . res );
423- win -> ctl . res = NULL ;
420+ if (win -> res ) {
421+ release_resource (win -> res );
422+ kfree (win -> res );
423+ win -> res = NULL ;
424424 }
425425 p_dev -> _win &= ~CLIENT_WIN_REQ (wh );
426426
@@ -755,7 +755,7 @@ EXPORT_SYMBOL(pcmcia_request_irq);
755755int pcmcia_request_window (struct pcmcia_device * * p_dev , win_req_t * req , window_handle_t * wh )
756756{
757757 struct pcmcia_socket * s = (* p_dev )-> socket ;
758- window_t * win ;
758+ pccard_mem_map * win ;
759759 u_long align ;
760760 int w ;
761761
@@ -797,39 +797,39 @@ int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, window_h
797797 win = & s -> win [w ];
798798
799799 if (!(s -> features & SS_CAP_STATIC_MAP )) {
800- win -> ctl . res = pcmcia_find_mem_region (req -> Base , req -> Size , align ,
800+ win -> res = pcmcia_find_mem_region (req -> Base , req -> Size , align ,
801801 (req -> Attributes & WIN_MAP_BELOW_1MB ), s );
802- if (!win -> ctl . res ) {
802+ if (!win -> res ) {
803803 dev_dbg (& s -> dev , "allocating mem region failed\n" );
804804 return - EINVAL ;
805805 }
806806 }
807807 (* p_dev )-> _win |= CLIENT_WIN_REQ (w );
808808
809809 /* Configure the socket controller */
810- win -> ctl . map = w + 1 ;
811- win -> ctl . flags = 0 ;
812- win -> ctl . speed = req -> AccessSpeed ;
810+ win -> map = w + 1 ;
811+ win -> flags = 0 ;
812+ win -> speed = req -> AccessSpeed ;
813813 if (req -> Attributes & WIN_MEMORY_TYPE )
814- win -> ctl . flags |= MAP_ATTRIB ;
814+ win -> flags |= MAP_ATTRIB ;
815815 if (req -> Attributes & WIN_ENABLE )
816- win -> ctl . flags |= MAP_ACTIVE ;
816+ win -> flags |= MAP_ACTIVE ;
817817 if (req -> Attributes & WIN_DATA_WIDTH_16 )
818- win -> ctl . flags |= MAP_16BIT ;
818+ win -> flags |= MAP_16BIT ;
819819 if (req -> Attributes & WIN_USE_WAIT )
820- win -> ctl . flags |= MAP_USE_WAIT ;
821- win -> ctl . card_start = 0 ;
822- if (s -> ops -> set_mem_map (s , & win -> ctl ) != 0 ) {
820+ win -> flags |= MAP_USE_WAIT ;
821+ win -> card_start = 0 ;
822+ if (s -> ops -> set_mem_map (s , win ) != 0 ) {
823823 dev_dbg (& s -> dev , "failed to set memory mapping\n" );
824824 return - EIO ;
825825 }
826826 s -> state |= SOCKET_WIN_REQ (w );
827827
828828 /* Return window handle */
829829 if (s -> features & SS_CAP_STATIC_MAP ) {
830- req -> Base = win -> ctl . static_start ;
830+ req -> Base = win -> static_start ;
831831 } else {
832- req -> Base = win -> ctl . res -> start ;
832+ req -> Base = win -> res -> start ;
833833 }
834834 * wh = w + 1 ;
835835
0 commit comments