dcam.h revision 8eea8e29cc4374d1ee24c25a07f45af132db3499
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/dditypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#define LP64_PTR_SIZE 8
#define DCAM_POWER_OFF 0 /* power management state */
#define DCAM_POWER_ON 1
#define DCAM1394_FLAG_FRAME_RCV_INIT 0x10
#define DCAM1394_FLAG_FRAME_RCVING 0x20
#define DCAM1394_FLAG_READ_REQ_PROC 0x40
#define DCAM1394_FLAG_READ_REQ_INVALID 0x80
#define IS_VALID 0x1
#define IS_PRESENT 0x2
#define CAP_GET 0x4
#define CAP_SET 0x8
#define CAP_CTRL_SET 0x10
#define MAX_STR_LEN 50
typedef uint_t
typedef struct buff_info_s {
unsigned int seq_num;
} buff_info_t;
#define MAX_NUM_READ_PTRS 1
typedef struct ring_buff_s {
int num_read_ptrs;
int read_ptr_incr_val;
} ring_buff_t;
typedef struct dcam_state_s {
int instance;
int usr_model;
unsigned int seq_count;
int cur_vid_mode;
int cur_frame_rate;
int param_status;
struct pollhead dcam_pollhead;
int camera_online;
int pm_open_count;
int pm_cable_power;
int suspended;
} dcam_state_t;
int _init(void);
int _fini(void);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_1394_TARGETS_DCAM1394_DCAM_H */