1394util.h
Upload User: shyika
Upload Date: 2017-11-25
Package Size: 1227k
Code Size: 2k
Category:

Video Capture

Development Platform:

Unix_Linux

  1. /*
  2.     unicap
  3.     Copyright (C) 2004  Arne Caspari
  4.     This program is free software; you can redistribute it and/or modify
  5.     it under the terms of the GNU General Public License as published by
  6.     the Free Software Foundation; either version 2 of the License, or
  7.     (at your option) any later version.
  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.     You should have received a copy of the GNU General Public License
  13.     along with this program; if not, write to the Free Software
  14.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  15. */
  16. #ifndef __UTIL_H__
  17. #define __UTIL_H__
  18. #include <config.h>
  19. #include <unicap.h>
  20. #ifdef RAW1394_1_1_API
  21. #include <libraw1394/raw1394.h>
  22. #include <libraw1394/csr.h>
  23. #else
  24. #include <raw1394.h>
  25. #include <csr.h>
  26. #endif
  27. int cooked1394_read( raw1394handle_t handle, 
  28.      nodeid_t node, 
  29.      nodeaddr_t addr,
  30.      size_t length, 
  31.      quadlet_t *buffer );
  32. int cooked1394_write( raw1394handle_t handle, 
  33.       nodeid_t node, 
  34.       nodeaddr_t addr,
  35.       size_t length, 
  36.       quadlet_t *data);
  37. unsigned long long get_guid( raw1394handle_t handle, int phyID );
  38. unsigned int get_unit_spec_ID( raw1394handle_t handle, int phyID );
  39. unsigned int get_unit_sw_version( raw1394handle_t handle, int phyID );
  40. int _1394util_find_free_channel( raw1394handle_t raw1394handle );
  41. int _1394util_free_channel( raw1394handle_t raw1394handle, int channel );
  42. int _1394util_allocate_channel( raw1394handle_t raw1394handle, int channel );
  43. int _1394util_allocate_bandwidth( raw1394handle_t raw1394handle, int bandwidth );
  44. int _1394util_free_bandwidth( raw1394handle_t raw1394handle, int bandwidth );
  45. int _1394util_get_available_bandwidth( raw1394handle_t raw1394handle );
  46. unicap_status_t _1394util_send_fcp_command_ext( raw1394handle_t raw1394handle, 
  47. nodeid_t nodeid,
  48. unsigned long long fcp_command,
  49. unsigned long *sync_bit_store,
  50. void *data, 
  51. size_t data_length, 
  52. unsigned long *response );
  53. unsigned long bswap( unsigned long v );
  54. quadlet_t bitswap( quadlet_t value );
  55. #endif //__UTIL_H__