/hardware/broadcom/wlan/bcm4329/src/include/ |
D | bcmsdbus.h | 53 typedef struct sdioh_info sdioh_info_t; typedef 62 extern sdioh_info_t * sdioh_attach(osl_t *osh, void *cfghdl, uint irq); 63 extern SDIOH_API_RC sdioh_detach(osl_t *osh, sdioh_info_t *si); 64 extern SDIOH_API_RC sdioh_interrupt_register(sdioh_info_t *si, sdioh_cb_fn_t fn, void *argh); 65 extern SDIOH_API_RC sdioh_interrupt_deregister(sdioh_info_t *si); 68 extern SDIOH_API_RC sdioh_interrupt_query(sdioh_info_t *si, bool *onoff); 71 extern SDIOH_API_RC sdioh_interrupt_set(sdioh_info_t *si, bool enable_disable); 74 extern bool sdioh_interrupt_pending(sdioh_info_t *si); 78 extern SDIOH_API_RC sdioh_request_byte(sdioh_info_t *si, uint rw, uint fnc, uint addr, uint8 *byte); 81 extern SDIOH_API_RC sdioh_request_word(sdioh_info_t *si, uint cmd_type, uint rw, uint fnc, [all …]
|
D | bcmspi.h | 27 extern void spi_devintr_off(sdioh_info_t *sd); 28 extern void spi_devintr_on(sdioh_info_t *sd); 29 extern bool spi_start_clock(sdioh_info_t *sd, uint16 new_sd_divisor); 30 extern bool spi_controller_highspeed_mode(sdioh_info_t *sd, bool hsmode); 31 extern bool spi_check_client_intr(sdioh_info_t *sd, int *is_dev_intr); 32 extern bool spi_hw_attach(sdioh_info_t *sd); 33 extern bool spi_hw_detach(sdioh_info_t *sd); 34 extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen); 35 extern void spi_spinbits(sdioh_info_t *sd); 36 extern void spi_waitbits(sdioh_info_t *sd, bool yield);
|
D | bcmsdstd.h | 41 extern int sdstd_osinit(sdioh_info_t *sd); 42 extern void sdstd_osfree(sdioh_info_t *sd); 147 extern bool check_client_intr(sdioh_info_t *sd); 150 extern void sdstd_devintr_on(sdioh_info_t *sd); 151 extern void sdstd_devintr_off(sdioh_info_t *sd); 154 extern void sdstd_intrs_on(sdioh_info_t *sd, uint16 norm, uint16 err); 155 extern void sdstd_intrs_off(sdioh_info_t *sd, uint16 norm, uint16 err); 158 extern void sdstd_spinbits(sdioh_info_t *sd, uint16 norm, uint16 err); 170 extern int sdstd_register_irq(sdioh_info_t *sd, uint irq); 171 extern void sdstd_free_irq(uint irq, sdioh_info_t *sd); [all …]
|
D | bcmsdh_sdmmc.h | 43 extern int sdioh_sdmmc_osinit(sdioh_info_t *sd); 44 extern void sdioh_sdmmc_osfree(sdioh_info_t *sd); 98 extern bool check_client_intr(sdioh_info_t *sd); 101 extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd); 102 extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd); 114 extern int sdioh_sdmmc_register_irq(sdioh_info_t *sd, uint irq); 115 extern void sdioh_sdmmc_free_irq(uint irq, sdioh_info_t *sd); 118 sdioh_info_t *sd;
|
D | bcmsdspi.h | 122 extern int spi_register_irq(sdioh_info_t *sd, uint irq); 123 extern void spi_free_irq(uint irq, sdioh_info_t *sd); 126 extern void spi_lock(sdioh_info_t *sd); 127 extern void spi_unlock(sdioh_info_t *sd); 130 extern int spi_osinit(sdioh_info_t *sd); 131 extern void spi_osfree(sdioh_info_t *sd);
|
/hardware/broadcom/wlan/bcm4329/src/bcmsdio/sys/ |
D | bcmsdspi_linux.c | 48 sdioh_info_t *sd; 67 sdioh_info_t *sd; in sdspi_isr() 71 sd = (sdioh_info_t *)dev_id; in sdspi_isr() 92 spi_register_irq(sdioh_info_t *sd, uint irq) in spi_register_irq() 104 spi_free_irq(uint irq, sdioh_info_t *sd) in spi_free_irq() 124 spi_osinit(sdioh_info_t *sd) in spi_osinit() 140 spi_osfree(sdioh_info_t *sd) in spi_osfree() 151 sdioh_interrupt_set(sdioh_info_t *sd, bool enable) in sdioh_interrupt_set() 187 spi_lock(sdioh_info_t *sd) in spi_lock() 209 spi_unlock(sdioh_info_t *sd) in spi_unlock() [all …]
|
D | bcmsdspi.c | 64 static bool sdspi_start_power(sdioh_info_t *sd); 65 static int sdspi_set_highspeed_mode(sdioh_info_t *sd, bool HSMode); 66 static int sdspi_card_enablefuncs(sdioh_info_t *sd); 67 static void sdspi_cmd_getrsp(sdioh_info_t *sd, uint32 *rsp_buffer, int count); 68 static int sdspi_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd, uint32 arg, 70 static int sdspi_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, 72 static int sdspi_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, 74 static int sdspi_driver_init(sdioh_info_t *sd); 75 static bool sdspi_reset(sdioh_info_t *sd, bool host_reset, bool client_reset); 76 static int sdspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, [all …]
|
D | bcmsdstd_linux.c | 39 sdioh_info_t *sd; 58 sdioh_info_t *sd; in sdstd_isr() 62 sd = (sdioh_info_t *)dev_id; in sdstd_isr() 82 sdstd_register_irq(sdioh_info_t *sd, uint irq) in sdstd_register_irq() 94 sdstd_free_irq(uint irq, sdioh_info_t *sd) in sdstd_free_irq() 114 sdstd_osinit(sdioh_info_t *sd) in sdstd_osinit() 130 sdstd_osfree(sdioh_info_t *sd) in sdstd_osfree() 141 sdioh_interrupt_set(sdioh_info_t *sd, bool enable) in sdioh_interrupt_set() 177 sdstd_lock(sdioh_info_t *sd) in sdstd_lock() 199 sdstd_unlock(sdioh_info_t *sd) in sdstd_unlock() [all …]
|
D | bcmsdh_sdmmc.c | 59 static int sdioh_sdmmc_get_cisaddr(sdioh_info_t *sd, uint32 regaddr); 81 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data); 84 sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) in sdioh_sdmmc_card_enablefuncs() 122 extern sdioh_info_t * 125 sdioh_info_t *sd; in sdioh_attach() 135 if ((sd = (sdioh_info_t *)MALLOC(osh, sizeof(sdioh_info_t))) == NULL) { in sdioh_attach() 139 bzero((char *)sd, sizeof(sdioh_info_t)); in sdioh_attach() 143 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_attach() 189 sdioh_detach(osl_t *osh, sdioh_info_t *sd) in sdioh_detach() 208 MFREE(sd->osh, sd, sizeof(sdioh_info_t)); in sdioh_detach() [all …]
|
D | bcmsdstd.c | 67 static bool sdstd_start_clock(sdioh_info_t *sd, uint16 divisor); 68 static bool sdstd_start_power(sdioh_info_t *sd); 69 static bool sdstd_bus_width(sdioh_info_t *sd, int width); 70 static int sdstd_set_highspeed_mode(sdioh_info_t *sd, bool HSMode); 71 static int sdstd_card_enablefuncs(sdioh_info_t *sd); 72 static void sdstd_cmd_getrsp(sdioh_info_t *sd, uint32 *rsp_buffer, int count); 73 static int sdstd_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd, uint32 arg); 74 static int sdstd_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, 76 static int sdstd_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, 78 static int sdstd_driver_init(sdioh_info_t *sd); [all …]
|
D | bcmsdh_sdmmc_linux.c | 55 extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd); 56 extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd); 143 sdioh_info_t *sd; 149 sdioh_sdmmc_osinit(sdioh_info_t *sd) in sdioh_sdmmc_osinit() 164 sdioh_sdmmc_osfree(sdioh_info_t *sd) in sdioh_sdmmc_osfree() 182 sdioh_interrupt_set(sdioh_info_t *sd, bool enable) in sdioh_interrupt_set()
|
D | bcmpcispi.c | 68 spi_hw_attach(sdioh_info_t *sd) in spi_hw_attach() 179 spi_hw_detach(sdioh_info_t *sd) in spi_hw_detach() 213 sdspi_switch_clock(sdioh_info_t *sd, bool ext_clk) in sdspi_switch_clock() 237 spi_start_clock(sdioh_info_t *sd, uint16 div) in spi_start_clock() 383 spi_controller_highspeed_mode(sdioh_info_t *sd, bool hsmode) in spi_controller_highspeed_mode() 402 spi_devintr_off(sdioh_info_t *sd) in spi_devintr_off() 417 spi_devintr_on(sdioh_info_t *sd) in spi_devintr_on() 438 spi_check_client_intr(sdioh_info_t *sd, int *is_dev_intr) in spi_check_client_intr() 527 spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen) in spi_sendrecv() 599 spi_spinbits(sdioh_info_t *sd) in spi_spinbits()
|