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 (1360B)


      1 /*
      2  * Copyright 2017 Broadcom
      3  * 
      4  * This program is free software; you can redistribute it and/or modify
      5  * it under the terms of the GNU General Public License, version 2, as
      6  * published by the Free Software Foundation (the "GPL").
      7  * 
      8  * This program is distributed in the hope that it will be useful, but
      9  * WITHOUT ANY WARRANTY; without even the implied warranty of
     10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     11  * General Public License version 2 (GPLv2) for more details.
     12  * 
     13  * You should have received a copy of the GNU General Public License
     14  * version 2 (GPLv2) along with this source code.
     15  */
     16 /*
     17  * $Id: $
     18  * $Copyright: (c) 2014 Broadcom Corp.
     19  * All Rights Reserved.$
     20  *
     21  */
     22 
     23 #ifndef __SHBDE_PCI_H__
     24 #define __SHBDE_PCI_H__
     25 
     26 #include <shbde.h>
     27 
     28 extern unsigned int
     29 shbde_pci_pcie_cap(shbde_hal_t *shbde, void *pci_dev);
     30 
     31 extern int
     32 shbde_pci_is_pcie(shbde_hal_t *shbde, void *pci_dev);
     33 
     34 extern int
     35 shbde_pci_is_iproc(shbde_hal_t *shbde, void *pci_dev, int *cmic_bar);
     36 
     37 extern int
     38 shbde_pci_max_payload_set(shbde_hal_t *shbde, void *pci_dev, int maxpayload);
     39 
     40 extern int
     41 shbde_pci_iproc_version_get(shbde_hal_t *shbde, void *pci_dev,
     42                             unsigned int *iproc_ver,
     43                             unsigned int *cmic_ver,
     44                             unsigned int *cmic_rev);
     45 
     46 #endif /* __SHBDE_PCI_H__ */