2 * Copyright (c) 2005 SilverStorm Technologies. All rights reserved.
\r
4 * This software is available to you under the OpenIB.org BSD license
\r
7 * Redistribution and use in source and binary forms, with or
\r
8 * without modification, are permitted provided that the following
\r
9 * conditions are met:
\r
11 * - Redistributions of source code must retain the above
\r
12 * copyright notice, this list of conditions and the following
\r
15 * - Redistributions in binary form must reproduce the above
\r
16 * copyright notice, this list of conditions and the following
\r
17 * disclaimer in the documentation and/or other materials
\r
18 * provided with the distribution.
\r
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
23 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
\r
24 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
\r
25 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
26 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\r
33 #if !defined( __BUS_PORT_MGR_H__ )
\r
34 #define __BUS_PORT_MGR_H__
\r
36 #include <iba/ib_al.h>
\r
37 #include <complib/cl_mutex.h>
\r
38 #include <complib/cl_obj.h>
\r
41 /* Global load service */
\r
42 typedef struct _port_mgr
\r
45 TO_LONG_PTR( ib_pnp_handle_t , h_pnp) ; /* Handle for port PnP events */
\r
47 /* Mutex protects both pointer vectors. */
\r
48 cl_mutex_t pdo_mutex;
\r
50 /* Pointer vector of child IPoIB port PDOs. */
\r
51 cl_qlist_t port_list;
\r
58 OUT port_mgr_t** const pp_port_mgr );
\r
62 port_mgr_get_bus_relations(
\r
63 IN const net64_t ca_guid,
\r
64 IN IRP* const p_irp );
\r