[arbel] Synchronise changes with the Hermon driver

Backport some changes from the Hermon driver to the Arbel driver.
Specifically:

 o  Rename reserved_lkey to lkey

 o  Add arbel_rate() to calculate transmission rates

 o  Structure code to allow for addition of RC queue pairs

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2010-09-17 05:04:39 +01:00
parent 144a23a852
commit d9aef1b50a
2 changed files with 70 additions and 38 deletions

View File

@@ -107,6 +107,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ARBEL_LOG_MULTICAST_HASH_SIZE 3
#define ARBEL_PM_STATE_ARMED 0x00
#define ARBEL_PM_STATE_REARM 0x01
#define ARBEL_PM_STATE_MIGRATED 0x03
/*
* Datatypes that seem to be missing from the autogenerated documentation
*
@@ -469,11 +473,11 @@ struct arbel {
struct arbel_event_queue eq;
/** Doorbell records */
union arbelprm_doorbell_record *db_rec;
/** Reserved LKey
/** Unrestricted LKey
*
* Used to get unrestricted memory access.
*/
unsigned long reserved_lkey;
unsigned long lkey;
/** Completion queue in-use bitmask */
arbel_bitmask_t cq_inuse[ ARBEL_BITMASK_SIZE ( ARBEL_MAX_CQS ) ];