@@ -135,7 +135,6 @@ libpdbg_la_SOURCES = \
libpdbg/bitutils.h \
libpdbg/compiler.h \
libpdbg/debug.h \
- libpdbg/device.h \
libpdbg/operations.h \
libpdbg/libpdbg.h \
libpdbg/target.h
@@ -27,7 +27,6 @@
#include "bitutils.h"
#include "operations.h"
-#include "device.h"
#include "target.h"
#include "debug.h"
@@ -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;
deleted file mode 100644
@@ -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 */
@@ -1,7 +1,6 @@
#include <string.h>
#include "target.h"
-#include "device.h"
#include "libpdbg.h"
static pdbg_progress_tick_t progress_tick;
@@ -8,6 +8,8 @@
#include <stdbool.h>
+#include <ccan/short_types/short_types.h>
+
struct pdbg_target;
struct pdbg_target_class;
@@ -7,7 +7,6 @@
#include "bitutils.h"
#include "target.h"
-#include "device.h"
#include "operations.h"
#include "debug.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};
@@ -34,7 +34,6 @@
#include <ccan/array_size/array_size.h>
#include <libpdbg.h>
-#include <device.h>
#include <bitutils.h>
#include "main.h"
Signed-off-by: Alistair Popple <alistair@popple.id.au> --- Makefile.am | 1 - libpdbg/bmcfsi.c | 1 - libpdbg/device.c | 6 ++++-- libpdbg/device.h | 26 -------------------------- libpdbg/libpdbg.c | 1 - libpdbg/libpdbg.h | 2 ++ libpdbg/target.c | 1 - libpdbg/target.h | 1 - src/htm.c | 1 - 9 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 libpdbg/device.h