This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/platform/broadcom/sonic-platform-modules-cel/silverstone/modules/xcvr-cls.h
Jemston Fernando 7302132103 Fix for Celestica platform issue and new WB support
- Support for new platform Questone
- Belgite renamed to DS1000
- Hardened bug fixes and unified CLI O/P for Celestica platforms
2024-02-09 17:32:36 +00:00

41 lines
848 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* xcvr-cls.h
*
* Pradchaya Phucharoen <pphuchar@celestica.com>
* Copyright (C) 2019 Celestica Corp.
*/
#ifndef _LINUX_I2C_CLS_H
#define _LINUX_I2C_CLS_H
enum PORT_TYPE {
NONE = 0,
SFP,
QSFP
};
/*
* port_info - optical port info
* @index: front panel port index starting from 1
* @typr: port type, see *PORT_TYPE*
*/
struct port_info {
const char *name;
unsigned int index;
enum PORT_TYPE type;
};
/*
* cls_xcvr_platform_data - port xcvr private data
* @port_reg_size: register range of each port
* @num_ports: number of front panel ports
* @devices: list of front panel port info
*/
struct cls_xcvr_platform_data {
unsigned int port_reg_size;
int num_ports;
struct port_info *devices;
};
#endif /* _LINUX_I2C_CLS_H */