FreeBSD/Linux Kernel Cross Reference
sys/i386/isa/ctxreg.h
1 /*
2 *
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
9 *
10 * $FreeBSD$
11 */
12
13 /*
14 * Register and bit definitions for CORTEX-I frame grabber
15 */
16
17 #ifndef _I386_ISA_CTXREG_H_
18 #define _I386_ISA_CTXREG_H_
19
20 /* Control Ports (all are write-only) */
21
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 */
26
27 /* Status port (read-only but same address as control port 0) */
28
29 #define ctx_status 0 /* offset to status port */
30
31 /* Bit assignments for control port 0 */
32
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 */
39
40 /* Bit assignments for control port 1 */
41
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 */
48
49 /* Bit assignments for status port */
50
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 */
57
58
59 #endif /* ifndef _I386_ISA_CTXREG_H_ */
Cache object: 43b99aedca60f26972566c6382effe01
|