mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
intel_audio_dump: define IS_HASWELL_PLUS to cover Haswell and its successors
A macro IS_HASWELL_PLUS(devid) is defined to cover Haswell and its successors, for code sharing. Now it covers HSW and BDW. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
ed386663fe
commit
1803f1ebfa
@ -40,6 +40,8 @@ static uint32_t devid;
|
||||
static int aud_reg_base = 0; /* base address of audio registers */
|
||||
static int disp_reg_base = 0; /* base address of display registers */
|
||||
|
||||
#define IS_HASWELL_PLUS(devid) (IS_HASWELL(devid) || IS_BROADWELL(devid))
|
||||
|
||||
#define BITSTO(n) (n >= sizeof(long) * 8 ? ~0 : (1UL << (n)) - 1)
|
||||
#define BITMASK(high, low) (BITSTO(high+1) & ~BITSTO(low))
|
||||
#define BITS(reg, high, low) (((reg) & (BITMASK(high, low))) >> (low))
|
||||
|
Loading…
x
Reference in New Issue
Block a user