Lines Matching defs:HBA

28 #include "HBA.h"
48 * Max number of Adatper ports per HBA that VSL supports.
51 const uint8_t HBA::HBA_PORT_MAX = UCHAR_MAX;
54 * @memo Add a new port to this HBA
55 * @precondition Port must be a valid port on this HBA
56 * @postcondition Port will be exposed as one of the ports on this HBA
57 * @exception Throws InternalError when the HBA port count exceeds
59 * @param port The Port to add to this HBA
62 * routine to add a port to its existing HBA instance.
64 void HBA::addPort(HBAPort* port) {
65 Trace log("HBA::addPort");
70 throw InternalError("HBA Port count exceeds max number of ports");
84 * @memo Return number of ports to this HBA
87 * @doc Returns the number of ports on this HBA. The max
91 uint8_t HBA::getNumberOfPorts() {
92 Trace log("HBA::getNumberOfPorts");
97 * @memo Retrieve an HBA port based on a Port WWN
99 * known HBA port.
101 * @param wwn The wwn of the desired HBA port
103 * @doc Fetch an HBA port based on WWN. If the port is not
107 HBAPort* HBA::getPort(uint64_t wwn) {
108 Trace log("HBA::getPort");
134 * @memo Return true if this HBA contains the stated WWN
142 bool HBA::containsWWN(uint64_t wwn) {
143 Trace log("HBA::containsWWN");
173 HBAPort* HBA::getPortByIndex(int index) {
174 Trace log("HBA::getPortByIndex");
197 * @return TRUE The two HBA instances represent the same HBA
198 * @return FALSE The two HBA instances are different
204 bool HBA::operator==(HBA &comp) {
205 Trace log("HBA::operator==");
224 * @memo Set the RNID data for all the ports in this HBA
229 * @param info The RNID information to program for each HBA port
233 void HBA::setRNID(HBA_MGMTINFO info) {
234 Trace log("HBA::setRNID");
250 * @memo Verify that this HBA is present on the system
251 * @exception UnavailableException Thrown when HBA not present
254 * @doc This routine is used to verify that a given HBA
256 * If the HBA is present, the routine will return.
257 * If the HBA is not present (if any port is not present)
260 void HBA::validatePresent() {
261 Trace log("HBA::validatePresent");
278 int HBA::_open(std::string path, int flag) {
279 Trace log("HBA::open");
308 void HBA::_ioctl(int fd, int type, uchar_t *arg) {
309 Trace log("HBA::ioctl");
351 HBA::~HBA() {
352 Trace log("HBA::~HBA");