OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="gpio.h" company="Atheros"> |
| 3 // Copyright (c) 2005 Atheros Corporation. All rights reserved. |
| 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 version 2 as |
| 7 // published by the Free Software Foundation; |
| 8 // |
| 9 // Software distributed under the License is distributed on an "AS |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 11 // implied. See the License for the specific language governing |
| 12 // rights and limitations under the License. |
| 13 // |
| 14 // |
| 15 //------------------------------------------------------------------------------ |
| 16 //============================================================================== |
| 17 // Author(s): ="Atheros" |
| 18 //============================================================================== |
| 19 |
| 20 #define AR6001_GPIO_PIN_COUNT 18 |
| 21 #define AR6002_GPIO_PIN_COUNT 18 |
| 22 #define AR6003_GPIO_PIN_COUNT 28 |
| 23 |
| 24 /* |
| 25 * Possible values for WMIX_GPIO_SET_REGISTER_CMDID. |
| 26 * NB: These match hardware order, so that addresses can |
| 27 * easily be computed. |
| 28 */ |
| 29 #define GPIO_ID_OUT 0x00000000 |
| 30 #define GPIO_ID_OUT_W1TS 0x00000001 |
| 31 #define GPIO_ID_OUT_W1TC 0x00000002 |
| 32 #define GPIO_ID_ENABLE 0x00000003 |
| 33 #define GPIO_ID_ENABLE_W1TS 0x00000004 |
| 34 #define GPIO_ID_ENABLE_W1TC 0x00000005 |
| 35 #define GPIO_ID_IN 0x00000006 |
| 36 #define GPIO_ID_STATUS 0x00000007 |
| 37 #define GPIO_ID_STATUS_W1TS 0x00000008 |
| 38 #define GPIO_ID_STATUS_W1TC 0x00000009 |
| 39 #define GPIO_ID_PIN0 0x0000000a |
| 40 #define GPIO_ID_PIN(n) (GPIO_ID_PIN0+(n)) |
| 41 |
| 42 #define GPIO_LAST_REGISTER_ID GPIO_ID_PIN(17) |
| 43 #define GPIO_ID_NONE 0xffffffff |
OLD | NEW |