tveeprom.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. */
  3. enum tveeprom_audio_processor {
  4. /* No audio processor present */
  5. TVEEPROM_AUDPROC_NONE,
  6. /* The audio processor is internal to the video processor */
  7. TVEEPROM_AUDPROC_INTERNAL,
  8. /* The audio processor is a MSPXXXX device */
  9. TVEEPROM_AUDPROC_MSP,
  10. /* The audio processor is another device */
  11. TVEEPROM_AUDPROC_OTHER,
  12. };
  13. struct tveeprom {
  14. u32 has_radio;
  15. /* If has_ir == 0, then it is unknown what the IR capabilities are,
  16. otherwise:
  17. bit 0: 1 (= IR capabilities are known)
  18. bit 1: IR receiver present
  19. bit 2: IR transmitter (blaster) present */
  20. u32 has_ir;
  21. u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
  22. u32 tuner_type;
  23. u32 tuner_formats;
  24. u32 tuner_hauppauge_model;
  25. u32 tuner2_type;
  26. u32 tuner2_formats;
  27. u32 tuner2_hauppauge_model;
  28. u32 digitizer;
  29. u32 digitizer_formats;
  30. u32 audio_processor;
  31. u32 decoder_processor;
  32. u32 model;
  33. u32 revision;
  34. u32 serial_number;
  35. char rev_str[5];
  36. u8 MAC_address[6];
  37. };
  38. void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
  39. unsigned char *eeprom_data);
  40. int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);