Welcome to WinForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

COM_PowerUp & COM_PowerDown APIs

 
   Windows XP (Home) -> XP Device Driver RSS
Next:  Bad Live TV Signal  
Author Message
Ramesh.R

External


Since: Dec 20, 2007
Posts: 1



(Msg. 1) Posted: Thu Dec 20, 2007 5:45 am
Post subject: COM_PowerUp & COM_PowerDown APIs
Archived from groups: microsoft>public>windowsxp>device_driver>dev (more info?)

Hi ,

I am developing the Power Management APIs in my SDIO-UART
serial driver for Windows Mobiles in WinCE 5.0 platform builder.

Here is my code for PowerDown case:


BOOL
COM_PowerDown(
HANDLE pHead /*@parm Handle to device. */
)
{
PHW_INDEP_INFO pHWIHead = (PHW_INDEP_INFO)pHead;

DbgPrint(" COM_PowerDown \r\n");

if ( pHWIHead ) {
PHWOBJ pHWObj = (PHWOBJ)pHWIHead->pHWObj;
return(pHWObj->pFuncTbl->HWPowerOff(pHWIHead->pHWHead));
} else {
return(1);
}

}

And the " HWPowerOff() " is mapped into " SerPowerOff()"

static
BOOL
SerPowerOff(
PVOID pHead // @parm PVOID returned by SerInit.
)
{
PSER_INFO pHWHead = (PSER_INFO)pHead;

DbgPrint(" + SerPowerOff \r\n");
// First, power down the UART
SL_PowerOff( pHWHead );

// And then disable our IR and 9 Pin interface
#ifdef WAKEUPONTHISDEVICE
if (pHWHead->LastDx != D3) // If we are wakeup sources do not
turn it off.
SerSetOutputMode( pHWHead, FALSE, FALSE );
#else
SerSetOutputMode( pHWHead, FALSE, FALSE );
#endif
DbgPrint(" - SerPowerOff \r\n");
return (TRUE);
}

Here I called the API " SL_PowerOff() "

in such case, i don't know what to write for this API...

VOID SL_PowerOff(PVOID pHead )
{
// --- Need to write
}


When we testing with these APIs( by putting debug messages), the
COM_PowerUp & COM_PowerDown APIs itself is not called by the OS/
Kernel. Am I need to register these APIs with any interface APIs?

If any one of you have ideas on power management APIs, please help on
this issue.

Here the problem is while sleep-mode and soft-reset , and the SDIO
card is also
inserted in SD-Slot condition, the driver is not getting loaded.

If you give any hint/document/link/code-snippet, I will be thankful.

I gone through the Microsoft Documentation.
It did not helped me.

Regards,

 >> Stay informed about: COM_PowerUp & COM_PowerDown APIs 
Back to top
Login to vote
Display posts from previous:   
   Windows XP (Home) -> XP Device Driver All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Windows Vista!
 Win 2000/NT/98/ME


[ Contact us | Terms of Service/Privacy Policy ]