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_iproc.h (1489B)


      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_IPROC_H__
     24 #define __SHBDE_IPROC_H__
     25 
     26 #include <shbde.h>
     27 
     28 extern int
     29 shbde_iproc_config_init(shbde_iproc_config_t *icfg,
     30                         unsigned int dev_id, unsigned int dev_rev);
     31 
     32 extern int
     33 shbde_iproc_paxb_init(shbde_hal_t *shbde, void *iproc_regs,
     34                       shbde_iproc_config_t *icfg);
     35 
     36 extern unsigned int
     37 shbde_iproc_pci_read(shbde_hal_t *shbde, void *iproc_regs,
     38                      unsigned int addr);
     39 
     40 extern void
     41 shbde_iproc_pci_write(shbde_hal_t *shbde, void *iproc_regs,
     42                       unsigned int addr, unsigned int data);
     43 
     44 extern int
     45 shbde_iproc_pcie_preemphasis_set(shbde_hal_t *shbde, void *iproc_regs,
     46                                  shbde_iproc_config_t *icfg, void *pci_dev);
     47 
     48 #endif /* __SHBDE_IPROC_H__ */