Path: blob/next/external/cache/sources/wl/include/bcmspi.h
18117 views
/*1* Broadcom SPI Low-Level Hardware Driver API2*3* $ Copyright Open Broadcom Corporation $4*5* $Id: bcmspi.h 241182 2011-02-17 21:50:03Z $6*/7#ifndef _BCM_SPI_H8#define _BCM_SPI_H910extern void spi_devintr_off(sdioh_info_t *sd);11extern void spi_devintr_on(sdioh_info_t *sd);12extern bool spi_start_clock(sdioh_info_t *sd, uint16 new_sd_divisor);13extern bool spi_controller_highspeed_mode(sdioh_info_t *sd, bool hsmode);14extern bool spi_check_client_intr(sdioh_info_t *sd, int *is_dev_intr);15extern bool spi_hw_attach(sdioh_info_t *sd);16extern bool spi_hw_detach(sdioh_info_t *sd);17extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen);18extern void spi_spinbits(sdioh_info_t *sd);19extern void spi_waitbits(sdioh_info_t *sd, bool yield);2021#endif /* _BCM_SPI_H */222324