pcitool_ui.h revision 09b1eac246a4e627fcbd1ce5bf8005746cbe45ea
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PCITOOL_UI_H
#define _PCITOOL_UI_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* This defines the interface between the pcitool_ui.c module which parses the
* commandline options, and the other pcitool modules which process them.
*/
#define SUCCESS 0 /* This does not conflict with errno values. */
/*
* Flags which get set in the flags field of pcitool_uiargs_t. There is a flag
* for each option specified on the commandline.
*/
#define NEXUS_FLAG 0x1
#define LEAF_FLAG 0x2
/* - mod to PROBEALL and PROBETREE */
#define READ_FLAG 0x80
#define WRITE_FLAG 0x100
#define OFFSET_FLAG 0x200
#define SIZE_FLAG 0x400
#define ENDIAN_FLAG 0x800
#define BYTEDUMP_FLAG 0x1000
#define CHARDUMP_FLAG 0x2000
#define ERRCONT_FLAG 0x4000
#define VERBOSE_FLAG 0x8000
#define QUIET_FLAG 0x10000
#define LOOP_FLAG 0x20000
#define SHOWCTLR_FLAG 0x40000
#define SETGRP_FLAG 0x80000
/* Values specified by suboption parser. */
/* Macros for a few heavily-used flags. */
/*
* This is the structure of flags and parsed values returned from pcitool_ui.c
*/
typedef struct uiargs {
/* Exported functions. */
#ifdef __cplusplus
}
#endif
#endif /* _PCITOOL_UI_H */