blob: f63142eeebc1c1709d30e2ecb92e7950cfde0409 [file] [log] [blame]
Craig Lutgen88a22ad2018-10-04 12:30:46 -05001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Craig Lutgen88a22ad2018-10-04 12:30:46 -05003
Girish Gowdraa707e7c2019-11-07 11:36:13 +05304 * 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 Lutgen88a22ad2018-10-04 12:30:46 -05007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Craig Lutgen88a22ad2018-10-04 12:30:46 -05009
Girish Gowdraa707e7c2019-11-07 11:36:13 +053010 * 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 Lutgen88a22ad2018-10-04 12:30:46 -050016
17#ifndef __VENDOR_H__
18#define __VENDOR_H__
19#define VENDOR_ID "EdgeCore"
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000020#define ASFVOLT16
Craig Lutgen88a22ad2018-10-04 12:30:46 -050021#define MODEL_ID "asfvolt16"
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000022#define MAX_SUPPORTED_PON 16
Jason Huang1d9cfce2020-05-20 22:58:47 +080023#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 Gowdra252f4972020-09-07 21:24:01 -070025
26// DeviceInfo definitions
27
28#define ONU_ID_START 1
29#define ONU_ID_END 32
Girish Gowdraeec0fc92021-05-12 15:37:55 -070030#define MAX_ONUS_PER_PON (ONU_ID_END - ONU_ID_START + 1)
Girish Gowdra252f4972020-09-07 21:24:01 -070031
Girish Gowdraeec0fc92021-05-12 15:37:55 -070032#define MAX_ALLOC_ID_PER_ONU 4
Girish Gowdra252f4972020-09-07 21:24:01 -070033#define ALLOC_ID_START 1024
Girish Gowdraeec0fc92021-05-12 15:37:55 -070034#define ALLOC_ID_END (ALLOC_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU)
Girish Gowdra252f4972020-09-07 21:24:01 -070035
Girish Gowdraeec0fc92021-05-12 15:37:55 -070036#define GEM_PORT_ID_PER_ALLOC_ID 8
Girish Gowdra252f4972020-09-07 21:24:01 -070037#define GEM_PORT_ID_START 1024
Girish Gowdraeec0fc92021-05-12 15:37:55 -070038#define GEM_PORT_ID_END (GEM_PORT_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU * GEM_PORT_ID_PER_ALLOC_ID)
Girish Gowdra252f4972020-09-07 21:24:01 -070039
40#define FLOW_ID_START 1
41#define FLOW_ID_END 65535
Girish Gowdraeec0fc92021-05-12 15:37:55 -070042#define MAX_FLOW_ID FLOW_ID_END
Girish Gowdra252f4972020-09-07 21:24:01 -070043#define INVALID_FLOW_ID 0
44
Girish Gowdra72bb4652022-01-18 17:04:30 -080045#define MAC_DEVICE_ACTIVATION_DELAY 2000000 // in microseconds
46
Craig Lutgen88a22ad2018-10-04 12:30:46 -050047#endif