Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 3 | |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __VENDOR_H__ |
| 18 | #define __VENDOR_H__ |
| 19 | #define VENDOR_ID "Radisys" |
Thiyagarajan Subramani | a2c2c5a | 2021-05-18 14:47:52 +0530 | [diff] [blame] | 20 | #define RLT3200GW |
| 21 | #define MODEL_ID "rlt-3200g-w" |
Thiyagarajan Subramani | e2a9597 | 2021-06-25 17:31:30 +0530 | [diff] [blame] | 22 | #define MAX_SUPPORTED_PON 32 |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 23 | #define ONU_BIT_TRANSMISSION_DELAY 0.8038585/1000 /* unit: ns to us */ |
| 24 | #define MINIMUM_ONU_RESPONSE_RANGING_TIME 198075 /* hardcore: this is ranging time for the shortest distance, typically 35us */ |
| 25 | |
| 26 | // DeviceInfo definitions |
| 27 | |
| 28 | #define ONU_ID_START 1 |
| 29 | #define ONU_ID_END 32 |
Girish Gowdra | eec0fc9 | 2021-05-12 15:37:55 -0700 | [diff] [blame] | 30 | #define MAX_ONUS_PER_PON (ONU_ID_END - ONU_ID_START + 1) |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 31 | |
Girish Gowdra | eec0fc9 | 2021-05-12 15:37:55 -0700 | [diff] [blame] | 32 | #define MAX_ALLOC_ID_PER_ONU 4 |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 33 | #define ALLOC_ID_START 256 |
Girish Gowdra | eec0fc9 | 2021-05-12 15:37:55 -0700 | [diff] [blame] | 34 | #define ALLOC_ID_END (ALLOC_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU) |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 35 | |
Girish Gowdra | eec0fc9 | 2021-05-12 15:37:55 -0700 | [diff] [blame] | 36 | #define GEM_PORT_ID_PER_ALLOC_ID 8 |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 37 | #define GEM_PORT_ID_START 256 |
Girish Gowdra | eec0fc9 | 2021-05-12 15:37:55 -0700 | [diff] [blame] | 38 | #define GEM_PORT_ID_END (GEM_PORT_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU * GEM_PORT_ID_PER_ALLOC_ID) |
Thiyagarajan Subramani | 3e8bfd9 | 2021-04-26 15:07:14 +0530 | [diff] [blame] | 39 | |
| 40 | #define FLOW_ID_START 1 |
| 41 | #define FLOW_ID_END 65535 |
| 42 | #define MAX_FLOW_ID FLOW_ID_END |
| 43 | #define INVALID_FLOW_ID 0 |
| 44 | |
| 45 | #endif |