0cbbc15dba837dd2d30c9eabbdc2cccd63b93e93
[carl9170fw.git] / tools / carlu / src / cmd.h
1 /*
2  * carl9170user - userspace testing utility for ar9170 devices
3  *
4  * register/memory/command access functions
5  *
6  * Copyright 2009, 2010 Christian Lamparter <chunkeey@googlemail.com>
7  *
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.
12  *
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.
17  *
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.
21  */
22
23 #ifndef __CARL9170USER_CMD_H
24 #define __CARL9170USER_CMD_H
25
26 #include "carlu.h"
27
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,
34                         const uint32_t val);
35
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 */