18 #include "cyabs_rtos.h" 24 #ifndef INCLUDED_WHD_BUS_PROTOCOL_INTERFACE_H_ 25 #define INCLUDED_WHD_BUS_PROTOCOL_INTERFACE_H_ 39 BACKPLANE_FUNCTION = 1,
43 #define BUS_FUNCTION_MASK (0x3) 44 #define WHD_BUS_FAIL (0xFFFFFFFF) 49 #define PLATFORM_WLAN_ALLOW_BUS_TO_SLEEP_DELAY_MS 10 51 #define DELAYED_BUS_RELEASE_SCHEDULE(whd_driver, schedule) do { whd_delayed_bus_release_schedule_update(whd_driver, \ 69 typedef void (*whd_bus_irq_callback_t)(
void *handler_arg, uint32_t event);
80 extern whd_result_t whd_bus_write_backplane_value(
whd_driver_t whd_driver, uint32_t address, uint8_t register_length,
84 extern whd_result_t whd_bus_write_register_value(
whd_driver_t whd_driver, whd_bus_function_t
function, uint32_t address,
85 uint8_t value_length, uint32_t value);
86 extern whd_result_t whd_bus_read_register_value(
whd_driver_t whd_driver, whd_bus_function_t
function, uint32_t address,
87 uint8_t value_length, uint8_t *value);
92 whd_bus_function_t
function, uint32_t address, uint16_t size,
98 extern uint32_t whd_bus_packet_available_to_read(
whd_driver_t whd_driver);
111 extern uint8_t whd_bus_backplane_read_padd_size(
whd_driver_t whd_driver);
113 extern uint32_t whd_bus_get_max_transfer_size(
whd_driver_t whd_driver);
115 extern void whd_bus_init_stats(
whd_driver_t whd_driver);
#define MAX_BUS_HEADER_SIZE
Max bus header size for all bus types (sdio/spi)
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
whd_bus_transfer_direction_t
Transfer direction for the WHD platform bus interface.
whd_bool_t
Boolean values.
uint32_t whd_result_t
WHD result is specified as uint32_t value.
Defines common constants used with WHD within src folder.
Prototypes of functions corresponding to Buffer and Network Interface.