1*0a6a1f1dSLionel Sambuc /* $NetBSD: pci_verbose.c,v 1.9 2014/09/21 14:30:22 christos Exp $ */ 27eb99bdaSLionel Sambuc 37eb99bdaSLionel Sambuc /* 4*0a6a1f1dSLionel Sambuc * Copyright (c) 2014 The NetBSD Foundation, Inc. 5*0a6a1f1dSLionel Sambuc * All rights reserved. 67eb99bdaSLionel Sambuc * 77eb99bdaSLionel Sambuc * Redistribution and use in source and binary forms, with or without 87eb99bdaSLionel Sambuc * modification, are permitted provided that the following conditions 97eb99bdaSLionel Sambuc * are met: 107eb99bdaSLionel Sambuc * 1. Redistributions of source code must retain the above copyright 117eb99bdaSLionel Sambuc * notice, this list of conditions and the following disclaimer. 127eb99bdaSLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright 137eb99bdaSLionel Sambuc * notice, this list of conditions and the following disclaimer in the 147eb99bdaSLionel Sambuc * documentation and/or other materials provided with the distribution. 157eb99bdaSLionel Sambuc * 16*0a6a1f1dSLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17*0a6a1f1dSLionel Sambuc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18*0a6a1f1dSLionel Sambuc * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19*0a6a1f1dSLionel Sambuc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20*0a6a1f1dSLionel Sambuc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21*0a6a1f1dSLionel Sambuc * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22*0a6a1f1dSLionel Sambuc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*0a6a1f1dSLionel Sambuc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24*0a6a1f1dSLionel Sambuc * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25*0a6a1f1dSLionel Sambuc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26*0a6a1f1dSLionel Sambuc * POSSIBILITY OF SUCH DAMAGE. 277eb99bdaSLionel Sambuc */ 287eb99bdaSLionel Sambuc 297eb99bdaSLionel Sambuc /* 307eb99bdaSLionel Sambuc * PCI autoconfiguration support functions. 317eb99bdaSLionel Sambuc * 327eb99bdaSLionel Sambuc * Note: This file is also built into a userland library (libpci). 337eb99bdaSLionel Sambuc * Pay attention to this when you make modifications. 347eb99bdaSLionel Sambuc */ 357eb99bdaSLionel Sambuc 367eb99bdaSLionel Sambuc #include <sys/cdefs.h> 37*0a6a1f1dSLionel Sambuc __KERNEL_RCSID(0, "$NetBSD: pci_verbose.c,v 1.9 2014/09/21 14:30:22 christos Exp $"); 387eb99bdaSLionel Sambuc 397eb99bdaSLionel Sambuc #include <sys/param.h> 407eb99bdaSLionel Sambuc 417eb99bdaSLionel Sambuc #ifdef _KERNEL 427eb99bdaSLionel Sambuc #include <sys/module.h> 437eb99bdaSLionel Sambuc #else 447eb99bdaSLionel Sambuc #include <pci.h> 45*0a6a1f1dSLionel Sambuc #include <string.h> 467eb99bdaSLionel Sambuc #endif 477eb99bdaSLionel Sambuc 487eb99bdaSLionel Sambuc #include <dev/pci/pcireg.h> 497eb99bdaSLionel Sambuc #include <dev/pci/pcidevs.h> 507eb99bdaSLionel Sambuc #include <dev/pci/pci_verbose.h> 517eb99bdaSLionel Sambuc #include <dev/pci/pcidevs_data.h> 527eb99bdaSLionel Sambuc 53*0a6a1f1dSLionel Sambuc DEV_VERBOSE_MODULE_DEFINE(pci, "pci") 54