blob: d904e9be35d12093eb96ee44c5f3757708709116 [file] [log] [blame]
Arthur Syu094df162022-04-21 17:50:06 +08001/*
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 "Zyxel"
20#define SDA3016SS
21#define MODEL_ID "sda3016ss"
22#define MAX_SUPPORTED_PON 32
23#define MAX_SUPPORTED_SWITCH_PORT 16
24#define ONU_BIT_TRANSMISSION_DELAY 0.1004823/1000 /* unit: ns to us */
25#define MINIMUM_ONU_RESPONSE_RANGING_TIME 1572135 /* hardcore: this is ranging time for the shortest distance, typically 35us */
26
27// DeviceInfo definitions
28
29#define ONU_ID_START 1
30#define ONU_ID_END 32
31#define MAX_ONUS_PER_PON (ONU_ID_END - ONU_ID_START + 1)
32
33#define MAX_ALLOC_ID_PER_ONU 8
34#define ALLOC_ID_START 1024
35#define ALLOC_ID_END (ALLOC_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU)
36
37#define GEM_PORT_ID_PER_ALLOC_ID 8
38#define GEM_PORT_ID_START 1024
39#define GEM_PORT_ID_END (GEM_PORT_ID_START + MAX_ONUS_PER_PON * MAX_ALLOC_ID_PER_ONU * GEM_PORT_ID_PER_ALLOC_ID)
40
41#define FLOW_ID_START 1
42#define FLOW_ID_END 65535
43#define MAX_FLOW_ID FLOW_ID_END
44#define INVALID_FLOW_ID 0
45
46#define MAC_DEVICE_ACTIVATION_DELAY 200000 // in microseconds
47
48#endif