mirror of
https://github.com/torvalds/linux.git
synced 2026-04-24 17:42:27 -04:00
crypto: cavium/nitrox - Add mailbox message to get mcode info in VF
Add support to get microcode information in VF from PF via mailbox message. Signed-off-by: Nagadheeraj Rottela <rnagadheeraj@marvell.com> Reviewed-by: Srikanth Jampala <jsrikanth@marvell.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
0600e9c071
commit
9e5de3e06e
@@ -109,6 +109,13 @@ struct nitrox_q_vector {
|
||||
};
|
||||
};
|
||||
|
||||
enum mcode_type {
|
||||
MCODE_TYPE_INVALID,
|
||||
MCODE_TYPE_AE,
|
||||
MCODE_TYPE_SE_SSL,
|
||||
MCODE_TYPE_SE_IPSEC,
|
||||
};
|
||||
|
||||
/**
|
||||
* mbox_msg - Mailbox message data
|
||||
* @type: message type
|
||||
@@ -128,6 +135,14 @@ union mbox_msg {
|
||||
u64 chipid: 8;
|
||||
u64 vfid: 8;
|
||||
} id;
|
||||
struct {
|
||||
u64 type: 2;
|
||||
u64 opcode: 6;
|
||||
u64 count: 4;
|
||||
u64 info: 40;
|
||||
u64 next_se_grp: 3;
|
||||
u64 next_ae_grp: 3;
|
||||
} mcode_info;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user