developer | 02e6591 | 2023-08-17 16:33:10 +0800 | [diff] [blame^] | 1 | /* eip207_rc.c |
| 2 | * |
| 3 | * EIP-207 Record Cache (RC) interface High-Performance (HP) implementation |
| 4 | */ |
| 5 | |
| 6 | /* -------------------------------------------------------------------------- */ |
| 7 | /* */ |
| 8 | /* Module : ddk197 */ |
| 9 | /* Version : 5.6.1 */ |
| 10 | /* Configuration : DDK-197-GPL */ |
| 11 | /* */ |
| 12 | /* Date : 2022-Dec-16 */ |
| 13 | /* */ |
| 14 | /* Copyright (c) 2008-2022 by Rambus, Inc. and/or its subsidiaries. */ |
| 15 | /* */ |
| 16 | /* This program is free software: you can redistribute it and/or modify */ |
| 17 | /* it under the terms of the GNU General Public License as published by */ |
| 18 | /* the Free Software Foundation, either version 2 of the License, or */ |
| 19 | /* any later version. */ |
| 20 | /* */ |
| 21 | /* This program is distributed in the hope that it will be useful, */ |
| 22 | /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ |
| 23 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ |
| 24 | /* GNU General Public License for more details. */ |
| 25 | /* */ |
| 26 | /* You should have received a copy of the GNU General Public License */ |
| 27 | /* along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 28 | /* -------------------------------------------------------------------------- */ |
| 29 | |
| 30 | /*---------------------------------------------------------------------------- |
| 31 | * This module implements (provides) the following interface(s): |
| 32 | */ |
| 33 | |
| 34 | // EIP-207 Record Cache (RC) interface |
| 35 | #include "eip207_rc.h" |
| 36 | |
| 37 | |
| 38 | /*---------------------------------------------------------------------------- |
| 39 | * This module uses (requires) the following interface(s): |
| 40 | */ |
| 41 | |
| 42 | // Driver Framework Basic Definitions API |
| 43 | #include "basic_defs.h" // uint32_t |
| 44 | |
| 45 | // EIP-207 Global Control Driver Library Internal interfaces |
| 46 | #include "eip207_level0.h" // EIP-207 Level 0 macros |
| 47 | |
| 48 | // Driver Framework Device API |
| 49 | #include "device_types.h" // Device_Handle_t |
| 50 | |
| 51 | |
| 52 | /*---------------------------------------------------------------------------- |
| 53 | * EIP207_RC_BaseAddr_Set |
| 54 | */ |
| 55 | void |
| 56 | EIP207_RC_BaseAddr_Set( |
| 57 | const Device_Handle_t Device, |
| 58 | const uint32_t CacheBase, |
| 59 | const unsigned int CacheNr, |
| 60 | const uint32_t Address, |
| 61 | const uint32_t UpperAddress) |
| 62 | { |
| 63 | // Not implemented |
| 64 | IDENTIFIER_NOT_USED(Device); |
| 65 | IDENTIFIER_NOT_USED(CacheBase); |
| 66 | IDENTIFIER_NOT_USED(CacheNr); |
| 67 | IDENTIFIER_NOT_USED(Address); |
| 68 | IDENTIFIER_NOT_USED(UpperAddress); |
| 69 | } |
| 70 | |
| 71 | |
| 72 | /*---------------------------------------------------------------------------- |
| 73 | * EIP207_RC_Record_Update |
| 74 | */ |
| 75 | void |
| 76 | EIP207_RC_Record_Update( |
| 77 | const Device_Handle_t Device, |
| 78 | const uint32_t CacheBase, |
| 79 | const unsigned int CacheNr, |
| 80 | const uint32_t Rec_DMA_Addr, |
| 81 | const uint8_t Command, |
| 82 | const unsigned int ByteOffset, |
| 83 | const uint32_t Value32) |
| 84 | { |
| 85 | // Not implemented |
| 86 | IDENTIFIER_NOT_USED(Command); |
| 87 | IDENTIFIER_NOT_USED(Device); |
| 88 | IDENTIFIER_NOT_USED(CacheBase); |
| 89 | IDENTIFIER_NOT_USED(Device); |
| 90 | IDENTIFIER_NOT_USED(CacheNr); |
| 91 | IDENTIFIER_NOT_USED(Rec_DMA_Addr); |
| 92 | IDENTIFIER_NOT_USED(ByteOffset); |
| 93 | IDENTIFIER_NOT_USED(Value32); |
| 94 | } |
| 95 | |
| 96 | |
| 97 | /*---------------------------------------------------------------------------- |
| 98 | * EIP207_RC_Record_Dummy_Addr_Get |
| 99 | */ |
| 100 | unsigned int |
| 101 | EIP207_RC_Record_Dummy_Addr_Get(void) |
| 102 | { |
| 103 | return EIP207_RC_RECORD_DUMMY_ADDRESS; |
| 104 | } |
| 105 | |
| 106 | |
| 107 | /* end of file eip207_rc.c */ |