[intelxl] Separate virtual function driver definitions
Move knowledge of the virtual function data structures and admin command definitions from intelxl.h to intelxlvf.h. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -360,8 +360,8 @@ int intelxl_admin_command ( struct intelxl_nic *intelxl ) {
|
||||
buf = &admin->buf[ index % INTELXL_ADMIN_NUM_DESC ];
|
||||
DBGC2 ( intelxl, "INTELXL %p admin command %#x opcode %#04x",
|
||||
intelxl, index, le16_to_cpu ( cmd->opcode ) );
|
||||
if ( cmd->vopcode )
|
||||
DBGC2 ( intelxl, "/%#08x", le32_to_cpu ( cmd->vopcode ) );
|
||||
if ( cmd->cookie )
|
||||
DBGC2 ( intelxl, "/%#08x", le32_to_cpu ( cmd->cookie ) );
|
||||
DBGC2 ( intelxl, ":\n" );
|
||||
|
||||
/* Sanity checks */
|
||||
@@ -378,7 +378,7 @@ int intelxl_admin_command ( struct intelxl_nic *intelxl ) {
|
||||
}
|
||||
|
||||
/* Populate cookie, if not being (ab)used for VF opcode */
|
||||
if ( ! cmd->vopcode )
|
||||
if ( ! cmd->cookie )
|
||||
cmd->cookie = cpu_to_le32 ( index );
|
||||
|
||||
/* Record cookie */
|
||||
|
||||
Reference in New Issue
Block a user