2 * carl9170user - userspace testing utility for ar9170 devices
4 * register/memory/command access functions
6 * Copyright 2009, 2010 Christian Lamparter <chunkeey@googlemail.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __CARL9170USER_CMD_H
24 #define __CARL9170USER_CMD_H
28 int carlu_cmd_echo(struct carlu *ar, const uint32_t message);
29 int carlu_cmd_reboot(struct carlu *ar);
30 int carlu_cmd_read_eeprom(struct carlu *ar);
31 int carlu_cmd_mem_dump(struct carlu *ar, const uint32_t start,
32 const unsigned int len, void *_buf);
33 int carlu_cmd_write_mem(struct carlu *ar, const uint32_t addr,
36 struct carl9170_cmd *carlu_cmd_buf(struct carlu *ar,
37 const enum carl9170_cmd_oids cmd, const unsigned int len);
38 #endif /* __CARL9170USER_CMD_H */