%D%/tcl.c \
%D%/swim.c \
%D%/commands.h \
- %D%/driver.h \
%D%/interface.h \
%D%/interfaces.h \
%D%/minidriver.h \
* @todo Remove internal assumptions that all debug adapters use JTAG for
* transport. Various types and data structures are not named generically.
*/
-int interface_register_commands(struct command_context *ctx)
+int adapter_register_commands(struct command_context *ctx)
{
return register_commands(ctx, NULL, interface_command_handlers);
}
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
+ * Copyright (C) 2005 by Dominic Rath <Dominic.Rath@gmx.de>
* Copyright (c) 2018 Pengutronix, Oleksij Rempel <kernel@pengutronix.de>
*/
struct command_context;
+/** Register the adapter's commands */
+int adapter_register_commands(struct command_context *ctx);
+
/** Initialize debug adapter upon startup. */
int adapter_init(struct command_context *cmd_ctx);
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2005 by Dominic Rath *
- * Dominic.Rath@gmx.de *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program. If not, see <http://www.gnu.org/licenses/>. *
- ***************************************************************************/
-
-#ifndef OPENOCD_JTAG_DRIVER_H
-#define OPENOCD_JTAG_DRIVER_H
-
-struct command_context;
-
-int interface_register_commands(struct command_context *ctx);
-
-#endif /* OPENOCD_JTAG_DRIVER_H */
#include "openocd.h"
#include <jtag/adapter.h>
-#include <jtag/driver.h>
#include <jtag/jtag.h>
#include <transport/transport.h>
#include <helper/util.h>
&log_register_commands,
&rtt_server_register_commands,
&transport_register_commands,
- &interface_register_commands,
+ &adapter_register_commands,
&target_register_commands,
&flash_register_commands,
&nand_register_commands,