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

lnbh24.h (1056B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2/*
      3 * lnbh24.h - driver for lnb supply and control ic lnbh24
      4 *
      5 * Copyright (C) 2009 NetUP Inc.
      6 * Copyright (C) 2009 Igor M. Liplianin <liplianin@netup.ru>
      7 */
      8
      9#ifndef _LNBH24_H
     10#define _LNBH24_H
     11
     12/* system register bits */
     13#define LNBH24_OLF	0x01
     14#define LNBH24_OTF	0x02
     15#define LNBH24_EN	0x04
     16#define LNBH24_VSEL	0x08
     17#define LNBH24_LLC	0x10
     18#define LNBH24_TEN	0x20
     19#define LNBH24_TTX	0x40
     20#define LNBH24_PCL	0x80
     21
     22#include <linux/dvb/frontend.h>
     23
     24#if IS_REACHABLE(CONFIG_DVB_LNBP21)
     25/* override_set and override_clear control which
     26   system register bits (above) to always set & clear */
     27extern struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
     28				struct i2c_adapter *i2c, u8 override_set,
     29				u8 override_clear, u8 i2c_addr);
     30#else
     31static inline struct dvb_frontend *lnbh24_attach(struct dvb_frontend *fe,
     32				struct i2c_adapter *i2c, u8 override_set,
     33				u8 override_clear, u8 i2c_addr)
     34{
     35	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
     36	return NULL;
     37}
     38#endif
     39
     40#endif