3 Copyright (c) 2005-2009 Mellanox Technologies. All rights reserved.
\r
9 Statistics Collector header file
\r
25 #define IPOIB_ST_MAX_DEVICES 16
\r
36 typedef struct _ipoib_adapter ipoib_adapter_t;
\r
37 typedef struct _ipoib_port ipoib_port_t;
\r
40 typedef struct _IPOIB_ST_DEVICE
\r
42 boolean_t valid; // all the structure is valid
\r
43 ipoib_adapter_t *p_adapter; // current
\r
44 ipoib_port_t *p_prev_port; // previous value of p_port in p_adapter
\r
45 PRKTHREAD p_halt_thread; // thread, calling ipoib_halt
\r
46 int n_power_irps; // NdisDevicePnPEventPowerProfileChanged
\r
47 int n_pnp_irps; // NdisDevicePnPEventSurpriseRemoved
\r
49 } IPOIB_ST_DEVICE, *PIPOIB_ST_DEVICE;
\r
52 typedef struct _IPOIB_ST_DRIVER
\r
56 } IPOIB_ST_DRIVER, *PIPOIB_ST_DRIVER;
\r
60 typedef struct _IPOIB_ST_STAT
\r
62 IPOIB_ST_DRIVER drv;
\r
63 IPOIB_ST_DEVICE dev[IPOIB_ST_MAX_DEVICES];
\r
65 } IPOIB_ST_STAT, *PIPOIB_ST_STAT;
\r
67 extern IPOIB_ST_STAT g_stat;
\r
73 void ipoib_st_dev_rmv( PIPOIB_ST_DEVICE p_stat );
\r
75 PIPOIB_ST_DEVICE ipoib_st_dev_add();
\r
77 void ipoib_st_init();
\r