Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 1 | /* |
Girish Gowdra | a707e7c | 2019-11-07 11:36:13 +0530 | [diff] [blame] | 2 | * Copyright 2018-present Open Networking Foundation |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 3 | |
Girish Gowdra | a707e7c | 2019-11-07 11:36:13 +0530 | [diff] [blame] | 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 |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 7 | |
Girish Gowdra | a707e7c | 2019-11-07 11:36:13 +0530 | [diff] [blame] | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 9 | |
Girish Gowdra | a707e7c | 2019-11-07 11:36:13 +0530 | [diff] [blame] | 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 | */ |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 16 | |
| 17 | #ifndef __VENDOR_H__ |
| 18 | #define __VENDOR_H__ |
| 19 | #define VENDOR_ID "EdgeCore" |
Thiyagarajan Subramani | 89fffc0 | 2019-05-13 21:33:20 +0000 | [diff] [blame] | 20 | #define ASFVOLT16 |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 21 | #define MODEL_ID "asfvolt16" |
Thiyagarajan Subramani | 89fffc0 | 2019-05-13 21:33:20 +0000 | [diff] [blame] | 22 | #define MAX_SUPPORTED_PON 16 |
Jason Huang | 1d9cfce | 2020-05-20 22:58:47 +0800 | [diff] [blame] | 23 | #define ONU_BIT_TRANSMISSION_DELAY 0.1004823/1000 /* unit: ns to us */ |
| 24 | #define MINIMUM_ONU_RESPONSE_RANGING_TIME 1572135 /* hardcore: this is ranging time for the shortest distance, typically 35us */ |
Girish Gowdra | 252f497 | 2020-09-07 21:24:01 -0700 | [diff] [blame] | 25 | |
| 26 | // DeviceInfo definitions |
| 27 | |
| 28 | #define ONU_ID_START 1 |
| 29 | #define ONU_ID_END 32 |
| 30 | #define MAX_ONUS_PER_PON 32 |
| 31 | |
| 32 | #define ALLOC_ID_START 1024 |
| 33 | #define ALLOC_ID_END 16383 |
| 34 | |
| 35 | #define GEM_PORT_ID_START 1024 |
| 36 | #define GEM_PORT_ID_END 65535 |
| 37 | |
| 38 | #define FLOW_ID_START 1 |
| 39 | #define FLOW_ID_END 65535 |
| 40 | #define MAX_FLOW_ID 65535 |
| 41 | #define INVALID_FLOW_ID 0 |
| 42 | |
Craig Lutgen | 88a22ad | 2018-10-04 12:30:46 -0500 | [diff] [blame] | 43 | #endif |