#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | rtas_args |
| struct | region |
Defines | |
| #define | __NR_rtas 255 |
| #define | MAX_ARGS 16 |
| #define | BITS32_LO(_num) (uint32_t) (_num & 0xffffffffll) |
| #define | BITS32_HI(_num) (uint32_t) (_num >> 32) |
| #define | BITS64(_high, _low) (uint64_t) (((uint64_t) _high << 32) | _low) |
Typedefs | |
| typedef uint32_t | rtas_arg_t |
Functions | |
| int | sc_get_rmo_buffer (size_t size, void **buf, uint32_t *phys_addr) |
| int | sc_free_rmo_buffer (void *buf, uint32_t phys_addr, size_t size) |
| int | sc_interface_exists () |
| #define __NR_rtas 255 |
Referenced by sc_rtas_call().
| #define BITS32_HI | ( | _num | ) | (uint32_t) (_num >> 32) |
Referenced by sc_get_config_addr_info2(), sc_platform_dump(), sc_read_slot_reset(), sc_set_eeh_option(), and sc_suspend_me().
| #define BITS32_LO | ( | _num | ) | (uint32_t) (_num & 0xffffffffll) |
Referenced by sc_get_config_addr_info2(), sc_platform_dump(), sc_read_slot_reset(), sc_set_eeh_option(), and sc_suspend_me().
| #define BITS64 | ( | _high, | |||
| _low | ) | (uint64_t) (((uint64_t) _high << 32) | _low) |
Referenced by sc_platform_dump().
| #define MAX_ARGS 16 |
Referenced by sc_rtas_call().
| typedef uint32_t rtas_arg_t |
| int sc_free_rmo_buffer | ( | void * | buf, | |
| uint32_t | phys_addr, | |||
| size_t | size | |||
| ) |
sc_free_rmo_buffer
| buf | virtual address of mmap()'ed buffer | |
| phys_addr | physical address of low mem buffer | |
| size | size of buffer |
References dbg1, workarea_config::init_done, munmap_dev_mem(), PAGE_SIZE, release_phys_region(), and RTAS_FREE_ERR.
Referenced by sc_cfg_connector(), sc_display_msg(), sc_errinjct(), sc_get_dynamic_sensor(), sc_get_indices(), sc_get_sysparm(), sc_get_vpd(), sc_lpar_perftools(), sc_platform_dump(), sc_scan_log_dump(), sc_set_dynamic_indicator(), sc_set_sysparm(), sc_update_nodes(), and sc_update_properties().
| int sc_get_rmo_buffer | ( | size_t | size, | |
| void ** | buf, | |||
| uint32_t * | phys_addr | |||
| ) |
sc_get_rmo_buffer
| size | Size of requested region. Must be a multiple of 4096. | |
| buf | Assigned to mmap'ed buffer of acquired region | |
| phys_addr | Assigned to physical address of acquired region |
References region::addr, dbg1, get_phys_region(), workarea_config::init_done, init_workarea_config(), mmap_dev_mem(), and PAGE_SIZE.
Referenced by sc_cfg_connector(), sc_display_msg(), sc_errinjct(), sc_get_dynamic_sensor(), sc_get_indices(), sc_get_sysparm(), sc_get_vpd(), sc_lpar_perftools(), sc_platform_dump(), sc_scan_log_dump(), sc_set_dynamic_indicator(), sc_set_sysparm(), sc_update_nodes(), and sc_update_properties().
| int sc_interface_exists | ( | ) |
sc_interface_exists
References open_proc_rtas_file(), and rmo_filename.
1.5.5