Commit cf028aae authored by Alessandro Rubini's avatar Alessandro Rubini

userspace/include: move switch_hw.h to libwr/

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0d80d688
#ifndef __SWITCH_HW_H #ifndef __LIBWR_SWITCH_HW_H
#define __SWITCH_HW_H #define __LIBWR_SWITCH_HW_H
#include <libwr/pio.h> #include <libwr/pio.h>
#include "trace.h" #include "trace.h"
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
/* return 0 on success */ /* return 0 on success */
int shw_init(void); int shw_init(void);
int shw_fpga_mmap_init(void); int shw_fpga_mmap_init(void);
#endif #endif /* __LIBWR_SWITCH_HW_H */
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <poll.h> #include <poll.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <fpga_io.h> #include <fpga_io.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include "i2c_sfp.h" #include "i2c_sfp.h"
#include <libwr/shw_io.h> #include <libwr/shw_io.h>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <fpga_io.h> #include <fpga_io.h>
#include <regs/ppsg-regs.h> #include <regs/ppsg-regs.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <trace.h> #include <trace.h>
/* Default width (in 8ns units) of the pulses on the PPS output */ /* Default width (in 8ns units) of the pulses on the PPS output */
...@@ -97,4 +97,4 @@ void shw_pps_gen_read_time(uint64_t *seconds, uint32_t *nanoseconds) ...@@ -97,4 +97,4 @@ void shw_pps_gen_read_time(uint64_t *seconds, uint32_t *nanoseconds)
if(seconds) *seconds = sec2; if(seconds) *seconds = sec2;
if(nanoseconds) *nanoseconds = ns_cnt; if(nanoseconds) *nanoseconds = ns_cnt;
} }
\ No newline at end of file
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <libwr/shw_io.h> #include <libwr/shw_io.h>
#include "fpga_io.h" #include "fpga_io.h"
#include "switch_hw.h" #include <libwr/switch_hw.h>
#define VUART_BASE 0x10000 #define VUART_BASE 0x10000
#define VUART_TDR 0x10 #define VUART_TDR 0x10
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <fpga_io.h> #include <fpga_io.h>
#include <regs/softpll-regs.h> #include <regs/softpll-regs.h>
#include "switch_hw.h" #include <libwr/switch_hw.h>
/* TCP Port to listen on */ /* TCP Port to listen on */
#define MY_PORT 12345 #define MY_PORT 12345
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "rt_ipc.h" #include "rt_ipc.h"
#include "hal_client.h" #include "hal_client.h"
#include "switch_hw.h" #include <libwr/switch_hw.h>
#define WRS3_FPGA_BASE 0x10000000 #define WRS3_FPGA_BASE 0x10000000
#define WRS3_FPGA_SIZE 0x100000 #define WRS3_FPGA_SIZE 0x100000
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <hal_client.h> #include <hal_client.h>
static void parse_sysfs(int init); static void parse_sysfs(int init);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <libwr/shw_io.h> #include <libwr/shw_io.h>
#include <libwr/hwiu.h> #include <libwr/hwiu.h>
#include "switch_hw.h" #include <libwr/switch_hw.h>
#include "libsdbfs.h" #include "libsdbfs.h"
#define SDBFS_NAME "/dev/mtd5ro" #define SDBFS_NAME "/dev/mtd5ro"
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <rtud_exports.h> #include <rtud_exports.h>
#include "regs/endpoint-regs.h" #include "regs/endpoint-regs.h"
#include "switch_hw.h" #include <libwr/switch_hw.h>
#include "fpga_io.h" #include "fpga_io.h"
#include "wrs_vlans.h" #include "wrs_vlans.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "serial.h" #include "serial.h"
#include "nmea.h" #include "nmea.h"
#include <switch_hw.h> #include <libwr/switch_hw.h>
void read_nmea_msg(char *msgbuf, int len) void read_nmea_msg(char *msgbuf, int len)
{ {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <trace.h> #include <trace.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <libwr/shw_io.h> #include <libwr/shw_io.h>
#include "wrsw_hal.h" #include "wrsw_hal.h"
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <linux/if.h> #include <linux/if.h>
/* LOTs of hardware includes */ /* LOTs of hardware includes */
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <trace.h> #include <trace.h>
#include <libwr/pio.h> #include <libwr/pio.h>
#include <libwr/sfp_lib.h> #include <libwr/sfp_lib.h>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include "wrsw_hal.h" #include "wrsw_hal.h"
#include "timeout.h" #include "timeout.h"
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <hal_client.h> #include <hal_client.h>
#include <fpga_io.h> #include <fpga_io.h>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <hal_client.h> #include <hal_client.h>
#include <fpga_io.h> #include <fpga_io.h>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <linux/if.h> #include <linux/if.h>
#include <trace.h> #include <trace.h>
#include <switch_hw.h> #include <libwr/switch_hw.h>
#include <hal_client.h> #include <hal_client.h>
#include "rtu.h" #include "rtu.h"
......
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