ZFCP HBA API Library 1
vlib_sg.h
1/*
2 * Copyright IBM Corp. 2010
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.ibm.com/developerworks/library/os-cpl.html
7 *
8 * Authors: Sven Schuetz <sven@de.ibm.com>
9 *
10 * File: vlib_sg.h
11 *
12 * Description:
13 * Function declarations for functions using the sg_utils library
14 *
15 */
16
17#ifndef _VLIB_SG_H_
18#define _VLIB_SG_H_
19
20#define READCAP10LEN 8
21#define READCAP16LEN 32
22
23HBA_STATUS sgutils_SendScsiInquiry(char *sg_dev, HBA_UINT8 EVPD,
24 HBA_UINT32 PageCode, void *pRspBuffer,
25 HBA_UINT32 *RspBufferSize);
26HBA_STATUS sgutils_SendReportLUNs(char *sg_dev, char *pRspBuffer,
27 HBA_UINT32 *RspBufferSize);
28HBA_STATUS sgutils_SendReadCap(char *sg_dev, char *pRspBuffer,
29 HBA_UINT32 *RspBufferSize);
30
31#endif /*_VLIB_SG_H_*/