pciconf.h revision 173228
1166435Sjhb/*- 2173228Sjhb * Copyright (c) 2007 Yahoo!, Inc. 3166435Sjhb * All rights reserved. 4173228Sjhb * Written by: John Baldwin <jhb@FreeBSD.org> 5166435Sjhb * 6166435Sjhb * Redistribution and use in source and binary forms, with or without 7166435Sjhb * modification, are permitted provided that the following conditions 8166435Sjhb * are met: 9166435Sjhb * 1. Redistributions of source code must retain the above copyright 10166435Sjhb * notice, this list of conditions and the following disclaimer. 11166435Sjhb * 2. Redistributions in binary form must reproduce the above copyright 12166435Sjhb * notice, this list of conditions and the following disclaimer in the 13166435Sjhb * documentation and/or other materials provided with the distribution. 14166435Sjhb * 3. Neither the name of the author nor the names of any co-contributors 15166435Sjhb * may be used to endorse or promote products derived from this software 16166435Sjhb * without specific prior written permission. 17166435Sjhb * 18166435Sjhb * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 19166435Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20166435Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21166435Sjhb * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 22166435Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23166435Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24166435Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25166435Sjhb * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26166435Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27166435Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28166435Sjhb * SUCH DAMAGE. 29166435Sjhb * 30166435Sjhb * $FreeBSD: head/usr.sbin/pciconf/pciconf.h 173228 2007-10-31 16:14:30Z jhb $ 31166435Sjhb */ 32166435Sjhb 33166435Sjhb#ifndef __PCICONF_H__ 34166435Sjhb#define __PCICONF_H__ 35166435Sjhb 36166435Sjhbvoid list_caps(int fd, struct pci_conf *p); 37166435Sjhbuint32_t read_config(int fd, struct pcisel *sel, long reg, int width); 38166435Sjhb 39166435Sjhb#endif 40