tveeprom.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. #include <linux/if_ether.h>
  14. struct tveeprom {
  15. u32 has_radio;
  16. /* If has_ir == 0, then it is unknown what the IR capabilities are,
  17. otherwise:
  18. bit 0: 1 (= IR capabilities are known)
  19. bit 1: IR receiver present
  20. bit 2: IR transmitter (blaster) present */
  21. u32 has_ir;
  22. u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
  23. u32 tuner_type;
  24. u32 tuner_formats;
  25. u32 tuner_hauppauge_model;
  26. u32 tuner2_type;
  27. u32 tuner2_formats;
  28. u32 tuner2_hauppauge_model;
  29. u32 digitizer;
  30. u32 digitizer_formats;
  31. u32 audio_processor;
  32. u32 decoder_processor;
  33. u32 model;
  34. u32 revision;
  35. u32 serial_number;
  36. char rev_str[5];
  37. u8 MAC_address[ETH_ALEN];
  38. };
  39. void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
  40. unsigned char *eeprom_data);
  41. int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);