Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
84
Issues
84
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
7250eb33
Commit
7250eb33
authored
Nov 19, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/include: move sfp_lib to libwr/
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
9db68cb4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
sfp_lib.h
userspace/include/libwr/sfp_lib.h
+3
-3
i2c_sfp.h
userspace/libwr/i2c_sfp.h
+1
-1
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+1
-1
wrsw_hal.h
userspace/wrsw_hal/wrsw_hal.h
+1
-2
No files found.
userspace/include/sfp_lib.h
→
userspace/include/
libwr/
sfp_lib.h
View file @
7250eb33
#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 */
userspace/libwr/i2c_sfp.h
View file @
7250eb33
...
...
@@ -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
...
...
userspace/wrsw_hal/hal_ports.c
View file @
7250eb33
...
...
@@ -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>
...
...
userspace/wrsw_hal/wrsw_hal.h
View file @
7250eb33
...
...
@@ -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
)();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment