pcivar.h (66416) | pcivar.h (69783) |
---|---|
1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/pci/pcivar.h 66416 2000-09-28 00:37:32Z peter $ | 26 * $FreeBSD: head/sys/dev/pci/pcivar.h 69783 2000-12-08 22:11:23Z msmith $ |
27 * 28 */ 29 30#ifndef _PCIVAR_H_ 31#define _PCIVAR_H_ 32 33#include <sys/queue.h> 34 --- 104 unchanged lines hidden (view full) --- 139struct pci_devinfo { 140 STAILQ_ENTRY(pci_devinfo) pci_links; 141 struct resource_list resources; 142 pcicfgregs cfg; 143 struct pci_conf conf; 144}; 145#endif 146 | 27 * 28 */ 29 30#ifndef _PCIVAR_H_ 31#define _PCIVAR_H_ 32 33#include <sys/queue.h> 34 --- 104 unchanged lines hidden (view full) --- 139struct pci_devinfo { 140 STAILQ_ENTRY(pci_devinfo) pci_links; 141 struct resource_list resources; 142 pcicfgregs cfg; 143 struct pci_conf conf; 144}; 145#endif 146 |
147/* externally visible functions */ 148 149const char *pci_ata_match(struct device *dev); 150const char *pci_usb_match(struct device *dev); 151const char *pci_vga_match(struct device *dev); 152const char *pci_chip_match(struct device *dev); 153 | |
154/* low level PCI config register functions provided by pcibus.c */ 155 156int pci_cfgread (pcicfgregs *cfg, int reg, int bytes); 157void pci_cfgwrite (pcicfgregs *cfg, int reg, int data, int bytes); 158 159#ifdef __alpha__ 160vm_offset_t pci_cvt_to_dense (vm_offset_t); 161vm_offset_t pci_cvt_to_bwx (vm_offset_t); --- 171 unchanged lines hidden --- | 147/* low level PCI config register functions provided by pcibus.c */ 148 149int pci_cfgread (pcicfgregs *cfg, int reg, int bytes); 150void pci_cfgwrite (pcicfgregs *cfg, int reg, int data, int bytes); 151 152#ifdef __alpha__ 153vm_offset_t pci_cvt_to_dense (vm_offset_t); 154vm_offset_t pci_cvt_to_bwx (vm_offset_t); --- 171 unchanged lines hidden --- |