ppc64-diag
Macros | Functions | Variables
convert_dt_node_props.c File Reference
#include <stdlib.h>
#include <stdio.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.c"

Macros

#define MAX_IRQ_SERVERS_PER_CPU   16
 

Functions

int cpu_interruptserver_to_drcindex (uint32_t, uint32_t *)
 
int cpu_drcindex_to_drcname (uint32_t, char *, int)
 
int cpu_drcindex_to_interruptserver (uint32_t, uint32_t *, int)
 
int cpu_drcname_to_drcindex (char *, uint32_t *)
 
void print_usage (char *command)
 
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 main (int argc, char *argv[])
 

Variables

static struct option long_options []
 

Detailed Description

Copyright (C) 2005 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.

Macro Definition Documentation

◆ MAX_IRQ_SERVERS_PER_CPU

#define MAX_IRQ_SERVERS_PER_CPU   16

Referenced by main().

Function Documentation

◆ cpu_drcindex_to_drcname()

int cpu_drcindex_to_drcname ( uint32_t  drc_idx,
char *  drc_name,
int  buf_size 
)

Referenced by main().

◆ cpu_drcindex_to_interruptserver()

int cpu_drcindex_to_interruptserver ( uint32_t  drc_idx,
uint32_t *  int_servs,
int  array_elements 
)

Referenced by main().

◆ cpu_drcname_to_drcindex()

int cpu_drcname_to_drcindex ( char *  drc_name,
uint32_t *  drc_idx 
)

Referenced by main().

◆ cpu_interruptserver_to_drcindex()

int cpu_interruptserver_to_drcindex ( uint32_t  int_serv,
uint32_t *  drc_idx 
)

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ mem_drcindex_to_drcname()

static int mem_drcindex_to_drcname ( uint32_t  drc_idx,
char *  drc_name,
int  buf_size 
)
static

mem_drcindex_to_drcname

Parameters
drc_idx- drc index whose drc name is to be found.
drc_name- buffer for drc_name
buf_size- size of buffer.

Referenced by main().

◆ print_usage()

void print_usage ( char *  command)

Referenced by main().

Variable Documentation

◆ long_options

struct option long_options[]
static
Initial value:
= {
{"context", required_argument, NULL, 'c'},
{"from", required_argument, NULL, 'f'},
{"to", required_argument, NULL, 't'},
{"help", no_argument, NULL, 'h'},
{0,0,0,0}
}

Referenced by main().