pcivar.h (264006) | pcivar.h (264007) |
---|---|
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 264006 2014-04-01 15:06:03Z rstone $ | 26 * $FreeBSD: head/sys/dev/pci/pcivar.h 264007 2014-04-01 15:47:24Z rstone $ |
27 * 28 */ 29 30#ifndef _PCIVAR_H_ 31#define _PCIVAR_H_ 32 33#include <sys/queue.h> 34 --- 442 unchanged lines hidden (view full) --- 477} 478 479static __inline int 480pci_msix_count(device_t dev) 481{ 482 return (PCI_MSIX_COUNT(device_get_parent(dev), dev)); 483} 484 | 27 * 28 */ 29 30#ifndef _PCIVAR_H_ 31#define _PCIVAR_H_ 32 33#include <sys/queue.h> 34 --- 442 unchanged lines hidden (view full) --- 477} 478 479static __inline int 480pci_msix_count(device_t dev) 481{ 482 return (PCI_MSIX_COUNT(device_get_parent(dev), dev)); 483} 484 |
485static __inline uint16_t 486pci_get_rid(device_t dev) 487{ 488 return (PCI_GET_RID(device_get_parent(dev), dev)); 489} 490 |
|
485device_t pci_find_bsf(uint8_t, uint8_t, uint8_t); 486device_t pci_find_dbsf(uint32_t, uint8_t, uint8_t, uint8_t); 487device_t pci_find_device(uint16_t, uint16_t); 488device_t pci_find_class(uint8_t class, uint8_t subclass); 489 490/* Can be used by drivers to manage the MSI-X table. */ 491int pci_pending_msix(device_t dev, u_int index); 492 --- 46 unchanged lines hidden --- | 491device_t pci_find_bsf(uint8_t, uint8_t, uint8_t); 492device_t pci_find_dbsf(uint32_t, uint8_t, uint8_t, uint8_t); 493device_t pci_find_device(uint16_t, uint16_t); 494device_t pci_find_class(uint8_t class, uint8_t subclass); 495 496/* Can be used by drivers to manage the MSI-X table. */ 497int pci_pending_msix(device_t dev, u_int index); 498 --- 46 unchanged lines hidden --- |