From c9907de31c8895d762371bf23ece5e9131152b1d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 18 Jan 2013 16:53:40 +0400 Subject: [PATCH] lib/libcoolstream2: sync control headers Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ca3ac518814f5203abfee90014e2dd78a11afc3c Author: [CST] Focus Date: 2013-01-18 (Fri, 18 Jan 2013) --- lib/libcoolstream2/control.h | 16 ---------------- lib/libcoolstream2/tsrouter.h | 5 +++++ 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/lib/libcoolstream2/control.h b/lib/libcoolstream2/control.h index 56d38f696..20309deab 100644 --- a/lib/libcoolstream2/control.h +++ b/lib/libcoolstream2/control.h @@ -33,28 +33,12 @@ typedef struct _scart_status { bool fastblank; } scart_status_t; -typedef struct _pwm_status { - u16 pwm_pulse_first; - u16 pwm_pulse_second; - u32 pwm_clock; -} pwm_status_t; - -typedef struct cs_control_data { - scart_status_t scart_status; - pwm_status_t pwm_status; - bool hdd_power; - u32 readers; - u32 sys_serial_high, sys_serial_low; - u32 sys_revision; -} cs_control_data_t; - /* ioctls */ #define CS_CONTROL_MAGIC 0xDE #define IOC_CONTROL_WIDESCREEN _IOW(CS_CONTROL_MAGIC, 20, unsigned int) #define IOC_CONTROL_TVAV _IOW(CS_CONTROL_MAGIC, 21, unsigned int) #define IOC_CONTROL_RGB _IOW(CS_CONTROL_MAGIC, 22, unsigned int) #define IOC_CONTROL_SCART_STATUS _IOR(CS_CONTROL_MAGIC, 23, scart_status_t *) -#define IOC_CONTROL_PWM_SPEED _IOW(CS_CONTROL_MAGIC, 24, unsigned int) #define IOC_CONTROL_HDDPOWER _IOW(CS_CONTROL_MAGIC, 25, unsigned int) /* ioctl for getting board serial and revision */ diff --git a/lib/libcoolstream2/tsrouter.h b/lib/libcoolstream2/tsrouter.h index 672d6721d..613b0ffb1 100644 --- a/lib/libcoolstream2/tsrouter.h +++ b/lib/libcoolstream2/tsrouter.h @@ -29,4 +29,9 @@ extern void cs_tsx_tsp_get_port_config(tsrouter_tsp_config_t *conf); extern void cs_tsx_hsdp_set_port_config(const tsrouter_hsdp_config_t *conf); extern void cs_tsx_tsp_set_port_config(const tsrouter_tsp_config_t *conf); +extern void cs_tsx_hsdp_get_port_pll(unsigned int port, unsigned int *pll_index); +extern void cs_tsx_hsdp_set_port_pll(unsigned int port, unsigned int pll_index); + +extern void cs_tsx_hsdp_get_port_speed(unsigned int port, unsigned int *speed); +extern void cs_tsx_hsdp_set_port_speed(unsigned int port, unsigned int speed); #endif /* __TSROUTER_H */