Commit de98570d authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrpc: add material to wrpc.h

These few lines are a copy of "wrc_ptp.h" as found in ptp-noposix.
They are added here because they are the prototypes of now-local
functions, and little more.

Including the file from wrpc-sw would have required another -I
directory, and I'd better not.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 66b59234
......@@ -7,6 +7,22 @@
#include <ppsi/ppsi.h>
#include <hw/memlayout.h>
/* This part is exactly wrpc-sw::wrc_ptp.h */
#define WRC_MODE_UNKNOWN 0
#define WRC_MODE_GM 1
#define WRC_MODE_MASTER 2
#define WRC_MODE_SLAVE 3
extern int ptp_mode;
int wrc_ptp_init();
int wrc_ptp_set_mode(int mode);
int wrc_ptp_get_mode();
int wrc_ptp_start();
int wrc_ptp_stop();
int wrc_ptp_update();
/* End of wrc-ptp.h */
/*
* These are the functions provided by the various bare files
*/
......
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