/*
 *	fr.h	- Defines for The CineLink(tm) Device Driver
 *
 *	By Eric Lavitsky
 *	V1.0 - 7/5/90
 *
 *	Copyright (C) 1990 Active Circuits, Inc.
 *	All Rights Reserved
 */

#define	FRNAME	"ACI-fr.device"

struct IOExtFr {
	struct IOStdReq	IOFr;	/* Standard IORequest linkage */
	SHORT	fr_Pass;	/* Which color pass is this? */
	SHORT	fr_Film;	/* The Film type */
	SHORT	fr_Color;	/* The Color shading type */
	SHORT	fr_Cont;	/* The Exposure contrast */
	SHORT	fr_Res;		/* The Slide resolution */
	SHORT	fr_RedBal;	/* The Red color balance */
	SHORT	fr_GrnBal;	/* The Green color balance */
	SHORT	fr_BluBal;	/* The Blue color balance */
	USHORT	fr_Width;	/* The width in pixels of the source image */
	USHORT	fr_Height;	/* The height in pixels of the source image */
	USHORT	Reserved2;	/* Likely to become x aspect */
	USHORT	Reserved3;	/* Likely to become y aspect */
	USHORT	Reserved4;	/* Just padding for now */
};

#define	FRCMD_BEGIN	(CMD_NONSTD+0)
#define	FRCMD_END	(CMD_NONSTD+1)
#define	FRCMD_QUERY	(CMD_NONSTD+2)	/* Retrieve current device settings */
#define	FRCMD_SETPARAMS	(CMD_NONSTD+3)	/* Set current device settings */
#define	FRCMD_INIT	(CMD_NONSTD+4)	/* Tell the driver what SCSI unit, device etc. */
#define	FRCMD_SKIP	(CMD_NONSTD+5)	/* Skip n lines (black) on exposure */

/* FR Device Error codes go here */
#define	Fr_Err_None	0
#define	Fr_Err_SCSIOpen	1
#define	Fr_Err_SCSI	2
#define	Fr_Err_NoMem	3
#define	Fr_Err_NotReady	4
#define	Fr_Err_NoFilm	5
#define	Fr_Err_BadFilm	6
#define	Fr_Err_Fatal	7
#define	Fr_Err_NonFatal	8
#define	Fr_Err_Unknown	9

/* Here are the various parameter flags for the FR */
/* Color Pass - for fr_Pass */
#define	RED		0
#define	GREEN		1
#define	BLUE		2

/* Resolutions - for fr_Res */
#define	FAST_RES	0	/* 2K Resolution */
#define	FINE_RES	1	/* 4K Resolution */

/* Film Types  - for fr_Film */
#define	EKT_100		1	/* Kodak Ektachrome 100 ASA */
#define	POL_HC		2	/* High Contrast Polachrome Instant 35mm */
#define	POL_339		3	/* Polaroid Instant Paper Film */
#define	POL_669		4	/* Polaroid Instant Color Print */
#define	POL_691		5	/* Polaroid Instant Color Overhead */
#define	KOD_100		6	/* Kodak Kodacolor 100 ASA */
#define EKT_4X5		7	/* Kodak Ektachrome 4x5 100 ASA */
#define EKT_8X10	8	/* Kodak Ektachrome 8x10 */


/* Film Modifiers (Color Types) - for fr_Cont, fr_Color */
#define HARD_CONTRAST	0	/* High Contrast */
#define FAST_COLOR	0	/* Fast Color (7-bit lookup) */
#define	FINE_COLOR	16	/* Fine Color Shading (8-bit lookup) */
#define	LOW_CONTRAST	32	/* Low Contrast */
#define EXTRA_FINE	128	/* 11-bit lookup table for LFR+ */

