renamed driver_mem_stop() to driver_mem_release()
This commit is contained in:
@@ -8,5 +8,6 @@
|
|||||||
extern int driver_mem_init(void);
|
extern int driver_mem_init(void);
|
||||||
extern void *driver_mem_alloc(long amount);
|
extern void *driver_mem_alloc(long amount);
|
||||||
extern int driver_mem_free(void *addr);
|
extern int driver_mem_free(void *addr);
|
||||||
|
extern void driver_mem_release(void);
|
||||||
|
|
||||||
#endif /* _DRIVER_MEM_H_ */
|
#endif /* _DRIVER_MEM_H_ */
|
||||||
|
|||||||
@@ -336,7 +336,7 @@ int driver_mem_init(void)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void driver_mem_stop(void)
|
void driver_mem_release(void)
|
||||||
{
|
{
|
||||||
if (init_count-- == 0)
|
if (init_count-- == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -819,13 +819,9 @@ handler_psc3:
|
|||||||
|
|
||||||
lea MCF_PSC0_PSCTB_8BIT,a0 // ++ vr
|
lea MCF_PSC0_PSCTB_8BIT,a0 // ++ vr
|
||||||
mchar move.l,'\P,'\I,'C,' ,(a0)
|
mchar move.l,'\P,'\I,'C,' ,(a0)
|
||||||
// move.l #'PIC ',(a0)
|
|
||||||
mchar move.l,'I,'N,'T,'\ ,(a0)
|
mchar move.l,'I,'N,'T,'\ ,(a0)
|
||||||
// move.l #'INT ',(a0)
|
|
||||||
mchar move.l,'R,'T,'C,'!,(a0)
|
mchar move.l,'R,'T,'C,'!,(a0)
|
||||||
// move.l #'RTC!',(a0)
|
|
||||||
mchar move.l,0x0d,0x0a,0,0,(a0)
|
mchar move.l,0x0d,0x0a,0,0,(a0)
|
||||||
//move.l #0x0d0a,(a0)
|
|
||||||
|
|
||||||
lea 0xffff8961,a0
|
lea 0xffff8961,a0
|
||||||
lea MCF_PSC3_PSCTB_8BIT,a3
|
lea MCF_PSC3_PSCTB_8BIT,a3
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ int usb_stop(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
bus_index = 0;
|
bus_index = 0;
|
||||||
driver_mem_stop();
|
driver_mem_release(); /* release all driver mem */
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user