sp887x.h 693 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. Driver for the Spase sp887x demodulator
  3. */
  4. #ifndef SP887X_H
  5. #define SP887X_H
  6. #include <linux/dvb/frontend.h>
  7. #include <linux/firmware.h>
  8. struct sp887x_config
  9. {
  10. /* the demodulator's i2c address */
  11. u8 demod_address;
  12. /* PLL maintenance */
  13. int (*pll_init)(struct dvb_frontend* fe);
  14. /* this should return the actual frequency tuned to */
  15. int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
  16. /* request firmware for device */
  17. int (*request_firmware)(struct dvb_frontend* fe, const struct firmware **fw, char* name);
  18. };
  19. extern struct dvb_frontend* sp887x_attach(const struct sp887x_config* config,
  20. struct i2c_adapter* i2c);
  21. #endif // SP887X_H