diff options
author | smh <smh@FreeBSD.org> | 2015-12-11 13:08:38 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2015-12-11 13:08:38 +0000 |
commit | f530e62d3d1d2b962a3f3c87e722e15595a5285d (patch) | |
tree | 225a8e91b5c53ee7334ffaaf1dbd573f86d7245e /sys/dev/ixl/i40e_osdep.h | |
parent | f34c49d6586a85c5b35d5d04ea3dbf55b15b8d6d (diff) | |
download | FreeBSD-src-f530e62d3d1d2b962a3f3c87e722e15595a5285d.zip FreeBSD-src-f530e62d3d1d2b962a3f3c87e722e15595a5285d.tar.gz |
MFC r284049: Update SW4 to the Intel ixl/ixlv
Sponsored by: Multiplay
Diffstat (limited to 'sys/dev/ixl/i40e_osdep.h')
-rw-r--r-- | sys/dev/ixl/i40e_osdep.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/ixl/i40e_osdep.h b/sys/dev/ixl/i40e_osdep.h index 83e8922..67a4b18 100644 --- a/sys/dev/ixl/i40e_osdep.h +++ b/sys/dev/ixl/i40e_osdep.h @@ -1,6 +1,6 @@ /****************************************************************************** - Copyright (c) 2013-2014, Intel Corporation + Copyright (c) 2013-2015, Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without @@ -112,6 +112,9 @@ #define FIELD_SIZEOF(x, y) (sizeof(((x*)0)->y)) +#define BIT(a) (1UL << (a)) +#define BIT_ULL(a) (1ULL << (a)) + typedef uint8_t u8; typedef int8_t s8; typedef uint16_t u16; @@ -189,7 +192,7 @@ rd32_osdep(struct i40e_osdep *osdep, uint32_t reg) { KASSERT(reg < osdep->mem_bus_space_size, - ("ixl: register offset %#jx too large (max is %#jx", + ("ixl: register offset %#jx too large (max is %#jx)", (uintmax_t)reg, (uintmax_t)osdep->mem_bus_space_size)); return (bus_space_read_4(osdep->mem_bus_space_tag, @@ -201,7 +204,7 @@ wr32_osdep(struct i40e_osdep *osdep, uint32_t reg, uint32_t value) { KASSERT(reg < osdep->mem_bus_space_size, - ("ixl: register offset %#jx too large (max is %#jx", + ("ixl: register offset %#jx too large (max is %#jx)", (uintmax_t)reg, (uintmax_t)osdep->mem_bus_space_size)); bus_space_write_4(osdep->mem_bus_space_tag, @@ -211,7 +214,6 @@ wr32_osdep(struct i40e_osdep *osdep, uint32_t reg, uint32_t value) static __inline void ixl_flush_osdep(struct i40e_osdep *osdep) { - rd32_osdep(osdep, osdep->flush_reg); } |