/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SD_IOB_H
#define _SD_IOB_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* order of end action calls:
* driver callback (iob_drv_iodone) is stuffed in b_iodone and called by
* the device driver when i/o completes. It calls the hook end action
* (iob_hook_iodone) which maintains the completion count (iob_hook.count)
* and calls the clients end action (iob_hook.func) when the chain is complete.
*/
typedef struct iob_hook {
#ifdef _SD_BIO_STATS
int PAGE_COMBINED;
#endif /* _SD_BIO_STATS */
} iob_hook_t;
typedef struct _sd_buf_list {
/*
* NOTE: if you change this, then also make changes to the generation
* of sd_iob_impl*.c in src/uts/common/Makefile.files and Makefile.rules!
*/
/* define driver callback and driver callback function table */
#define IOB_DCB(i) \
int \
{ \
}
extern _sd_buf_list_t _sd_buflist;
#ifdef __cplusplus
}
#endif
#endif /* _SD_IOB_H */