Move linux header include to peci.c

The linux header is only needed by libpeci, so moving it to
peci.c so applications can include peci.h without also having
to include the linux header.

Tested:
Ran PECI commands from various applications and utilities and
confirmed that PECI still works correctly without the need to
include kernel headers.

Change-Id: Icb3420a8ea7c72d2349bb2540c4c9965fe2c9e89
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/peci.c b/peci.c
index 6aef7a8..90a0d20 100644
--- a/peci.c
+++ b/peci.c
@@ -21,6 +21,11 @@
 #include <syslog.h>
 #include <time.h>
 #include <unistd.h>
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wcpp"
+#pragma GCC diagnostic ignored "-Wvariadic-macros"
+#include <linux/peci-ioctl.h>
+#pragma GCC diagnostic pop
 
 EPECIStatus peci_GetDIB_seq(uint8_t target, uint64_t* dib, int peci_fd);
 
diff --git a/peci.h b/peci.h
index 70ffb11..cb145e3 100644
--- a/peci.h
+++ b/peci.h
@@ -17,11 +17,6 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wcpp"
-#pragma GCC diagnostic ignored "-Wvariadic-macros"
-#include <linux/peci-ioctl.h>
-#pragma GCC diagnostic pop
 #include <inttypes.h>
 #include <stdbool.h>
 
@@ -30,6 +25,10 @@
 #define MAX_CLIENT_ADDR 0x37
 #define MAX_CPUS (MAX_CLIENT_ADDR - MIN_CLIENT_ADDR + 1)
 
+// PECI completion codes from peci-ioctl.h
+#define PECI_DEV_CC_SUCCESS 0x40
+#define PECI_DEV_CC_FATAL_MCA_DETECTED 0x94
+
 typedef enum
 {
     skx = 0x00050650,