|
ppc64-diag
|
#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <getopt.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <stdint.h>#include <dirent.h>#include <fcntl.h>#include "platform.h"Data Structures | |
| struct | drc_info_search_config |
Macros | |
| #define | MAX_IRQ_SERVERS_PER_CPU 16 |
| #define | DRC_TYPE_LEN 16 |
| #define | DRC_NAME_LEN 256 /* Worst case length to expect */ |
Functions | |
| static int | search_drcindex_to_drcname (struct drc_info_search_config *, uint32_t, char *, int) |
| static int | search_drcname_to_drcindex (struct drc_info_search_config *, char *, uint32_t *) |
| static int | mem_drcindex_to_drcname (uint32_t drc_idx, char *drc_name, int buf_size) |
| converts drcindex of mem type to drcname More... | |
| int | cpu_interruptserver_to_drcindex (uint32_t, uint32_t *) |
| int | cpu_drcindex_to_drcname (uint32_t drc_idx, char *drc_name, int buf_size) |
| converts drcindex of cpu type to drcname More... | |
| int | cpu_drcindex_to_interruptserver (uint32_t, uint32_t *, int) |
| int | cpu_drcname_to_drcindex (char *drc_name, uint32_t *drc_idx) |
| converts mem type drcname to drcindex More... | |
| static void | print_usage (char *command) |
| static int | read_char_name (int fd, char *propname, int buf_size) |
| static int | read_uint32 (int fd, uint32_t *retval) |
| static int | search_drcindex_to_drcname_v1 (struct drc_info_search_config *sr, uint32_t drc_idx, char *drc_name, int buf_size) |
| static int | search_drcname_to_drcindex_v1 (struct drc_info_search_config *sr, char *drc_name, uint32_t *drc_idx) |
| int | main (int argc, char *argv[]) |
Variables | |
| static struct option | long_options [] |
| static struct drc_info_search_config | mem_to_name |
| static struct drc_info_search_config | cpu_to_name |
Copyright (C) 2005 - 2016 IBM Corporation
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
| #define DRC_NAME_LEN 256 /* Worst case length to expect */ |
Referenced by main(), search_drcindex_to_drcname(), search_drcname_to_drcindex(), and search_drcname_to_drcindex_v1().
| #define DRC_TYPE_LEN 16 |
Referenced by search_drcindex_to_drcname(), and search_drcname_to_drcindex().
| #define MAX_IRQ_SERVERS_PER_CPU 16 |
Referenced by main().
| int cpu_drcindex_to_drcname | ( | uint32_t | drc_idx, |
| char * | drc_name, | ||
| int | buf_size | ||
| ) |
cpu_drcindex_to_drcname
| drc_idx | - drc index whose drc name is to be found. |
| drc_name | - buffer for drc_name |
| buf_size | - size of buffer. |
References search_drcindex_to_drcname().
Referenced by main().
| int cpu_drcindex_to_interruptserver | ( | uint32_t | drc_idx, |
| uint32_t * | int_servs, | ||
| int | array_elements | ||
| ) |
References read_uint32().
Referenced by main().
| int cpu_drcname_to_drcindex | ( | char * | drc_name, |
| uint32_t * | drc_idx | ||
| ) |
cpu_drcname_to_drcindex
| drc_idx | - drc index whose drc name is to be found. |
| drc_name | - buffer for drc_name |
References search_drcname_to_drcindex().
Referenced by main().
| int cpu_interruptserver_to_drcindex | ( | uint32_t | int_serv, |
| uint32_t * | drc_idx | ||
| ) |
References read_uint32().
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
mem_drcindex_to_drcname
| drc_idx | - drc index whose drc name is to be found. |
| drc_name | - buffer for drc_name |
| buf_size | - size of buffer. |
References search_drcindex_to_drcname().
Referenced by main().
|
static |
Referenced by main().
|
static |
|
static |
|
static |
|
static |
References read_char_name(), read_uint32(), drc_info_search_config::v1_tree_address, and drc_info_search_config::v1_tree_name_address.
Referenced by search_drcindex_to_drcname().
|
static |
|
static |
References DRC_NAME_LEN, read_char_name(), drc_info_search_config::v1_tree_address, and drc_info_search_config::v1_tree_name_address.
Referenced by search_drcname_to_drcindex().
|
static |
|
static |
Referenced by main().
|
static |
1.8.13