| 1 | /* |
| 2 | * carl9170 firmware - used by the ar9170 wireless device |
| 3 | * |
| 4 | * CAM (Security Engine) definitions |
| 5 | * |
| 6 | * Copyright (c) 2000-2005 ZyDAS Technology Corporation |
| 7 | * Copyright (c) 2007-2009 Atheros Communications, Inc. |
| 8 | * Copyright 2009 Johannes Berg <[email protected]> |
| 9 | * Copyright 2009-2011 Christian Lamparter <[email protected]> |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License along |
| 22 | * with this program; If not, see <http://www.gnu.org/licenses/>. |
| 23 | */ |
| 24 | |
| 25 | #ifndef __CARL9170FW_CAM_H |
| 26 | #define __CARL9170FW_CAM_H |
| 27 | |
| 28 | #include "config.h" |
| 29 | #include "cmd.h" |
| 30 | |
| 31 | #ifdef CONFIG_CARL9170FW_SECURITY_ENGINE |
| 32 | |
| 33 | #define ENCRY_TYPE_START_ADDR 24 |
| 34 | #define DEFAULT_ENCRY_TYPE 26 |
| 35 | #define KEY_START_ADDR 27 |
| 36 | #define STA_KEY_START_ADDR 155 |
| 37 | #define COUNTER_START_ADDR 163 |
| 38 | #define STA_COUNTER_START_ADDR 165 |
| 39 | |
| 40 | /* CAM */ |
| 41 | #define MIC_FINISH 0x1 |
| 42 | |
| 43 | void set_key(const struct carl9170_set_key_cmd *key); |
| 44 | void disable_key(const struct carl9170_disable_key_cmd *key); |
| 45 | |
| 46 | #endif /* CONFIG_CARL9170FW_SECURITY_ENGINE */ |
| 47 | |
| 48 | #endif /* __CARL9170FW_CAM_H */ |