Lines Matching defs:HBA

25 #include "HBA.h"
45 * Max number of Adatper ports per HBA that VSL supports.
48 const uint8_t HBA::HBA_PORT_MAX = UCHAR_MAX;
51 * @memo Add a new port to this HBA
52 * @precondition Port must be a valid port on this HBA
53 * @postcondition Port will be exposed as one of the ports on this HBA
54 * @exception Throws InternalError when the HBA port count exceeds
56 * @param port The Port to add to this HBA
59 * routine to add a port to its existing HBA instance.
61 void HBA::addPort(HBAPort* port) {
62 Trace log("HBA::addPort");
67 throw InternalError("HBA Port count exceeds max number of ports");
81 * @memo Return number of ports to this HBA
84 * @doc Returns the number of ports on this HBA. The max
88 uint8_t HBA::getNumberOfPorts() {
89 Trace log("HBA::getNumberOfPorts");
94 * @memo Retrieve an HBA port based on a Port WWN
96 * known HBA port.
98 * @param wwn The wwn of the desired HBA port
100 * @doc Fetch an HBA port based on WWN. If the port is not
104 HBAPort* HBA::getPort(uint64_t wwn) {
105 Trace log("HBA::getPort");
131 * @memo Return true if this HBA contains the stated WWN
139 bool HBA::containsWWN(uint64_t wwn) {
140 Trace log("HBA::containsWWN");
164 * @memo Return true if one port on the HBA matches the stated WWN
170 bool HBA::isPortWWN(uint64_t wwn) {
171 Trace log("HBA::isPortWWN");
201 HBAPort* HBA::getPortByIndex(int index) {
202 Trace log("HBA::getPortByIndex");
223 * @precondition wwn must be an valid port wwn on this HBA
228 int HBA::getPortIndexByWWN(uint64_t wwn) {
229 Trace log("HBA::getPortIndexByWWN");
251 * @return TRUE The two HBA instances represent the same HBA
252 * @return FALSE The two HBA instances are different
258 bool HBA::operator==(HBA &comp) {
259 Trace log("HBA::operator==");
278 * @memo Set the RNID data for all the ports in this HBA
283 * @param info The RNID information to program for each HBA port
287 void HBA::setRNID(HBA_MGMTINFO info) {
288 Trace log("HBA::setRNID");
304 * @memo Verify that this HBA is present on the system
305 * @exception UnavailableException Thrown when HBA not present
308 * @doc This routine is used to verify that a given HBA
310 * If the HBA is present, the routine will return.
311 * If the HBA is not present (if any port is not present)
314 void HBA::validatePresent() {
315 Trace log("HBA::validatePresent");
332 int HBA::_open(std::string path, int flag) {
333 Trace log("HBA::open");
362 void HBA::_ioctl(int fd, int type, uchar_t *arg) {
363 Trace log("HBA::ioctl");
405 HBA::~HBA() {
406 Trace log("HBA::~HBA");