Home | History | Annotate | Download | only in i2c

Lines Matching refs:xc5k

1 /* $NetBSD: xc5k.c,v 1.9 2018/09/03 16:29:31 riastradh Exp $ */
34 __KERNEL_RCSID(0, "$NetBSD: xc5k.c,v 1.9 2018/09/03 16:29:31 riastradh Exp $");
51 #define XC5K_FIRMWARE_DRVNAME "xc5k"
59 static int xc5k_reset(struct xc5k *);
60 static int xc5k_read_2(struct xc5k *, uint16_t, uint16_t *);
61 static int xc5k_write_buffer(struct xc5k *, const uint8_t *, size_t);
62 static int xc5k_firmware_open(struct xc5k *);
63 static int xc5k_firmware_upload(struct xc5k *, const uint8_t *, size_t);
66 xc5k_reset(struct xc5k *xc)
77 xc5k_firmware_upload(struct xc5k *xc, const uint8_t *fw, size_t fwlen)
129 xc5k_firmware_open(struct xc5k *xc)
159 aprint_normal_dev(xc->parent, "xc5k: loading firmware '%s/%s'\n",
178 aprint_normal_dev(xc->parent, "xc5k: hw %d.%d, fw %d.%d.%d\n",
189 "xc5k: couldn't open firmware '%s/%s' (error=%d)\n",
196 xc5k_read_2(struct xc5k *xc, uint16_t reg, uint16_t *val)
219 xc5k_write_buffer(struct xc5k *xc, const uint8_t *data, size_t datalen)
226 xc5k_write_2(struct xc5k *xc, uint16_t reg, uint16_t val)
251 struct xc5k *
256 struct xc5k *xc;
271 aprint_debug_dev(parent, "xc5k: product=0x%04x\n", product_id);
285 aprint_debug_dev(parent, "xc5k: product=0x%04x\n", product_id);
295 xc5k_close(struct xc5k *xc)
301 xc5k_tune_video(struct xc5k *xc, struct xc5k_params *params)
351 xc5k_tune_dtv(struct xc5k *xc, const struct dvb_frontend_parameters *params)
426 xc5k_get_status(struct xc5k *xc)
442 MODULE(MODULE_CLASS_DRIVER, xc5k, "i2cexec");