aac_ioctl.h revision 830d82f7f87041e48127cac2e92b5cb2d878202e
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright 2005-06 Adaptec, Inc.
* Copyright (c) 2005-06 Adaptec Inc., Achim Leubner
* Copyright (c) 2000 Michael Smith
* Copyright (c) 2000 Scott Long
* Copyright (c) 2000 BSDi
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*/
#ifndef _AAC_IOCTL_H_
#define _AAC_IOCTL_H_
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* IOCTL Interface
*/
/* Macro definitions for IOCTL function control codes */
/* Method codes for how buffers are passed for I/O and FS controls */
#define METHOD_BUFFERED 0
#define METHOD_NEITHER 3
/* IOCTL commands */
#define FSACTL_DELETE_DISK 0x163
#define FSACTL_QUERY_DISK 0x173
#define FSACTL_GET_CONTAINERS 2131
#pragma pack(1)
struct aac_revision
{
};
struct aac_get_adapter_fib
{
int wait;
};
struct aac_pci_info {
};
struct aac_query_disk {
char disk_device_name[10];
};
struct aac_delete_disk {
};
/*
* The following definitions come from Adaptec:
*
* SRB is required for the new management tools
*/
#define SRB_DataIn 0x0040
#define SRB_DataOut 0x0080
struct aac_srb
{
struct aac_sg_table sg;
};
#define AAC_SENSE_BUFFERSIZE 30
struct aac_srb_reply
{
/* SCSI_SENSE_BUFFERSIZE */
};
typedef union {
struct {
} fBits;
struct aac_features {
};
#pragma pack()
#ifdef __cplusplus
}
#endif
#endif /* _AAC_IOCTL_H_ */