| OLD | NEW |
| 1 // ------------------------------------------------------------------ | |
| 2 // Copyright (c) 2004-2007 Atheros Corporation. All rights reserved. | |
| 3 // | |
| 4 // This program is free software; you can redistribute it and/or modify | |
| 5 // it under the terms of the GNU General Public License version 2 as | |
| 6 // published by the Free Software Foundation; | |
| 7 // | |
| 8 // Software distributed under the License is distributed on an "AS | |
| 9 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | |
| 10 // implied. See the License for the specific language governing | |
| 11 // rights and limitations under the License. | |
| 12 // | |
| 13 // | |
| 14 // ------------------------------------------------------------------ | |
| 15 //=================================================================== | |
| 16 // Author(s): ="Atheros" | |
| 17 //=================================================================== | |
| 18 | |
| 19 | |
| 20 #ifndef _VMC_REG_REG_H_ | 1 #ifndef _VMC_REG_REG_H_ |
| 21 #define _VMC_REG_REG_H_ | 2 #define _VMC_REG_REG_H_ |
| 22 | 3 |
| 23 #define MC_TCAM_VALID_ADDRESS 0x00000000 | 4 #define MC_TCAM_VALID_ADDRESS 0x00000000 |
| 24 #define MC_TCAM_VALID_OFFSET 0x00000000 | 5 #define MC_TCAM_VALID_OFFSET 0x00000000 |
| 25 #define MC_TCAM_VALID_BIT_MSB 0 | 6 #define MC_TCAM_VALID_BIT_MSB 0 |
| 26 #define MC_TCAM_VALID_BIT_LSB 0 | 7 #define MC_TCAM_VALID_BIT_LSB 0 |
| 27 #define MC_TCAM_VALID_BIT_MASK 0x00000001 | 8 #define MC_TCAM_VALID_BIT_MASK 0x00000001 |
| 28 #define MC_TCAM_VALID_BIT_GET(x) (((x) & MC_TCAM_VALID_BIT_MASK)
>> MC_TCAM_VALID_BIT_LSB) | 9 #define MC_TCAM_VALID_BIT_GET(x) (((x) & MC_TCAM_VALID_BIT_MASK)
>> MC_TCAM_VALID_BIT_LSB) |
| 29 #define MC_TCAM_VALID_BIT_SET(x) (((x) << MC_TCAM_VALID_BIT_LSB)
& MC_TCAM_VALID_BIT_MASK) | 10 #define MC_TCAM_VALID_BIT_SET(x) (((x) << MC_TCAM_VALID_BIT_LSB)
& MC_TCAM_VALID_BIT_MASK) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 volatile unsigned int mc_tcam_mask[32]; | 67 volatile unsigned int mc_tcam_mask[32]; |
| 87 volatile unsigned int mc_tcam_compare[32]; | 68 volatile unsigned int mc_tcam_compare[32]; |
| 88 volatile unsigned int mc_tcam_target[32]; | 69 volatile unsigned int mc_tcam_target[32]; |
| 89 volatile unsigned int addr_error_control; | 70 volatile unsigned int addr_error_control; |
| 90 volatile unsigned int addr_error_status; | 71 volatile unsigned int addr_error_status; |
| 91 } vmc_reg_reg_t; | 72 } vmc_reg_reg_t; |
| 92 | 73 |
| 93 #endif /* __ASSEMBLER__ */ | 74 #endif /* __ASSEMBLER__ */ |
| 94 | 75 |
| 95 #endif /* _VMC_REG_H_ */ | 76 #endif /* _VMC_REG_H_ */ |
| OLD | NEW |