openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

shbde_pci.h (854B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      6  */
      7 
      8 #ifndef __SHBDE_PCI_H__
      9 #define __SHBDE_PCI_H__
     10 
     11 #include <shbde.h>
     12 
     13 extern unsigned int
     14 shbde_pci_pcie_cap(shbde_hal_t *shbde, void *pci_dev);
     15 
     16 extern int
     17 shbde_pci_is_pcie(shbde_hal_t *shbde, void *pci_dev);
     18 
     19 extern int
     20 shbde_pci_is_iproc(shbde_hal_t *shbde, void *pci_dev, int *cmic_bar);
     21 
     22 extern int
     23 shbde_pci_max_payload_set(shbde_hal_t *shbde, void *pci_dev, int maxpayload);
     24 
     25 extern int
     26 shbde_pci_iproc_version_get(shbde_hal_t *shbde, void *pci_dev,
     27                             unsigned int *iproc_ver,
     28                             unsigned int *cmic_ver,
     29                             unsigned int *cmic_rev);
     30 
     31 #endif /* __SHBDE_PCI_H__ */