Lines Matching refs:nxt2k
1 /* $NetBSD: nxt2k.c,v 1.7 2019/12/31 14:27:50 thorpej Exp $ */
30 __KERNEL_RCSID(0, "$NetBSD: nxt2k.c,v 1.7 2019/12/31 14:27:50 thorpej Exp $");
45 struct nxt2k {
54 static int nxt2k_init(struct nxt2k *);
56 static int nxt2k_writedata(struct nxt2k *, uint8_t, uint8_t *, size_t);
57 static int nxt2k_readdata(struct nxt2k *, uint8_t, uint8_t *, size_t);
58 static int nxt2k_writereg(struct nxt2k *, uint8_t, uint8_t *, size_t);
59 static int nxt2k_readreg(struct nxt2k*, uint8_t, uint8_t *, size_t);
61 static int nxt2k4_init(struct nxt2k *);
62 static bool nxt2k4_load_firmware(struct nxt2k *);
63 static void nxt2k4_mc_init(struct nxt2k *);
64 static void nxt2k_mc_start(struct nxt2k *);
65 static void nxt2k_mc_stop(struct nxt2k *);
66 static void nxt2k_agc_reset(struct nxt2k *);
70 nxt2k_writedata(struct nxt2k *nxt, uint8_t reg, uint8_t *data, size_t len)
92 nxt2k_readdata(struct nxt2k *nxt, uint8_t reg, uint8_t *data, size_t len)
108 nxt2k_writereg(struct nxt2k *nxt, uint8_t reg, uint8_t *data, size_t len)
138 nxt2k_readreg(struct nxt2k *nxt, uint8_t reg, uint8_t *data, size_t len)
166 nxt2k_agc_reset(struct nxt2k *nxt)
178 nxt2k_mc_stop(struct nxt2k *nxt)
204 nxt2k_mc_start(struct nxt2k *nxt)
213 nxt2k4_mc_init(struct nxt2k *nxt)
265 nxt2k4_load_firmware(struct nxt2k *nxt)
274 error = firmware_open("nxt2k", "dvb-fe-nxt2004.fw", &fh);
276 printf("nxt2k firmware_open fail %d\n", error);
284 printf("nxt2k firmware_malloc fail\n");
291 printf("nxt2k firmware_read fail %d\n", error);
302 printf("nxt2k firmware crc is %02x\n", crc);
348 nxt2k4_init(struct nxt2k *nxt)
498 nxt2k_get_signal(struct nxt2k *nxt)
516 nxt2k_get_snr(struct nxt2k *nxt)
548 nxt2k_get_dtv_status(struct nxt2k *nxt)
564 nxt2k_fe_read_ucblocks(struct nxt2k *nxt, uint32_t *ucblk)
575 nxt2k_fe_read_ber(struct nxt2k *nxt, uint32_t *ber)
588 nxt2k_fe_set_frontend(struct nxt2k *nxt, fe_modulation_t modulation)
762 nxt2k_init(struct nxt2k *nxt)
775 struct nxt2k *
778 struct nxt2k *nxt;
812 nxt2k_close(struct nxt2k *nxt)
818 nxt2k_enable(struct nxt2k *nxt, bool enable)
825 nxt2k_set_modulation(struct nxt2k *nxt, fe_modulation_t modulation)
830 MODULE(MODULE_CLASS_DRIVER, nxt2k, "i2cexec");