Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
rpu_hw_if.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <zephyr/drivers/gpio.h>

Go to the source code of this file.

Enumerations

enum  {
  SYSBUS = 0 , EXT_SYS_BUS , PBUS , PKTRAM ,
  GRAM , LMAC_ROM , LMAC_RET_RAM , LMAC_SRC_RAM ,
  UMAC_ROM , UMAC_RET_RAM , UMAC_SRC_RAM , NUM_MEM_BLOCKS
}
 Header containing common functions for RPU hardware interaction using QSPI and SPI that can be invoked by shell or the driver. More...
 

Functions

int rpu_read (unsigned int addr, void *data, int len)
 
int rpu_write (unsigned int addr, const void *data, int len)
 
int rpu_sleep (void)
 
int rpu_wakeup (void)
 
int rpu_sleep_status (void)
 
void rpu_get_sleep_stats (uint32_t addr, uint32_t *buff, uint32_t wrd_len)
 
int rpu_irq_config (struct gpio_callback *irq_callback_data, void(*irq_handler)())
 
int rpu_irq_remove (struct gpio_callback *irq_callback_data)
 
int rpu_wrsr2 (uint8_t data)
 
int rpu_rdsr2 (void)
 
int rpu_rdsr1 (void)
 
int rpu_clks_on (void)
 
int rpu_init (void)
 
int rpu_enable (void)
 
int rpu_disable (void)
 

Variables

char blk_name [][15]
 
uint32_t rpu_7002_memmap [][3]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Header containing common functions for RPU hardware interaction using QSPI and SPI that can be invoked by shell or the driver.

Enumerator
SYSBUS 
EXT_SYS_BUS 
PBUS 
PKTRAM 
GRAM 
LMAC_ROM 
LMAC_RET_RAM 
LMAC_SRC_RAM 
UMAC_ROM 
UMAC_RET_RAM 
UMAC_SRC_RAM 
NUM_MEM_BLOCKS 

Function Documentation

◆ rpu_clks_on()

int rpu_clks_on ( void )

◆ rpu_disable()

int rpu_disable ( void )

◆ rpu_enable()

int rpu_enable ( void )

◆ rpu_get_sleep_stats()

void rpu_get_sleep_stats ( uint32_t addr,
uint32_t * buff,
uint32_t wrd_len )

◆ rpu_init()

int rpu_init ( void )

◆ rpu_irq_config()

int rpu_irq_config ( struct gpio_callback * irq_callback_data,
void(* irq_handler )() )

◆ rpu_irq_remove()

int rpu_irq_remove ( struct gpio_callback * irq_callback_data)

◆ rpu_rdsr1()

int rpu_rdsr1 ( void )

◆ rpu_rdsr2()

int rpu_rdsr2 ( void )

◆ rpu_read()

int rpu_read ( unsigned int addr,
void * data,
int len )

◆ rpu_sleep()

int rpu_sleep ( void )

◆ rpu_sleep_status()

int rpu_sleep_status ( void )

◆ rpu_wakeup()

int rpu_wakeup ( void )

◆ rpu_write()

int rpu_write ( unsigned int addr,
const void * data,
int len )

◆ rpu_wrsr2()

int rpu_wrsr2 ( uint8_t data)

Variable Documentation

◆ blk_name

char blk_name[][15]
extern

◆ rpu_7002_memmap

uint32_t rpu_7002_memmap[][3]
extern