xref: /openbmc/linux/arch/x86/include/asm/intel-mid.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1b886d83cSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
205454c26SKuppuswamy Sathyanarayanan /*
3*c9c26882SAndy Shevchenko  * Intel MID specific setup code
405454c26SKuppuswamy Sathyanarayanan  *
5*c9c26882SAndy Shevchenko  * (C) Copyright 2009, 2021 Intel Corporation
605454c26SKuppuswamy Sathyanarayanan  */
705454c26SKuppuswamy Sathyanarayanan #ifndef _ASM_X86_INTEL_MID_H
805454c26SKuppuswamy Sathyanarayanan #define _ASM_X86_INTEL_MID_H
905454c26SKuppuswamy Sathyanarayanan 
105823d089SAndy Shevchenko #include <linux/pci.h>
1105454c26SKuppuswamy Sathyanarayanan 
12712b6aa8SKuppuswamy Sathyanarayanan extern int intel_mid_pci_init(void);
135823d089SAndy Shevchenko extern int intel_mid_pci_set_power_state(struct pci_dev *pdev, pci_power_t state);
14e8a6123eSLukas Wunner extern pci_power_t intel_mid_pci_get_power_state(struct pci_dev *pdev);
155823d089SAndy Shevchenko 
16bda7b072SAndy Shevchenko extern void intel_mid_pwr_power_off(void);
17bda7b072SAndy Shevchenko 
185823d089SAndy Shevchenko #define INTEL_MID_PWR_LSS_OFFSET	4
195823d089SAndy Shevchenko #define INTEL_MID_PWR_LSS_TYPE		(1 << 7)
205823d089SAndy Shevchenko 
215823d089SAndy Shevchenko extern int intel_mid_pwr_get_lss_id(struct pci_dev *pdev);
225823d089SAndy Shevchenko 
2305454c26SKuppuswamy Sathyanarayanan #endif /* _ASM_X86_INTEL_MID_H */
24