tveeprom.h 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. */
  3. struct tveeprom {
  4. u32 has_radio;
  5. /* If has_ir == 0, then it is unknown what the IR capabilities are,
  6. otherwise:
  7. bit 0: 1 (= IR capabilities are known)
  8. bit 1: IR receiver present
  9. bit 2: IR transmitter (blaster) present */
  10. u32 has_ir;
  11. u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
  12. u32 tuner_type;
  13. u32 tuner_formats;
  14. u32 tuner_hauppauge_model;
  15. u32 tuner2_type;
  16. u32 tuner2_formats;
  17. u32 tuner2_hauppauge_model;
  18. u32 digitizer;
  19. u32 digitizer_formats;
  20. u32 audio_processor;
  21. u32 decoder_processor;
  22. u32 model;
  23. u32 revision;
  24. u32 serial_number;
  25. char rev_str[5];
  26. u8 MAC_address[6];
  27. };
  28. void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
  29. unsigned char *eeprom_data);
  30. int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);