mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
- Renamed the directory to oak - Updated the make files to compile the source - Removed unused script ESDP-16549 Bug 3882239 Bug 3824037 Change-Id: I1dee5def85b6e25f88dff999f1051bfe62d5613b Signed-off-by: Sheetal Tigadoli <stigadoli@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2856988 Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
80 lines
2.5 KiB
C
80 lines
2.5 KiB
C
/*
|
|
*
|
|
* If you received this File from Marvell, you may opt to use, redistribute and/or
|
|
* modify this File in accordance with the terms and conditions of the General
|
|
* Public License Version 2, June 1991 (the "GPL License"), a copy of which is
|
|
* available along with the File in the license.txt file or by writing to the Free
|
|
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 or
|
|
* on the worldwide web at http://www.gnu.org/licenses/gpl.txt.
|
|
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY
|
|
* DISCLAIMED. The GPL License provides additional details about this warranty
|
|
* disclaimer.
|
|
*
|
|
*/
|
|
|
|
#ifdef CONFIG_PM
|
|
#ifndef H_OAK_DPM
|
|
#define H_OAK_DPM
|
|
|
|
#include <linux/pm_runtime.h>
|
|
#include "oak_unimac.h"
|
|
|
|
/* Name : init_hardware
|
|
* Returns : int
|
|
* Parameters : struct pci_dev *pdev
|
|
* Description : Initialize oak hardware.
|
|
*/
|
|
int oak_init_hardware(struct pci_dev *pdev);
|
|
|
|
/* Name : release_hardware
|
|
* Returns : void
|
|
* Parameters : struct pci_dev * pdev
|
|
* Description : Release oak hardware.
|
|
*/
|
|
void oak_release_hardware(struct pci_dev *pdev);
|
|
|
|
/* Name : oak_dpm_create_sysfs
|
|
* Returns : void
|
|
* Parameters : oak_t *np
|
|
* Description : This function creates sysfs entry for setting device power
|
|
* states D0, D1, D2 and D3.
|
|
*/
|
|
void oak_dpm_create_sysfs(oak_t *np);
|
|
|
|
/* Name : oak_dpm_remove_sysfs
|
|
* Returns : void
|
|
* Parameters : oak_t *np
|
|
* Description : This function removes sysfs entry of device power states
|
|
*/
|
|
void oak_dpm_remove_sysfs(oak_t *np);
|
|
|
|
#ifdef CONFIG_PM_SLEEP
|
|
|
|
/* Name : oak_dpm_suspend
|
|
* Returns : int
|
|
* Parameters : struct device *dev
|
|
* Description : This function is called when system goes into suspend state
|
|
* It puts the device into sleep state
|
|
*/
|
|
int __maybe_unused oak_dpm_suspend(struct device *dev);
|
|
|
|
/* Name : oak_dpm_resume
|
|
* Returns : int
|
|
* Parameters : struct device *dev
|
|
* Description : This function called when system goes into resume state and put
|
|
* the device into active state
|
|
*/
|
|
int __maybe_unused oak_dpm_resume(struct device *dev);
|
|
|
|
/* Name : oak_dpm_set_power_state
|
|
* Returns : void
|
|
* Parameters : struct device *dev, pci_power_t state
|
|
* Description : This function set the device power state
|
|
*/
|
|
void oak_dpm_set_power_state(struct device *dev, pci_power_t state);
|
|
|
|
#endif /* End of PM_SLEEP */
|
|
#endif /* End of H_OAK_DPM */
|
|
#endif /* End of PM */
|