Commit 7250eb33 authored by Alessandro Rubini's avatar Alessandro Rubini

userspace/include: move sfp_lib to libwr/

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 9db68cb4
#ifndef __SHW_SFPLIB_H
#define __SHW_SFPLIB_H
#ifndef __LIBWR_SHW_SFPLIB_H
#define __LIBWR_SHW_SFPLIB_H
#define SFP_LED_LINK (1 << 0)
#define SFP_LED_WRMODE (1 << 1)
......@@ -100,4 +100,4 @@ struct shw_sfp_caldata *shw_sfp_get_cal_data(int num);
/* Read and verify the header all at once. returns -1 on failure */
int shw_sfp_read_verify_header(int num, struct shw_sfp_header *head);
#endif // __SHW_SFPLIB_H
#endif /* __LIBWR_SHW_SFPLIB_H */
......@@ -3,7 +3,7 @@
#include "i2c.h"
#include <sfp_lib.h>
#include <libwr/sfp_lib.h>
//address from AT24C01 datasheet (1k, all address lines shorted to the ground)
#define I2C_SFP_ADDRESS 0x50
......
......@@ -19,7 +19,7 @@
#include <switch_hw.h>
#include <trace.h>
#include <libwr/pio.h>
#include <sfp_lib.h>
#include <libwr/sfp_lib.h>
#include <fpga_io.h>
#include <regs/endpoint-regs.h>
......
......@@ -2,8 +2,7 @@
#define __WRSW_HAL_H
#include <inttypes.h>
#include <sfp_lib.h>
#include <libwr/sfp_lib.h>
typedef void (*hal_cleanup_callback_t)();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment