/****************************************************************************************** ** Project : Atlantis for Linux ** Filename : MsrAccDrv.h ** Creator : ** Date : Apr 23, 2014 ** Description: ** ** Copyright 2011 NetApp Corporation. All Rights Reserved ** ** Description: ** Include header file for the haswell msr driver ** **********************************************************************************************/ #ifndef _MSRACC_MODULE_H_ #define _MSRACC_MODULE_H_ #define MSRACC_DYNAMIC_MAJOR 0 /* Dynamic major by default if set "0" */ #define MSRACC_DEVICE_NAME "msrAccessDrv" #define MSRACC_NODE_NAME "/dev/msrAccessDrv" #define MSRACC_MAGIC_NUMBER 'x' /* IOCTL */ #define READ_MSR_IOCTL 1 #define WRITE_MSR_IOCTL 2 struct msracc_drv_cmd { UINT32 cpu_id; UINT32 msr_offset; UINT32 val_low; UINT32 val_high; }; #endif /* _MSRACC_MODULE_H_ */