Gossamer Forum
Home : General : Internet Technologies :

[ACPI] Driver context in pm_callback

Quote Reply
[ACPI] Driver context in pm_callback
Hi,

I'm trying to add ACPI support in my ethernet device driver. But I'm not sure how to obtain the adapter/device context in the power management callback function.

Please help me out.

The prototype of the callback function is :

int (*pm_callback) (struct pm_dev *dev, pm_request_t rqst, void *data);

dev - PM device previously returned from pm_register

rqst - request type ( PM_SUSPEND or PM_RESUME)

data - data if any associated with the request, like Power state to suspend to

Thanks,

Valli.
Quote Reply
Re: [valli_bsn] [ACPI] Driver context in pm_callback In reply to
Maybe something here will help?

http://sourceforge.net/projects/acpi

Btw, is that C or C++ code?