Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * isl6421.h - driver for lnb supply and control ic ISL6421
0004  *
0005  * Copyright (C) 2006 Andrew de Quincey
0006  * Copyright (C) 2006 Oliver Endriss
0007  *
0008  * the project's page is at https://linuxtv.org
0009  */
0010 
0011 #ifndef _ISL6421_H
0012 #define _ISL6421_H
0013 
0014 #include <linux/dvb/frontend.h>
0015 
0016 /* system register bits */
0017 #define ISL6421_OLF1    0x01
0018 #define ISL6421_EN1 0x02
0019 #define ISL6421_VSEL1   0x04
0020 #define ISL6421_LLC1    0x08
0021 #define ISL6421_ENT1    0x10
0022 #define ISL6421_ISEL1   0x20
0023 #define ISL6421_DCL 0x40
0024 
0025 #if IS_REACHABLE(CONFIG_DVB_ISL6421)
0026 /* override_set and override_clear control which system register bits (above) to always set & clear */
0027 extern struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr,
0028               u8 override_set, u8 override_clear, bool override_tone);
0029 #else
0030 static inline struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr,
0031                           u8 override_set, u8 override_clear, bool override_tone)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif // CONFIG_DVB_ISL6421
0037 
0038 #endif