/*
* 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
*/
/*
*/
#ifndef _HBA_H
#define _HBA_H
// Forward declarations
#include "Lockable.h"
#include "HBAPort.h"
#include <map>
#include <string>
#include <vector>
#include <map>
#include <hbaapi.h>
#include <hbaapi-sun.h>
/*
* @memo Used to track an individual HBA
* @see HBAList
*
* @doc During discovery, as HBAs are found on the system,
* instances of this class will be created, and stored
* in the HBAList class.
*/
HBA() {}
virtual int doForceLip() = 0;
int portIndex = 0) = 0;
/*
* Fetch the name, excluding the trailing "-" and index number
*/
void validatePresent();
// Utility routines: Could be moved elsewhere
// Each routine throws exceptions on error (and logs)
};
#endif /* _HBA_H */