xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

Pci.c (7132B)


      1 /*
      2  * Copyright 1998 by Concurrent Computer Corporation
      3  *
      4  * Permission to use, copy, modify, distribute, and sell this software
      5  * and its documentation for any purpose is hereby granted without fee,
      6  * provided that the above copyright notice appear in all copies and that
      7  * both that copyright notice and this permission notice appear in
      8  * supporting documentation, and that the name of Concurrent Computer
      9  * Corporation not be used in advertising or publicity pertaining to
     10  * distribution of the software without specific, written prior
     11  * permission.  Concurrent Computer Corporation makes no representations
     12  * about the suitability of this software for any purpose.  It is
     13  * provided "as is" without express or implied warranty.
     14  *
     15  * CONCURRENT COMPUTER CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD
     16  * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
     17  * AND FITNESS, IN NO EVENT SHALL CONCURRENT COMPUTER CORPORATION BE
     18  * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
     19  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     20  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     21  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
     22  * SOFTWARE.
     23  *
     24  * Copyright 1998 by Metro Link Incorporated
     25  *
     26  * Permission to use, copy, modify, distribute, and sell this software
     27  * and its documentation for any purpose is hereby granted without fee,
     28  * provided that the above copyright notice appear in all copies and that
     29  * both that copyright notice and this permission notice appear in
     30  * supporting documentation, and that the name of Metro Link
     31  * Incorporated not be used in advertising or publicity pertaining to
     32  * distribution of the software without specific, written prior
     33  * permission.  Metro Link Incorporated makes no representations
     34  * about the suitability of this software for any purpose.  It is
     35  * provided "as is" without express or implied warranty.
     36  *
     37  * METRO LINK INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD
     38  * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
     39  * AND FITNESS, IN NO EVENT SHALL METRO LINK INCORPORATED BE
     40  * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
     41  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
     42  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
     43  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
     44  * SOFTWARE.
     45  *
     46  * This software is derived from the original XFree86 PCI code
     47  * which includes the following copyright notices as well:
     48  *
     49  * Copyright 1995 by Robin Cutshaw <robin@XFree86.Org>
     50  *
     51  * Permission to use, copy, modify, distribute, and sell this software and its
     52  * documentation for any purpose is hereby granted without fee, provided that
     53  * the above copyright notice appear in all copies and that both that
     54  * copyright notice and this permission notice appear in supporting
     55  * documentation, and that the names of the above listed copyright holder(s)
     56  * not be used in advertising or publicity pertaining to distribution of
     57  * the software without specific, written prior permission.  The above listed
     58  * copyright holder(s) make(s) no representations about the suitability of this
     59  * software for any purpose.  It is provided "as is" without express or
     60  * implied warranty.
     61  *
     62  * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM(S) ALL WARRANTIES WITH REGARD
     63  * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
     64  * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
     65  * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
     66  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
     67  * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
     68  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     69  *
     70  * This code is also based heavily on the code in FreeBSD-current, which was
     71  * written by Wolfgang Stanglmeier, and contains the following copyright:
     72  *
     73  * Redistribution and use in source and binary forms, with or without
     74  * modification, are permitted provided that the following conditions
     75  * are met:
     76  * 1. Redistributions of source code must retain the above copyright
     77  *    notice, this list of conditions and the following disclaimer.
     78  * 2. Redistributions in binary form must reproduce the above copyright
     79  *    notice, this list of conditions and the following disclaimer in the
     80  *    documentation and/or other materials provided with the distribution.
     81  * 3. The name of the author may not be used to endorse or promote products
     82  *    derived from this software without specific prior written permission.
     83  *
     84  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     85  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     86  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     87  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     88  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     89  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     90  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     91  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     92  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     93  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     94  *
     95  */
     96 /*
     97  * Copyright (c) 1999-2003 by The XFree86 Project, Inc.
     98  *
     99  * Permission is hereby granted, free of charge, to any person obtaining a
    100  * copy of this software and associated documentation files (the "Software"),
    101  * to deal in the Software without restriction, including without limitation
    102  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    103  * and/or sell copies of the Software, and to permit persons to whom the
    104  * Software is furnished to do so, subject to the following conditions:
    105  *
    106  * The above copyright notice and this permission notice shall be included in
    107  * all copies or substantial portions of the Software.
    108  *
    109  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    110  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    111  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
    112  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
    113  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
    114  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    115  * OTHER DEALINGS IN THE SOFTWARE.
    116  *
    117  * Except as contained in this notice, the name of the copyright holder(s)
    118  * and author(s) shall not be used in advertising or otherwise to promote
    119  * the sale, use or other dealings in this Software without prior written
    120  * authorization from the copyright holder(s) and author(s).
    121  */
    122 
    123 #ifdef HAVE_XORG_CONFIG_H
    124 #include <xorg-config.h>
    125 #endif
    126 
    127 #include "Pci.h"
    128 
    129 Bool
    130 xf86scanpci(void)
    131 {
    132     Bool success = FALSE;
    133 
    134     success = (pci_system_init() == 0);
    135 
    136     /* choose correct platform/OS specific PCI init routine */
    137     osPciInit();
    138 
    139     return success;
    140 }