2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/*
2N/A * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _L_DEFINES_H_
2N/A#define _L_DEFINES_H_
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#include <unistd.h>
2N/A#include <locale.h>
2N/A#include <libintl.h>
2N/A#include <stdlib.h>
2N/A#include <sys/smedia.h>
2N/A
2N/Astruct raw_params {
2N/A uint32_t offset;
2N/A char *buffer;
2N/A size_t size;
2N/A };
2N/A
2N/Astruct format_track {
2N/A int32_t track_no;
2N/A int32_t head;
2N/A uint32_t flag;
2N/A };
2N/A
2N/Astruct format_flags {
2N/A uint32_t flavor;
2N/A uint32_t mode;
2N/A };
2N/A
2N/A#ifdef DEBUG
2N/A#define DPRINTF(str) (void) printf(str)
2N/A#define DPRINTF1(str, a) (void) printf(str, a)
2N/A#define DPRINTF2(str, a, b) (void) printf(str, a, b)
2N/A#define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c)
2N/A#define DPRINTF4(str, a, b, c, d) (void) printf(str, a, b, c, d)
2N/A#else
2N/A#define DPRINTF(str)
2N/A#define DPRINTF1(str, a)
2N/A#define DPRINTF2(str, a, b)
2N/A#define DPRINTF3(str, a, b, c)
2N/A#define DPRINTF4(str, a, b, c, d)
2N/A#endif
2N/A
2N/A
2N/A#define SM_FD_VERSION_1 1
2N/A#define SM_SCSI_VERSION_1 1
2N/A#define SM_PCMEM_VERSION_1 1
2N/A#define SM_PLUGIN_VERSION 1
2N/A#define SM_PCATA_VERSION_1 1
2N/A#define SM_BLKDEV_VERSION_1 1
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _L_DEFINES_H_ */