The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/isa/ctxreg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.