cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

pasemi.h (888B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef _PASEMI_PASEMI_H
      3#define _PASEMI_PASEMI_H
      4
      5extern time64_t pas_get_boot_time(void);
      6extern void pas_pci_init(void);
      7extern void pas_pci_irq_fixup(struct pci_dev *dev);
      8extern void pas_pci_dma_dev_setup(struct pci_dev *dev);
      9
     10void __iomem *__init pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset);
     11
     12extern void __init pasemi_map_registers(void);
     13
     14/* Power savings modes, implemented in asm */
     15extern void idle_spin(void);
     16extern void idle_doze(void);
     17
     18/* Restore astate to last set */
     19#ifdef CONFIG_PPC_PASEMI_CPUFREQ
     20extern int check_astate(void);
     21extern void restore_astate(int cpu);
     22#else
     23static inline int check_astate(void)
     24{
     25	/* Always return >0 so we never power save */
     26	return 1;
     27}
     28static inline void restore_astate(int cpu)
     29{
     30}
     31#endif
     32
     33extern struct pci_controller_ops pasemi_pci_controller_ops;
     34
     35#endif /* _PASEMI_PASEMI_H */