media.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Multimedia device API
  3. *
  4. * Copyright (C) 2010 Nokia Corporation
  5. *
  6. * Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
  7. * Sakari Ailus <sakari.ailus@iki.fi>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. #ifndef __LINUX_MEDIA_H
  23. #define __LINUX_MEDIA_H
  24. #include <linux/ioctl.h>
  25. #include <linux/types.h>
  26. #include <linux/version.h>
  27. #define MEDIA_API_VERSION KERNEL_VERSION(0, 1, 0)
  28. struct media_device_info {
  29. char driver[16];
  30. char model[32];
  31. char serial[40];
  32. char bus_info[32];
  33. __u32 media_version;
  34. __u32 hw_revision;
  35. __u32 driver_version;
  36. __u32 reserved[31];
  37. };
  38. #define MEDIA_IOC_DEVICE_INFO _IOWR('M', 1, struct media_device_info)
  39. #endif /* __LINUX_MEDIA_H */