mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 04:42:53 +00:00
lib: remove uncessary #includes from headers
Only include what the header itself needs. The big fish here is intel-gpu-tools.h. More will follow. One ugly thing removed here is the duplicated GEN6_TD_CTL #define, one of which was broken. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
#include <err.h>
|
||||
#include <arpa/inet.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_reg.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "drmtest.h"
|
||||
|
||||
static uint32_t devid;
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_reg.h"
|
||||
|
||||
/* XXX PCH only today */
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
|
||||
#include "intel_bios.h"
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "drmtest.h"
|
||||
|
||||
static uint32_t devid = -1;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "instdone.h"
|
||||
#include "intel_reg.h"
|
||||
|
||||
static uint32_t
|
||||
print_head(unsigned int reg)
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
bool daemonized;
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_reg.h"
|
||||
|
||||
#define SAMPLES_PER_SEC 10000
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@
|
||||
#endif
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "instdone.h"
|
||||
#include "intel_reg.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
#define FORCEWAKE 0xA18C
|
||||
#define FORCEWAKE_ACK 0x130090
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
#define KB(x) ((x) * 1024)
|
||||
#define MB(x) ((x) * 1024 * 1024)
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "drmtest.h"
|
||||
|
||||
typedef enum {
|
||||
TRANSC_A = 0,
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_reg.h"
|
||||
#include "intel_bios.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
enum lid_status {
|
||||
LID_UNKNOWN = -1,
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "drmtest.h"
|
||||
|
||||
#define OPREGION_HEADER_OFFSET 0
|
||||
#define OPREGION_ACPI_OFFSET 0x100
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_reg.h"
|
||||
|
||||
int gen;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void usage(char *cmdname)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static uint32_t devid;
|
||||
static int gen;
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <err.h>
|
||||
#include <unistd.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_reg.h"
|
||||
#include "drmtest.h"
|
||||
|
||||
static uint32_t devid = 0;
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <err.h>
|
||||
#include <string.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void bit_decode(uint32_t reg)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <stdio.h>
|
||||
#include <err.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <err.h>
|
||||
#include "intel_chipset.h"
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_reg.h"
|
||||
|
||||
static void
|
||||
print_clock(const char *name, int clock) {
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/io.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static uint8_t read_reg(uint32_t reg, bool use_mmio)
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <unistd.h>
|
||||
#include <sys/io.h>
|
||||
#include "intel_gpu_tools.h"
|
||||
#include "intel_chipset.h"
|
||||
|
||||
static void write_reg(uint32_t reg, uint8_t val, bool use_mmio)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user