summaryrefslogtreecommitdiffstats
path: root/sys/dev/e1000/e1000_manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/e1000/e1000_manage.c')
-rw-r--r--sys/dev/e1000/e1000_manage.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/dev/e1000/e1000_manage.c b/sys/dev/e1000/e1000_manage.c
index 88753ad..b1f6541 100644
--- a/sys/dev/e1000/e1000_manage.c
+++ b/sys/dev/e1000/e1000_manage.c
@@ -70,7 +70,7 @@ static u8 e1000_calculate_checksum(u8 *buffer, u32 length)
* and also checks whether the previous command is completed. It busy waits
* in case of previous command is not completed.
**/
-s32 e1000_mng_enable_host_if_generic(struct e1000_hw * hw)
+s32 e1000_mng_enable_host_if_generic(struct e1000_hw *hw)
{
u32 hicr;
s32 ret_val = E1000_SUCCESS;
@@ -118,8 +118,8 @@ bool e1000_check_mng_mode_generic(struct e1000_hw *hw)
fwsm = E1000_READ_REG(hw, E1000_FWSM);
- return ((fwsm & E1000_FWSM_MODE_MASK) ==
- (E1000_MNG_IAMT_MODE << E1000_FWSM_MODE_SHIFT));
+ return (fwsm & E1000_FWSM_MODE_MASK) ==
+ (E1000_MNG_IAMT_MODE << E1000_FWSM_MODE_SHIFT);
}
/**
@@ -195,7 +195,7 @@ out:
*
* Writes the DHCP information to the host interface.
**/
-s32 e1000_mng_write_dhcp_info_generic(struct e1000_hw * hw, u8 *buffer,
+s32 e1000_mng_write_dhcp_info_generic(struct e1000_hw *hw, u8 *buffer,
u16 length)
{
struct e1000_host_mng_command_header hdr;
@@ -241,8 +241,8 @@ out:
*
* Writes the command header after does the checksum calculation.
**/
-s32 e1000_mng_write_cmd_header_generic(struct e1000_hw * hw,
- struct e1000_host_mng_command_header * hdr)
+s32 e1000_mng_write_cmd_header_generic(struct e1000_hw *hw,
+ struct e1000_host_mng_command_header *hdr)
{
u16 i, length = sizeof(struct e1000_host_mng_command_header);
@@ -275,7 +275,7 @@ s32 e1000_mng_write_cmd_header_generic(struct e1000_hw * hw,
* It also does alignment considerations to do the writes in most efficient
* way. Also fills up the sum of the buffer in *buffer parameter.
**/
-s32 e1000_mng_host_if_write_generic(struct e1000_hw * hw, u8 *buffer,
+s32 e1000_mng_host_if_write_generic(struct e1000_hw *hw, u8 *buffer,
u16 length, u16 offset, u8 *sum)
{
u8 *tmp;
@@ -324,7 +324,8 @@ s32 e1000_mng_host_if_write_generic(struct e1000_hw * hw, u8 *buffer,
*sum += *(tmp + j);
}
- E1000_WRITE_REG_ARRAY_DWORD(hw, E1000_HOST_IF, offset + i, data);
+ E1000_WRITE_REG_ARRAY_DWORD(hw, E1000_HOST_IF, offset + i,
+ data);
}
if (remaining) {
for (j = 0; j < sizeof(u32); j++) {
OpenPOWER on IntegriCloud