Commit 7b448676 authored by Aurelio Colosimo's avatar Aurelio Colosimo

instance of struct pp_runtime_opts moved to pp_globals

Signed-off-by: Aurelio Colosimo's avatarAurelio Colosimo <aurelio@aureliocolosimo.it>
parent e8c6d64c
...@@ -132,7 +132,6 @@ struct pp_instance { ...@@ -132,7 +132,6 @@ struct pp_instance {
int next_state, next_delay, is_new_state; /* set by state processing */ int next_state, next_delay, is_new_state; /* set by state processing */
void *arch_data; /* if arch needs it */ void *arch_data; /* if arch needs it */
void *ext_data; /* if protocol ext needs it */ void *ext_data; /* if protocol ext needs it */
struct pp_runtime_opts *rt_opts;
unsigned long flags; /* ppi-specific flags (diag mainly) */ unsigned long flags; /* ppi-specific flags (diag mainly) */
/* Pointer to global instance owning this pp_instance*/ /* Pointer to global instance owning this pp_instance*/
...@@ -190,6 +189,9 @@ struct pp_globals { ...@@ -190,6 +189,9 @@ struct pp_globals {
struct pp_servo *servo; struct pp_servo *servo;
/* Real time options */
struct pp_runtime_opts *rt_opts;
/* Data sets */ /* Data sets */
DSDefault *defaultDS; /* page 65 */ DSDefault *defaultDS; /* page 65 */
DSCurrent *currentDS; /* page 67 */ DSCurrent *currentDS; /* page 67 */
......
...@@ -26,14 +26,14 @@ extern int pp_vsprintf(char *buf, const char *, va_list) ...@@ -26,14 +26,14 @@ extern int pp_vsprintf(char *buf, const char *, va_list)
/* We use data sets a lot, so have these helpers */ /* We use data sets a lot, so have these helpers */
static inline struct pp_runtime_opts *OPTS(struct pp_instance *ppi) static inline struct pp_globals *GLBS(struct pp_instance *ppi)
{ {
return ppi->rt_opts; return ppi->glbs;
} }
static inline struct pp_globals *GLBS(struct pp_instance *ppi) static inline struct pp_runtime_opts *OPTS(struct pp_instance *ppi)
{ {
return ppi->glbs; return GLBS(ppi)->rt_opts;
} }
static inline struct DSDefault *DSDEF(struct pp_instance *ppi) static inline struct DSDefault *DSDEF(struct pp_instance *ppi)
......
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