/*
 * @(#)vis_types.h	1.2	03/12/12 SMI
 *
 * Copyright (c) 1995 - 2003, Sun Microsystems, Inc.
 */

#ifndef SYS_VIS_TYPES_H
#define SYS_VIS_TYPES_H

#pragma ident	"@(#)vis_types.h	1.2	03/12/12 SMI"

#ifdef	__cplusplus
extern "C" {
#endif

/* signed 8-bit integer */
typedef signed char     vis_s8;

/* unsigned 8-bit integer */
typedef unsigned char   vis_u8;

/* signed 16-bit integer */
typedef short           vis_s16;

/* unsigned 16-bit integer */
typedef unsigned short  vis_u16;

/* signed 32-bit integer */
typedef int		vis_s32;

/* unsigned 32-bit integer */
typedef unsigned int	vis_u32;

/* 32-bit floating-point */
typedef float		vis_f32;

/* 64-bit floating-point */
typedef double		vis_d64;

/* address */
typedef unsigned long   vis_addr;

/* pointer */
typedef void	*	vis_ras;
#define	vis_paddr	vis_ras

#ifdef _LP64

/* signed 64-bit integer */
typedef long          vis_s64;

/* unsigned 64-bit integer */
typedef unsigned long vis_u64;

#elif __STDC__ - 0 == 0 && !defined(_NO_LONGLONG)

/* signed 64-bit integer */
typedef long long          vis_s64;

/* unsigned 64-bit integer */
typedef unsigned long long vis_u64;

#endif	/* _LP64 */

#ifdef	__cplusplus
}
#endif

#endif	/* SYS_VIS_TYPES_H */
