NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
pctlib.h File Reference

Go to the source code of this file.

Functions

bool pct_initialize (void)
 
uintptr_t pct_get_end_struct (void)
 
const struct platform_conf * pct_platform_get_conf (void)
 
const struct guest_conf * pct_guest_get_conf (uint32_t guest_id)
 
const struct ipa_mapping * pct_ipa_get_mapping (uint32_t ipa_index)
 
const struct guest_gpio_mapping * pct_gpio_get_mapping (uint32_t gpio_index)
 
const struct pct_mempool * pct_ivc_get_mempool_conf (uint32_t mempool_id)
 
const struct pct_ivc_queue * pct_ivc_get_queue_conf (uint32_t queue_id)
 
const struct vcpu_conf * pct_get_vcpu_conf (uint32_t vcpu)
 
const struct guest_io_mapping * pct_io_get_mapping (int32_t periph_id)
 
void pct_io_get_owners (int32_t periph_id, uint32_t *owner_guest_id, bool *owned_by_hyp)
 
bool pct_io_mapping_belongs_to_guest (const struct guest_io_mapping *mapping, uint32_t guest_id)
 
bool pct_io_belongs_to_guest (int32_t periph_id, uint32_t guest_id)
 
bool pct_io_belongs_to_hypervisor (int32_t periph_id)
 
bool pct_gpio_mapping_belongs_to_guest (const struct guest_gpio_mapping *mapping, uint32_t guest_id)
 
bool pct_gpio_mapping_to_owning_guest (const struct guest_gpio_mapping *mapping, uint32_t *ret_guest_id)
 
bool pct_ipa_belongs_to_guest (uint32_t ipa_index, uint32_t guest_id)
 
bool pct_ipa_belongs_to_hyp (uint32_t ipa_index)
 
bool pct_i2c_slave_to_owning_guest (uint32_t controller, uint32_t slave_addr, uint32_t *ret_guest_id)
 
bool pct_is_valid_hyp_guest_nr (uint32_t guest_id)
 
void pct_hsp_assign (void)
 
void pct_se_init (void)
 
void pct_bpmp_init (void)
 
uintptr_t pct_get_start (void)
 
uintptr_t pct_get_end (void)
 

Function Documentation

◆ pct_bpmp_init()

void pct_bpmp_init ( void  )

◆ pct_get_end()

uintptr_t pct_get_end ( void  )

◆ pct_get_end_struct()

uintptr_t pct_get_end_struct ( void  )

◆ pct_get_start()

uintptr_t pct_get_start ( void  )

◆ pct_get_vcpu_conf()

const struct vcpu_conf* pct_get_vcpu_conf ( uint32_t  vcpu)

◆ pct_gpio_get_mapping()

const struct guest_gpio_mapping* pct_gpio_get_mapping ( uint32_t  gpio_index)

◆ pct_gpio_mapping_belongs_to_guest()

bool pct_gpio_mapping_belongs_to_guest ( const struct guest_gpio_mapping *  mapping,
uint32_t  guest_id 
)

◆ pct_gpio_mapping_to_owning_guest()

bool pct_gpio_mapping_to_owning_guest ( const struct guest_gpio_mapping *  mapping,
uint32_t *  ret_guest_id 
)

◆ pct_guest_get_conf()

const struct guest_conf* pct_guest_get_conf ( uint32_t  guest_id)

◆ pct_hsp_assign()

void pct_hsp_assign ( void  )

◆ pct_i2c_slave_to_owning_guest()

bool pct_i2c_slave_to_owning_guest ( uint32_t  controller,
uint32_t  slave_addr,
uint32_t *  ret_guest_id 
)

◆ pct_initialize()

bool pct_initialize ( void  )

◆ pct_io_belongs_to_guest()

bool pct_io_belongs_to_guest ( int32_t  periph_id,
uint32_t  guest_id 
)

◆ pct_io_belongs_to_hypervisor()

bool pct_io_belongs_to_hypervisor ( int32_t  periph_id)

◆ pct_io_get_mapping()

const struct guest_io_mapping* pct_io_get_mapping ( int32_t  periph_id)

◆ pct_io_get_owners()

void pct_io_get_owners ( int32_t  periph_id,
uint32_t *  owner_guest_id,
bool *  owned_by_hyp 
)

◆ pct_io_mapping_belongs_to_guest()

bool pct_io_mapping_belongs_to_guest ( const struct guest_io_mapping *  mapping,
uint32_t  guest_id 
)

◆ pct_ipa_belongs_to_guest()

bool pct_ipa_belongs_to_guest ( uint32_t  ipa_index,
uint32_t  guest_id 
)

◆ pct_ipa_belongs_to_hyp()

bool pct_ipa_belongs_to_hyp ( uint32_t  ipa_index)

◆ pct_ipa_get_mapping()

const struct ipa_mapping* pct_ipa_get_mapping ( uint32_t  ipa_index)

◆ pct_is_valid_hyp_guest_nr()

bool pct_is_valid_hyp_guest_nr ( uint32_t  guest_id)

◆ pct_ivc_get_mempool_conf()

const struct pct_mempool* pct_ivc_get_mempool_conf ( uint32_t  mempool_id)

◆ pct_ivc_get_queue_conf()

const struct pct_ivc_queue* pct_ivc_get_queue_conf ( uint32_t  queue_id)

◆ pct_platform_get_conf()

const struct platform_conf* pct_platform_get_conf ( void  )

◆ pct_se_init()

void pct_se_init ( void  )