wis-i2c.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2005-2006 Micronas USA Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License (Version 2) as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software Foundation,
  15. * Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  16. */
  17. /* Temporary I2C IDs -- these need to be replaced with real registered IDs */
  18. #define I2C_DRIVERID_WIS_SAA7115 0xf0f0
  19. #define I2C_DRIVERID_WIS_UDA1342 0xf0f1
  20. #define I2C_DRIVERID_WIS_SONY_TUNER 0xf0f2
  21. #define I2C_DRIVERID_WIS_TW9903 0xf0f3
  22. #define I2C_DRIVERID_WIS_SAA7113 0xf0f4
  23. #define I2C_DRIVERID_WIS_OV7640 0xf0f5
  24. #define I2C_DRIVERID_WIS_TW2804 0xf0f6
  25. #define I2C_DRIVERID_S2250 0xf0f7
  26. /* Flag to indicate that the client needs to be accessed with SCCB semantics */
  27. /* We re-use the I2C_M_TEN value so the flag passes through the masks in the
  28. * core I2C code. Major kludge, but the I2C layer ain't exactly flexible. */
  29. #define I2C_CLIENT_SCCB 0x10
  30. /* Definitions for new video decoder commands */
  31. struct video_decoder_resolution {
  32. unsigned int width;
  33. unsigned int height;
  34. };
  35. #define DECODER_SET_RESOLUTION _IOW('d', 200, struct video_decoder_resolution)
  36. #define DECODER_SET_CHANNEL _IOW('d', 201, int)
  37. /* Sony tuner types */
  38. #define TUNER_SONY_BTF_PG472Z 200
  39. #define TUNER_SONY_BTF_PK467Z 201
  40. #define TUNER_SONY_BTF_PB463Z 202