Deleted Added
full compact
bktr_reg.h (50477) bktr_reg.h (50693)
1/*
2 * Copyright (c) 1999 Roger Hardiman
3 * Copyright (c) 1998 Amancio Hasty
4 * Copyright (c) 1995 Mark Tinguely and Jim Lowe
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 1999 Roger Hardiman
3 * Copyright (c) 1998 Amancio Hasty
4 * Copyright (c) 1995 Mark Tinguely and Jim Lowe
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 16 unchanged lines hidden (view full) ---

25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/bktr/bktr_reg.h 50477 1999-08-28 01:08:13Z peter $
33 * $Id: brktree_reg.h,v 1.29 1999/06/12 14:54:56 roger Exp $
34 */
35#ifndef PCI_LATENCY_TIMER
36#define PCI_LATENCY_TIMER 0x0c /* pci timer register */
37#endif
38
39/*
40 * Definitions for the Brooktree 848/878 video capture to pci interface.
41 */

--- 365 unchanged lines hidden (view full) ---

407 struct device bktr_dev; /* base device */
408 bus_space_tag_t memt;
409 bus_space_handle_t memh;
410 bus_size_t obmemsz; /* size of en card (bytes) */
411 void *ih;
412 bus_dmamap_t dm_prog;
413 bus_dmamap_t dm_oprog;
414 bus_dmamap_t dm_mem;
34 */
35#ifndef PCI_LATENCY_TIMER
36#define PCI_LATENCY_TIMER 0x0c /* pci timer register */
37#endif
38
39/*
40 * Definitions for the Brooktree 848/878 video capture to pci interface.
41 */

--- 365 unchanged lines hidden (view full) ---

407 struct device bktr_dev; /* base device */
408 bus_space_tag_t memt;
409 bus_space_handle_t memh;
410 bus_size_t obmemsz; /* size of en card (bytes) */
411 void *ih;
412 bus_dmamap_t dm_prog;
413 bus_dmamap_t dm_oprog;
414 bus_dmamap_t dm_mem;
415 bus_dmamap_t dm_vbidata;
416 bus_dmamap_t dm_vbibuffer;
415 vm_offset_t phys_base; /* Bt848 register physical address */
416#endif
417
418#if defined(__OpenBSD__)
419 struct device bktr_dev; /* base device */
420 bus_dma_tag_t dmat; /* DMA tag */
421 bus_space_tag_t memt;
422 bus_space_handle_t memh;
423 bus_size_t obmemsz; /* size of en card (bytes) */
424 void *ih;
425 bus_dmamap_t dm_prog;
426 bus_dmamap_t dm_oprog;
427 bus_dmamap_t dm_mem;
417 vm_offset_t phys_base; /* Bt848 register physical address */
418#endif
419
420#if defined(__OpenBSD__)
421 struct device bktr_dev; /* base device */
422 bus_dma_tag_t dmat; /* DMA tag */
423 bus_space_tag_t memt;
424 bus_space_handle_t memh;
425 bus_size_t obmemsz; /* size of en card (bytes) */
426 void *ih;
427 bus_dmamap_t dm_prog;
428 bus_dmamap_t dm_oprog;
429 bus_dmamap_t dm_mem;
430 bus_dmamap_t dm_vbidata;
431 bus_dmamap_t dm_vbibuffer;
428 size_t dm_mapsize;
429 pci_chipset_tag_t pc; /* Opaque PCI chipset tag */
430 pcitag_t tag; /* PCI tag, for doing PCI commands */
431 vm_offset_t phys_base; /* Bt848 register physical address */
432#endif
433
434#if defined (__FreeBSD__)
435 #if (__FreeBSD_version < 400000)

--- 9 unchanged lines hidden (view full) ---

445 struct bktr_i2c_softc i2c_sc; /* bt848_i2c device */
446 #endif
447#endif
448
449 /* the following definitions are common over all platforms */
450 bt848_ptr_t base; /* Bt848 register physical address */
451 vm_offset_t bigbuf; /* buffer that holds the captured image */
452 int alloc_pages; /* number of pages in bigbuf */
432 size_t dm_mapsize;
433 pci_chipset_tag_t pc; /* Opaque PCI chipset tag */
434 pcitag_t tag; /* PCI tag, for doing PCI commands */
435 vm_offset_t phys_base; /* Bt848 register physical address */
436#endif
437
438#if defined (__FreeBSD__)
439 #if (__FreeBSD_version < 400000)

--- 9 unchanged lines hidden (view full) ---

449 struct bktr_i2c_softc i2c_sc; /* bt848_i2c device */
450 #endif
451#endif
452
453 /* the following definitions are common over all platforms */
454 bt848_ptr_t base; /* Bt848 register physical address */
455 vm_offset_t bigbuf; /* buffer that holds the captured image */
456 int alloc_pages; /* number of pages in bigbuf */
457
453 vm_offset_t vbidata; /* RISC program puts VBI data from the current frame here */
454 vm_offset_t vbibuffer; /* Circular buffer holding VBI data for the user */
455 int vbiinsert; /* Position for next write into circular buffer */
456 int vbistart; /* Position of last read from circular buffer */
457 int vbisize; /* Number of bytes in the circular buffer */
458 vm_offset_t vbidata; /* RISC program puts VBI data from the current frame here */
459 vm_offset_t vbibuffer; /* Circular buffer holding VBI data for the user */
460 int vbiinsert; /* Position for next write into circular buffer */
461 int vbistart; /* Position of last read from circular buffer */
462 int vbisize; /* Number of bytes in the circular buffer */
463 u_long vbi_sequence_number; /* sequence number for VBI */
464 int vbi_read_blocked; /* user process blocked on read() from /dev/vbi */
465 struct selinfo vbi_select; /* Data used by select() on /dev/vbi */
466
467
458 struct proc *proc; /* process to receive raised signal */
459 int signal; /* signal to send to process */
460 int clr_on_start; /* clear cap buf on capture start? */
461#define METEOR_SIG_MODE_MASK 0xffff0000
462#define METEOR_SIG_FIELD_MODE 0x00010000
463#define METEOR_SIG_FRAME_MODE 0x00000000
464 vm_offset_t dma_prog;
465 vm_offset_t odd_dma_prog;

--- 112 unchanged lines hidden ---
468 struct proc *proc; /* process to receive raised signal */
469 int signal; /* signal to send to process */
470 int clr_on_start; /* clear cap buf on capture start? */
471#define METEOR_SIG_MODE_MASK 0xffff0000
472#define METEOR_SIG_FIELD_MODE 0x00010000
473#define METEOR_SIG_FRAME_MODE 0x00000000
474 vm_offset_t dma_prog;
475 vm_offset_t odd_dma_prog;

--- 112 unchanged lines hidden ---