writing SRAM in PCMCIA CARD from appln thru dll takes long time!!!

Hi Friends,

I have a pcmcia card for which I had written a driver and I need to fill
the SRAM with a 8 bit data thru all the 32 k of SRAM…

But when I write the SRAM from appln to the device thru driver, it takes
only few seconds to fill all the 32k…

when I write the SRAM thru a dll which has a function to fill SRAM which
is accessed in a application, the filling of SRAM of 32k takes almost 10
minutes…

APPln----->Driver—>fill SRAM (takes few seconds)

APPLN—>User-mode DLL—>Driver---->SRAM (takes 10 min)

why is the reason, any way to bring the time down…

thanx,

shiv