3 * Copyright (C) 1994, Paul S. LaFollette, Jr. This software may be used,
4 * modified, copied, distributed, and sold, in both source and binary form
5 * provided that the above copyright and these terms are retained. Under
6 * no circumstances is the author responsible for the proper functioning
7 * of this software, nor does the author assume any responsibility
8 * for damages incurred with its use
14 * Register and bit definitions for CORTEX-I frame grabber
17 #ifndef _I386_ISA_CTXREG_H_
18 #define _I386_ISA_CTXREG_H_
20 /* Control Ports (all are write-only) */
22 #define ctx_cp0 0 /* offset to control port 0 */
23 #define ctx_cp1 1 /* offset to control port 1 */
24 #define ctx_lutaddr 2 /* offset to lut address port */
25 #define ctx_lutdata 3 /* offset to lut data port */
27 /* Status port (read-only but same address as control port 0) */
29 #define ctx_status 0 /* offset to status port */
31 /* Bit assignments for control port 0 */
33 #define PAGE_SELECT0 1 /* These two bits choose which 1/4 of the */
34 #define PAGE_SELECT1 2 /* video memory is accessible to us. */
35 #define PAGE_ROTATE 4 /* 0 => horizontal access. 1 => vertical */
36 #define ACQUIRE 8 /* set to start frame grab */
37 #define SEE_STORED_VIDEO 16 /* set to allow stored frame to be seen */
38 #define LOW_RESOLUTION 32 /* set to enable 256 x 256 mode */
40 /* Bit assignments for control port 1 */
42 #define INTERRUPT_ENABLE 1 /* Allow interrupts (we avoid this bit) */
43 #define TRIGGER_ENABLE 2 /* Enable external trigger for frame grab */
44 #define LUT_LOAD_ENABLE 4 /* Allow loading of lookup table */
45 #define BLANK_DISPLAY 8 /* Turn off display */
46 #define AB_SELECT 16 /* Along with HW switch, choose base memory */
47 #define RAM_ENABLE 32 /* Connect video RAM to computer bus */
49 /* Bit assignments for status port */
51 #define INTERRUPT_STATUS 1 /* Ignored by us */
52 #define ADC_OVERFLOW 2 /* Set if any pixes from camera "too bright"*/
53 #define FIELD 4 /* 0 or 1 shows which interlace field are in*/
54 #define VERTICAL_BLANK 8 /* 1 if in vertical blanking interval */
55 #define TRIGGERED 16 /* 1 if HW trigger contacts closed */
56 #define ACQUIRING_ACK 32 /* 1 if currently grabbing a frame */
59 #endif /* ifndef _I386_ISA_CTXREG_H_ */