OpenOCD
aice_port.c
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 
3 /***************************************************************************
4  * Copyright (C) 2013 by Andes Technology *
5  * Hsiangkai Wang <hkwang@andestech.com> *
6  ***************************************************************************/
7 #ifdef HAVE_CONFIG_H
8 #include "config.h"
9 #endif
10 
11 #include <helper/log.h>
12 #include "aice_usb.h"
13 #include "aice_pipe.h"
14 #include "aice_port.h"
15 
16 static const struct aice_port aice_ports[] = {
17  {
18  .name = "aice_usb",
19  .type = AICE_PORT_AICE_USB,
20  .api = &aice_usb_api,
21  },
22  {
23  .name = "aice_pipe",
24  .type = AICE_PORT_AICE_PIPE,
25  .api = &aice_pipe,
26  },
27  {.name = NULL, /* END OF TABLE */ },
28 };
29 
31 const struct aice_port *aice_port_get_list(void)
32 {
33  return aice_ports;
34 }
struct aice_port_api_s aice_pipe
Definition: aice_pipe.c:829
const struct aice_port * aice_port_get_list(void)
Definition: aice_port.c:31
static const struct aice_port aice_ports[]
Definition: aice_port.c:16
#define AICE_PORT_AICE_PIPE
Definition: aice_port.h:209
#define AICE_PORT_AICE_USB
Definition: aice_port.h:208
struct aice_port_api_s aice_usb_api
Definition: aice_usb.c:4030
const char * name
Definition: aice_port.h:214
#define NULL
Definition: usb.h:16