Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ixgbe_mbx.c File Reference
#include <linux/pci.h>
#include <linux/delay.h>
#include "ixgbe_type.h"
#include "ixgbe_common.h"
#include "ixgbe_mbx.h"

Go to the source code of this file.

Functions

s32 ixgbe_read_mbx (struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id)
 
s32 ixgbe_write_mbx (struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id)
 
s32 ixgbe_check_for_msg (struct ixgbe_hw *hw, u16 mbx_id)
 
s32 ixgbe_check_for_ack (struct ixgbe_hw *hw, u16 mbx_id)
 
s32 ixgbe_check_for_rst (struct ixgbe_hw *hw, u16 mbx_id)
 

Variables

struct ixgbe_mbx_operations mbx_ops_generic
 

Function Documentation

s32 ixgbe_check_for_ack ( struct ixgbe_hw hw,
u16  mbx_id 
)

ixgbe_check_for_ack - checks to see if someone sent us ACK : pointer to the HW structure : id of mailbox to check

returns SUCCESS if the Status bit was found or else ERR_MBX

Definition at line 106 of file ixgbe_mbx.c.

s32 ixgbe_check_for_msg ( struct ixgbe_hw hw,
u16  mbx_id 
)

ixgbe_check_for_msg - checks to see if someone sent us mail : pointer to the HW structure : id of mailbox to check

returns SUCCESS if the Status bit was found or else ERR_MBX

Definition at line 88 of file ixgbe_mbx.c.

s32 ixgbe_check_for_rst ( struct ixgbe_hw hw,
u16  mbx_id 
)

ixgbe_check_for_rst - checks to see if other side has reset : pointer to the HW structure : id of mailbox to check

returns SUCCESS if the Status bit was found or else ERR_MBX

Definition at line 124 of file ixgbe_mbx.c.

s32 ixgbe_read_mbx ( struct ixgbe_hw hw,
u32 msg,
u16  size,
u16  mbx_id 
)

ixgbe_read_mbx - Reads a message from the mailbox : pointer to the HW structure : The message buffer : Length of buffer : id of mailbox to read

returns SUCCESS if it successfully read message from buffer

Definition at line 43 of file ixgbe_mbx.c.

s32 ixgbe_write_mbx ( struct ixgbe_hw hw,
u32 msg,
u16  size,
u16  mbx_id 
)

ixgbe_write_mbx - Write a message to the mailbox : pointer to the HW structure : The message buffer : Length of buffer : id of mailbox to write

returns SUCCESS if it successfully copied message into the buffer

Definition at line 67 of file ixgbe_mbx.c.

Variable Documentation

struct ixgbe_mbx_operations mbx_ops_generic
Initial value:
= {
.read = ixgbe_read_mbx_pf,
.write = ixgbe_write_mbx_pf,
.read_posted = ixgbe_read_posted_mbx,
.write_posted = ixgbe_write_posted_mbx,
.check_for_msg = ixgbe_check_for_msg_pf,
.check_for_ack = ixgbe_check_for_ack_pf,
.check_for_rst = ixgbe_check_for_rst_pf,
}

Definition at line 462 of file ixgbe_mbx.c.