10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*12426Sgdamore@opensolaris.org * Common Development and Distribution License (the "License"). 6*12426Sgdamore@opensolaris.org * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* 22*12426Sgdamore@opensolaris.org * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 230Sstevel@tonic-gate */ 240Sstevel@tonic-gate 250Sstevel@tonic-gate #ifndef _L_DEFINES_H_ 260Sstevel@tonic-gate #define _L_DEFINES_H_ 270Sstevel@tonic-gate 280Sstevel@tonic-gate #ifdef __cplusplus 290Sstevel@tonic-gate extern "C" { 300Sstevel@tonic-gate #endif 310Sstevel@tonic-gate 320Sstevel@tonic-gate #include <unistd.h> 330Sstevel@tonic-gate #include <locale.h> 340Sstevel@tonic-gate #include <libintl.h> 350Sstevel@tonic-gate #include <stdlib.h> 360Sstevel@tonic-gate #include <sys/smedia.h> 370Sstevel@tonic-gate 380Sstevel@tonic-gate struct raw_params { 390Sstevel@tonic-gate uint32_t offset; 400Sstevel@tonic-gate char *buffer; 410Sstevel@tonic-gate size_t size; 420Sstevel@tonic-gate }; 430Sstevel@tonic-gate 440Sstevel@tonic-gate struct format_track { 450Sstevel@tonic-gate int32_t track_no; 460Sstevel@tonic-gate int32_t head; 470Sstevel@tonic-gate uint32_t flag; 480Sstevel@tonic-gate }; 490Sstevel@tonic-gate 500Sstevel@tonic-gate struct format_flags { 510Sstevel@tonic-gate uint32_t flavor; 520Sstevel@tonic-gate uint32_t mode; 530Sstevel@tonic-gate }; 540Sstevel@tonic-gate 550Sstevel@tonic-gate #ifdef DEBUG 560Sstevel@tonic-gate #define DPRINTF(str) (void) printf(str) 570Sstevel@tonic-gate #define DPRINTF1(str, a) (void) printf(str, a) 580Sstevel@tonic-gate #define DPRINTF2(str, a, b) (void) printf(str, a, b) 590Sstevel@tonic-gate #define DPRINTF3(str, a, b, c) (void) printf(str, a, b, c) 600Sstevel@tonic-gate #define DPRINTF4(str, a, b, c, d) (void) printf(str, a, b, c, d) 610Sstevel@tonic-gate #else 620Sstevel@tonic-gate #define DPRINTF(str) 630Sstevel@tonic-gate #define DPRINTF1(str, a) 640Sstevel@tonic-gate #define DPRINTF2(str, a, b) 650Sstevel@tonic-gate #define DPRINTF3(str, a, b, c) 660Sstevel@tonic-gate #define DPRINTF4(str, a, b, c, d) 670Sstevel@tonic-gate #endif 680Sstevel@tonic-gate 690Sstevel@tonic-gate 700Sstevel@tonic-gate #define SM_FD_VERSION_1 1 710Sstevel@tonic-gate #define SM_SCSI_VERSION_1 1 720Sstevel@tonic-gate #define SM_PCMEM_VERSION_1 1 730Sstevel@tonic-gate #define SM_PLUGIN_VERSION 1 740Sstevel@tonic-gate #define SM_PCATA_VERSION_1 1 75*12426Sgdamore@opensolaris.org #define SM_BLKDEV_VERSION_1 1 760Sstevel@tonic-gate 770Sstevel@tonic-gate #ifdef __cplusplus 780Sstevel@tonic-gate } 790Sstevel@tonic-gate #endif 800Sstevel@tonic-gate 810Sstevel@tonic-gate #endif /* _L_DEFINES_H_ */ 82