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

host.h (534B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __DRIVERS_USB_CHIPIDEA_HOST_H
      3#define __DRIVERS_USB_CHIPIDEA_HOST_H
      4
      5#ifdef CONFIG_USB_CHIPIDEA_HOST
      6
      7int ci_hdrc_host_init(struct ci_hdrc *ci);
      8void ci_hdrc_host_destroy(struct ci_hdrc *ci);
      9void ci_hdrc_host_driver_init(void);
     10
     11#else
     12
     13static inline int ci_hdrc_host_init(struct ci_hdrc *ci)
     14{
     15	return -ENXIO;
     16}
     17
     18static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci)
     19{
     20
     21}
     22
     23static inline void ci_hdrc_host_driver_init(void)
     24{
     25
     26}
     27
     28#endif
     29
     30#endif /* __DRIVERS_USB_CHIPIDEA_HOST_H */