[BACK]Return to bktr_os.h CVS log [TXT][DIR] Up to [local] / sys / dev / pci / bktr

Annotation of sys/dev/pci/bktr/bktr_os.h, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: bktr_os.h,v 1.3 2007/06/11 08:10:22 robert Exp $      */
        !             2: /* $FreeBSD: src/sys/dev/bktr/bktr_os.h,v 1.4 2000/04/16 07:56:58 roger Exp $ */
        !             3:
        !             4: /*
        !             5:  * This is part of the Driver for Video Capture Cards (Frame grabbers)
        !             6:  * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
        !             7:  * chipset.
        !             8:  * Copyright Roger Hardiman and Amancio Hasty.
        !             9:  *
        !            10:  * bktr_os : This has all the Operating System dependant code.
        !            11:  *
        !            12:  */
        !            13:
        !            14: /*
        !            15:  * 1. Redistributions of source code must retain the
        !            16:  * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
        !            17:  * All rights reserved.
        !            18:  *
        !            19:  * Redistribution and use in source and binary forms, with or without
        !            20:  * modification, are permitted provided that the following conditions
        !            21:  * are met:
        !            22:  * 1. Redistributions of source code must retain the above copyright
        !            23:  *    notice, this list of conditions and the following disclaimer.
        !            24:  * 2. Redistributions in binary form must reproduce the above copyright
        !            25:  *    notice, this list of conditions and the following disclaimer in the
        !            26:  *    documentation and/or other materials provided with the distribution.
        !            27:  * 3. All advertising materials mentioning features or use of this software
        !            28:  *    must display the following acknowledgement:
        !            29:  *     This product includes software developed by Amancio Hasty and
        !            30:  *      Roger Hardiman
        !            31:  * 4. The name of the author may not be used to endorse or promote products
        !            32:  *    derived from this software without specific prior written permission.
        !            33:  *
        !            34:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            35:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        !            36:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        !            37:  * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
        !            38:  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        !            39:  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
        !            40:  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            41:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
        !            42:  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
        !            43:  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        !            44:  * POSSIBILITY OF SUCH DAMAGE.
        !            45:  */
        !            46:
        !            47:
        !            48: /******************************/
        !            49: /* *** Memory Allocation  *** */
        !            50: /******************************/
        !            51: vaddr_t                get_bktr_mem(bktr_ptr_t, bus_dmamap_t *, unsigned size);
        !            52: void            free_bktr_mem(bktr_ptr_t, bus_dmamap_t, vaddr_t);
        !            53:
        !            54: /************************************/
        !            55: /* *** Interrupt Enable/Disable *** */
        !            56: /************************************/
        !            57: #define DECLARE_INTR_MASK(s)   intrmask_t s
        !            58: #define DISABLE_INTR(s)                s=spltty()
        !            59: #define ENABLE_INTR(s)         splx(s)

CVSweb