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

spi.h (577B)


      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  * File:        spi.h
      8  * Purpose:     Base definitions for SPI routines
      9  * Requires:    
     10  */
     11 
     12 #ifndef _SOC_SPI_H
     13 #define _SOC_SPI_H
     14 
     15 
     16 #include <soc/defs.h>
     17 #include <soc/field.h>
     18 
     19 
     20 /* SOC SPI Routines */
     21 extern int soc_spi_read(int unit, uint32 addr, uint8 *buf, int len);
     22 extern int soc_spi_write(int unit, uint32 addr, uint8 *buf, int len);
     23 
     24 
     25 #endif	/* !_SOC_SPI_H */