summaryrefslogtreecommitdiffstats
path: root/libpdbg
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-10-25 16:46:42 +1100
committerAlistair Popple <alistair@popple.id.au>2018-11-09 11:27:54 +1100
commit60b2ec3a95ddebd8943bdf5d61f700d7d2fca923 (patch)
tree7d6b66c65f5712e06aa27b481710dfc73b9653d8 /libpdbg
parentcf249e7912069d6fece97e575ce3bae7365f8677 (diff)
downloadpdbg-60b2ec3a95ddebd8943bdf5d61f700d7d2fca923.tar.gz
pdbg-60b2ec3a95ddebd8943bdf5d61f700d7d2fca923.zip
libpdbg: Remove device.h
Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
Diffstat (limited to 'libpdbg')
-rw-r--r--libpdbg/bmcfsi.c1
-rw-r--r--libpdbg/device.c6
-rw-r--r--libpdbg/device.h26
-rw-r--r--libpdbg/libpdbg.c1
-rw-r--r--libpdbg/libpdbg.h2
-rw-r--r--libpdbg/target.c1
-rw-r--r--libpdbg/target.h1
7 files changed, 6 insertions, 32 deletions
diff --git a/libpdbg/bmcfsi.c b/libpdbg/bmcfsi.c
index a233106..f9cee3d 100644
--- a/libpdbg/bmcfsi.c
+++ b/libpdbg/bmcfsi.c
@@ -27,7 +27,6 @@
#include "bitutils.h"
#include "operations.h"
-#include "device.h"
#include "target.h"
#include "debug.h"
diff --git a/libpdbg/device.c b/libpdbg/device.c
index 4a9d39a..9557172 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -14,17 +14,19 @@
* limitations under the License.
*/
-#include "device.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "target.h"
#include <libfdt/libfdt.h>
#include <libfdt/libfdt_internal.h>
+#include <ccan/list/list.h>
+#include <ccan/short_types/short_types.h>
#include <ccan/str/str.h>
#include <endian.h>
#include "debug.h"
+#include "compiler.h"
#define zalloc(size) calloc(1, size)
#define prerror printf
@@ -34,7 +36,7 @@
list_for_each(&parent->children, node, list)
/* Used to give unique handles. */
-static u32 last_phandle = 0;
+static uint32_t last_phandle = 0;
static struct pdbg_target *pdbg_dt_root;
diff --git a/libpdbg/device.h b/libpdbg/device.h
deleted file mode 100644
index 4a4a06f..0000000
--- a/libpdbg/device.h
+++ /dev/null
@@ -1,26 +0,0 @@
-/* Copyright 2013-2014 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __DEVICE_H
-#define __DEVICE_H
-#include <ccan/list/list.h>
-#include <ccan/short_types/short_types.h>
-#include "compiler.h"
-
-/* Any property or node with this prefix will not be passed to the kernel. */
-#define DT_PRIVATE "skiboot,"
-
-#endif /* __DEVICE_H */
diff --git a/libpdbg/libpdbg.c b/libpdbg/libpdbg.c
index 2393fb1..f3ed959 100644
--- a/libpdbg/libpdbg.c
+++ b/libpdbg/libpdbg.c
@@ -1,7 +1,6 @@
#include <string.h>
#include "target.h"
-#include "device.h"
#include "libpdbg.h"
static pdbg_progress_tick_t progress_tick;
diff --git a/libpdbg/libpdbg.h b/libpdbg/libpdbg.h
index 6376277..f55acf4 100644
--- a/libpdbg/libpdbg.h
+++ b/libpdbg/libpdbg.h
@@ -8,6 +8,8 @@
#include <stdbool.h>
+#include <ccan/short_types/short_types.h>
+
struct pdbg_target;
struct pdbg_target_class;
diff --git a/libpdbg/target.c b/libpdbg/target.c
index 5ebe71d..1fc8457 100644
--- a/libpdbg/target.c
+++ b/libpdbg/target.c
@@ -7,7 +7,6 @@
#include "bitutils.h"
#include "target.h"
-#include "device.h"
#include "operations.h"
#include "debug.h"
diff --git a/libpdbg/target.h b/libpdbg/target.h
index 258c576..7cc855d 100644
--- a/libpdbg/target.h
+++ b/libpdbg/target.h
@@ -21,7 +21,6 @@
#include <ccan/str/str.h>
#include <ccan/container_of/container_of.h>
#include "compiler.h"
-#include "device.h"
#include "libpdbg.h"
enum chip_type {CHIP_UNKNOWN, CHIP_P8, CHIP_P8NV, CHIP_P9};
OpenPOWER on IntegriCloud