Queue#

Functions#

void *
rsi_virtual_to_physical_address(void *virtual_address)

Map virtual address to physical address.

void *
rsi_physical_to_virtual_address(void *physical_address)

Map physical address to virtual address.

rsi_error_t
rsi_semaphore_check_and_destroy(rsi_semaphore_handle_t *semaphore)

Check whether semaphore is created or not, It destroys the semaphore instance,if its created, otherwise should return Success.

void
rsi_queues_init(rsi_queue_cb_t *queue)

Initialize queue.

void
rsi_enqueue_pkt(rsi_queue_cb_t *queue, rsi_pkt_t *pkt)

Enqueue packet into queue.

rsi_dequeue_pkt(rsi_queue_cb_t *queue)

Dequeue packet from queue.

uint32_t
rsi_check_queue_status(rsi_queue_cb_t *queue)

Return packet pending count in queue.

void
rsi_block_queue(rsi_queue_cb_t *queue)

Block the queue.

void
rsi_unblock_queue(rsi_queue_cb_t *queue)

Unblock the queue.

void
ROM_WL_rsi_queues_init(global_cb_t *global_cb_p, rsi_queue_cb_t *queue)

Initialize queue.

void
ROM_WL_rsi_enqueue_pkt(global_cb_t *global_cb_p, rsi_queue_cb_t *queue, rsi_pkt_t *pkt)

Enqueue packet into queue.

ROM_WL_rsi_dequeue_pkt(global_cb_t *global_cb_p, rsi_queue_cb_t *queue)

Dequeue packet from queue.

uint32_t
ROM_WL_rsi_check_queue_status(global_cb_t *global_cb_p, rsi_queue_cb_t *queue)

Return packet pending count in queue.

void
ROM_WL_rsi_block_queue(global_cb_t *global_cb_p, rsi_queue_cb_t *queue)

Block the queue.

void
ROM_WL_rsi_unblock_queue(global_cb_t *global_cb_p, rsi_queue_cb_t *queue)

Unblock the queue.

void
ROM_WL_rsi_enqueue_pkt_from_isr(global_cb_t *global_cb_p, rsi_queue_cb_t *queue, rsi_pkt_t *pkt)

Enqueue packet into queue.

Function Documentation#

rsi_virtual_to_physical_address#

void * rsi_virtual_to_physical_address (void * virtual_address)

Map virtual address to physical address.

Parameters
[in]virtual_address

- pointer to virtual address

Returns

  • void


Definition at line 75 of file driver/rsi_os_none.c

rsi_physical_to_virtual_address#

void * rsi_physical_to_virtual_address (void * physical_address)

Map physical address to virtual address.

Parameters
[in]physical_address

- pointer to physical_address

Returns

  • void


Definition at line 88 of file driver/rsi_os_none.c

rsi_semaphore_check_and_destroy#

rsi_error_t rsi_semaphore_check_and_destroy (rsi_semaphore_handle_t * semaphore)

Check whether semaphore is created or not, It destroys the semaphore instance,if its created, otherwise should return Success.

Parameters
[in]semaphore

- Semaphore handle pointer

Returns

  • 0 - Success Negative Value - Failure


Definition at line 172 of file driver/rsi_os_none.c

rsi_queues_init#

void rsi_queues_init (rsi_queue_cb_t * queue)

Initialize queue.

Parameters
[in]queue

- pointer to queue

Returns

  • void


Definition at line 37 of file driver/rsi_queue.c

rsi_enqueue_pkt#

void rsi_enqueue_pkt (rsi_queue_cb_t * queue, rsi_pkt_t * pkt)

Enqueue packet into queue.

Parameters
[in]queue

- pointer to queue cb

[in]pkt

- packet pointer which needs to be queued

Returns

  • void


Definition at line 55 of file driver/rsi_queue.c

rsi_dequeue_pkt#

rsi_pkt_t * rsi_dequeue_pkt (rsi_queue_cb_t * queue)

Dequeue packet from queue.

Parameters
[in]queue

- queue pointer from which packet needs to be dequeued

Returns

  • Allocated pocket pointer - Success NULL - Failure


Definition at line 73 of file driver/rsi_queue.c

rsi_check_queue_status#

uint32_t rsi_check_queue_status (rsi_queue_cb_t * queue)

Return packet pending count in queue.

Parameters
[in]queue

- pointer to queue

Returns

  • 0 - If queue masked Number of packets pending - If queue is not masked


Definition at line 90 of file driver/rsi_queue.c

rsi_block_queue#

void rsi_block_queue (rsi_queue_cb_t * queue)

Block the queue.

Parameters
[in]queue

- pointer to queue

Returns

  • void


Definition at line 107 of file driver/rsi_queue.c

rsi_unblock_queue#

void rsi_unblock_queue (rsi_queue_cb_t * queue)

Unblock the queue.

Parameters
[in]queue

- pointer to queue

Returns

  • void


Definition at line 124 of file driver/rsi_queue.c

ROM_WL_rsi_queues_init#

void ROM_WL_rsi_queues_init (global_cb_t * global_cb_p, rsi_queue_cb_t * queue)

Initialize queue.

Parameters
[in]global_cb_p

- pointer to queue

[in]queue

- pointer to the global control block

Returns

  • void


Definition at line 39 of file driver/rsi_queue_rom.c

ROM_WL_rsi_enqueue_pkt#

void ROM_WL_rsi_enqueue_pkt (global_cb_t * global_cb_p, rsi_queue_cb_t * queue, rsi_pkt_t * pkt)

Enqueue packet into queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- pointer to queue cb

[in]pkt

- packet pointer which needs to be queued

Returns

  • void


Definition at line 69 of file driver/rsi_queue_rom.c

ROM_WL_rsi_dequeue_pkt#

rsi_pkt_t * ROM_WL_rsi_dequeue_pkt (global_cb_t * global_cb_p, rsi_queue_cb_t * queue)

Dequeue packet from queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- queue pointer from which packet needs to be dequeued

Returns

  • Allocated packet pointer - Success NULL - Failure


Definition at line 104 of file driver/rsi_queue_rom.c

ROM_WL_rsi_check_queue_status#

uint32_t ROM_WL_rsi_check_queue_status (global_cb_t * global_cb_p, rsi_queue_cb_t * queue)

Return packet pending count in queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- pointer to queue

Returns

  • 0 - If queue masked Number of packets pending - If queue is not masked


Definition at line 152 of file driver/rsi_queue_rom.c

ROM_WL_rsi_block_queue#

void ROM_WL_rsi_block_queue (global_cb_t * global_cb_p, rsi_queue_cb_t * queue)

Block the queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- pointer to queue

Returns

  • void


Definition at line 189 of file driver/rsi_queue_rom.c

ROM_WL_rsi_unblock_queue#

void ROM_WL_rsi_unblock_queue (global_cb_t * global_cb_p, rsi_queue_cb_t * queue)

Unblock the queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- pointer to queue

Returns

  • void


Definition at line 212 of file driver/rsi_queue_rom.c

ROM_WL_rsi_enqueue_pkt_from_isr#

void ROM_WL_rsi_enqueue_pkt_from_isr (global_cb_t * global_cb_p, rsi_queue_cb_t * queue, rsi_pkt_t * pkt)

Enqueue packet into queue.

Parameters
[in]global_cb_p

- pointer to the global control block

[in]queue

- pointer to queue cb

[in]pkt

- packet pointer which needs to be queued

Returns

  • void


Definition at line 237 of file driver/rsi_queue_rom.c