drivers/am335xgpio: Add AM335x driver for bitbang support on BeagleBones
[fw/openocd] / src / jtag / aice / aice_port.c
1 /***************************************************************************
2  *   Copyright (C) 2013 by Andes Technology                                *
3  *   Hsiangkai Wang <hkwang@andestech.com>                                 *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
17  ***************************************************************************/
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21
22 #include <helper/log.h>
23 #include "aice_usb.h"
24 #include "aice_pipe.h"
25 #include "aice_port.h"
26
27 static const struct aice_port aice_ports[] = {
28         {
29                 .name = "aice_usb",
30                 .type = AICE_PORT_AICE_USB,
31                 .api = &aice_usb_api,
32         },
33         {
34                 .name = "aice_pipe",
35                 .type = AICE_PORT_AICE_PIPE,
36                 .api = &aice_pipe,
37         },
38         {.name = NULL, /* END OF TABLE */ },
39 };
40
41 /** */
42 const struct aice_port *aice_port_get_list(void)
43 {
44         return aice_ports;
45 }