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
}
aice_pipe
struct aice_port_api_s aice_pipe
Definition:
aice_pipe.c:829
aice_pipe.h
aice_port_get_list
const struct aice_port * aice_port_get_list(void)
Definition:
aice_port.c:31
aice_ports
static const struct aice_port aice_ports[]
Definition:
aice_port.c:16
aice_port.h
AICE_PORT_AICE_PIPE
#define AICE_PORT_AICE_PIPE
Definition:
aice_port.h:209
AICE_PORT_AICE_USB
#define AICE_PORT_AICE_USB
Definition:
aice_port.h:208
aice_usb_api
struct aice_port_api_s aice_usb_api
Definition:
aice_usb.c:4030
aice_usb.h
config.h
log.h
aice_port
Definition:
aice_port.h:212
aice_port::name
const char * name
Definition:
aice_port.h:214
NULL
#define NULL
Definition:
usb.h:16
src
jtag
aice
aice_port.c
Generated by
1.9.1