Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366632
b: refs/heads/master
c: cf0e9cf
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 0849a30 commit c8c9f2a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 40 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfef84fc135832ad5c270758b6834fcb4bf448fc
refs/heads/master: cf0e9cfcc70d8aaeabf19356f42041f8a5495301
52 changes: 26 additions & 26 deletions trunk/drivers/media/common/siano/smscoreapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ struct sms_firmware {

/* statistics information returned as response for
* SmsHostApiGetstatistics_Req */
struct SMSHOSTLIB_STATISTICS_ST {
struct sms_stats {
u32 reserved; /* reserved */

/* Common parameters */
Expand Down Expand Up @@ -764,15 +764,15 @@ struct SMSHOSTLIB_STATISTICS_ST {
struct sms_msg_statistics_info {
u32 request_result;

struct SMSHOSTLIB_STATISTICS_ST stat;
struct sms_stats stat;

/* Split the calc of the SNR in DAB */
u32 signal; /* dB */
u32 noise; /* dB */

};

struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST {
struct sms_isdbt_layer_stats {
/* Per-layer information */
u32 code_rate; /* Code Rate from SMSHOSTLIB_CODE_RATE_ET,
* 255 means layer does not exist */
Expand All @@ -792,7 +792,7 @@ struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST {
u32 tmcc_errors; /* TMCC errors */
};

struct SMSHOSTLIB_STATISTICS_ISDBT_ST {
struct sms_isdbt_stats {
u32 statistics_type; /* Enumerator identifying the type of the
* structure. Values are the same as
* SMSHOSTLIB_DEVICE_MODES_E
Expand Down Expand Up @@ -827,14 +827,14 @@ struct SMSHOSTLIB_STATISTICS_ISDBT_ST {

/* Per-layer information */
/* Layers A, B and C */
struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST LayerInfo[3];
/* Per-layer statistics, see SMSHOSTLIB_ISDBT_LAYER_STAT_ST */
struct sms_isdbt_layer_stats LayerInfo[3];
/* Per-layer statistics, see sms_isdbt_layer_stats */

/* Interface information */
u32 sms_to_host_tx_errors; /* Total number of transmission errors. */
};

struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST {
struct sms_isdbt_stats_ex {
u32 statistics_type; /* Enumerator identifying the type of the
* structure. Values are the same as
* SMSHOSTLIB_DEVICE_MODES_E
Expand Down Expand Up @@ -872,8 +872,8 @@ struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST {

/* Per-layer information */
/* Layers A, B and C */
struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST LayerInfo[3];
/* Per-layer statistics, see SMSHOSTLIB_ISDBT_LAYER_STAT_ST */
struct sms_isdbt_layer_stats LayerInfo[3];
/* Per-layer statistics, see sms_isdbt_layer_stats */

/* Interface information */
u32 reserved1; /* Was sms_to_host_tx_errors - obsolete . */
Expand All @@ -894,7 +894,7 @@ struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST {
};


struct PID_STATISTICS_DATA_S {
struct sms_pid_stats_data {
struct PID_BURST_S {
u32 size;
u32 padding_cols;
Expand All @@ -909,10 +909,10 @@ struct PID_STATISTICS_DATA_S {
u32 tot_cor_tbl;
};

struct PID_DATA_S {
struct sms_pid_data {
u32 pid;
u32 num_rows;
struct PID_STATISTICS_DATA_S pid_statistics;
struct sms_pid_stats_data pid_statistics;
};

#define CORRECT_STAT_RSSI(_stat) ((_stat).RSSI *= -1)
Expand All @@ -925,7 +925,7 @@ struct PID_DATA_S {
else \
_stat.transmission_mode = 4;

struct TRANSMISSION_STATISTICS_S {
struct sms_tx_stats {
u32 frequency; /* frequency in Hz */
u32 bandwidth; /* bandwidth in MHz */
u32 transmission_mode; /* FFT mode carriers in Kilos */
Expand All @@ -948,7 +948,7 @@ struct TRANSMISSION_STATISTICS_S {
u32 is_demod_locked; /* 0 - not locked, 1 - locked */
};

struct RECEPTION_STATISTICS_S {
struct sms_rx_stats {
u32 is_rf_locked; /* 0 - not locked, 1 - locked */
u32 is_demod_locked; /* 0 - not locked, 1 - locked */
u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
Expand All @@ -974,7 +974,7 @@ struct RECEPTION_STATISTICS_S {
s32 mrc_in_band_pwr; /* In band power in dBM */
};

struct RECEPTION_STATISTICS_EX_S {
struct sms_rx_stats_ex {
u32 is_rf_locked; /* 0 - not locked, 1 - locked */
u32 is_demod_locked; /* 0 - not locked, 1 - locked */
u32 is_external_lna_on; /* 0 - external LNA off, 1 - external LNA on */
Expand Down Expand Up @@ -1006,33 +1006,33 @@ struct RECEPTION_STATISTICS_EX_S {

/* statistics information returned as response for
* SmsHostApiGetstatisticsEx_Req for DVB applications, SMS1100 and up */
struct SMSHOSTLIB_STATISTICS_DVB_S {
struct sms_stats_dvb {
/* Reception */
struct RECEPTION_STATISTICS_S reception_data;
struct sms_rx_stats reception_data;

/* Transmission parameters */
struct TRANSMISSION_STATISTICS_S transmission_data;
struct sms_tx_stats transmission_data;

/* Burst parameters, valid only for DVB-H */
#define SRVM_MAX_PID_FILTERS 8
struct PID_DATA_S pid_data[SRVM_MAX_PID_FILTERS];
struct sms_pid_data pid_data[SRVM_MAX_PID_FILTERS];
};

/* statistics information returned as response for
* SmsHostApiGetstatisticsEx_Req for DVB applications, SMS1100 and up */
struct SMSHOSTLIB_STATISTICS_DVB_EX_S {
struct sms_stats_dvb_ex {
/* Reception */
struct RECEPTION_STATISTICS_EX_S reception_data;
struct sms_rx_stats_ex reception_data;

/* Transmission parameters */
struct TRANSMISSION_STATISTICS_S transmission_data;
struct sms_tx_stats transmission_data;

/* Burst parameters, valid only for DVB-H */
#define SRVM_MAX_PID_FILTERS 8
struct PID_DATA_S pid_data[SRVM_MAX_PID_FILTERS];
struct sms_pid_data pid_data[SRVM_MAX_PID_FILTERS];
};

struct SRVM_SIGNAL_STATUS_S {
struct sms_srvm_signal_status {
u32 result;
u32 snr;
u32 ts_packets;
Expand All @@ -1048,14 +1048,14 @@ struct SRVM_SIGNAL_STATUS_S {
u32 request_id;
};

struct SMSHOSTLIB_I2C_REQ_ST {
struct sms_i2c_req {
u32 device_address; /* I2c device address */
u32 write_count; /* number of bytes to write */
u32 read_count; /* number of bytes to read */
u8 Data[1];
};

struct SMSHOSTLIB_I2C_RES_ST {
struct sms_i2c_res {
u32 status; /* non-zero value in case of failure */
u32 read_count; /* number of bytes read */
u8 Data[1];
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/common/siano/smsdvb-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct smsdvb_debugfs {
};

void smsdvb_print_dvb_stats(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ST *p)
struct sms_stats *p)
{
int n = 0;
char *buf;
Expand Down Expand Up @@ -152,7 +152,7 @@ void smsdvb_print_dvb_stats(struct smsdvb_debugfs *debug_data,
}

void smsdvb_print_isdb_stats(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ISDBT_ST *p)
struct sms_isdbt_stats *p)
{
int i, n = 0;
char *buf;
Expand Down Expand Up @@ -242,7 +242,7 @@ void smsdvb_print_isdb_stats(struct smsdvb_debugfs *debug_data,
}

void smsdvb_print_isdb_stats_ex(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST *p)
struct sms_isdbt_stats_ex *p)
{
int i, n = 0;
char *buf;
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/media/common/siano/smsdvb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static inline u32 sms_to_bw(u32 value)
FEC_NONE);

static void smsdvb_update_tx_params(struct smsdvb_client_t *client,
struct TRANSMISSION_STATISTICS_S *p)
struct sms_tx_stats *p)
{
struct dvb_frontend *fe = &client->frontend;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
Expand Down Expand Up @@ -277,7 +277,7 @@ static void smsdvb_update_per_slices(struct smsdvb_client_t *client,
}

static void smsdvb_update_dvb_stats(struct smsdvb_client_t *client,
struct SMSHOSTLIB_STATISTICS_ST *p)
struct sms_stats *p)
{
struct dvb_frontend *fe = &client->frontend;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
Expand Down Expand Up @@ -329,11 +329,11 @@ static void smsdvb_update_dvb_stats(struct smsdvb_client_t *client,
};

static void smsdvb_update_isdbt_stats(struct smsdvb_client_t *client,
struct SMSHOSTLIB_STATISTICS_ISDBT_ST *p)
struct sms_isdbt_stats *p)
{
struct dvb_frontend *fe = &client->frontend;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST *lr;
struct sms_isdbt_layer_stats *lr;
int i, n_layers;

if (client->prt_isdb_stats)
Expand Down Expand Up @@ -425,11 +425,11 @@ static void smsdvb_update_isdbt_stats(struct smsdvb_client_t *client,
}

static void smsdvb_update_isdbt_stats_ex(struct smsdvb_client_t *client,
struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST *p)
struct sms_isdbt_stats_ex *p)
{
struct dvb_frontend *fe = &client->frontend;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct SMSHOSTLIB_ISDBT_LAYER_STAT_ST *lr;
struct sms_isdbt_layer_stats *lr;
int i, n_layers;

if (client->prt_isdb_stats_ex)
Expand Down
9 changes: 5 additions & 4 deletions trunk/drivers/media/common/siano/smsdvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ struct smsdvb_debugfs;
struct smsdvb_client_t;

typedef void (*sms_prt_dvb_stats_t)(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ST *p);
struct sms_stats *p);

typedef void (*sms_prt_isdb_stats_t)(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ISDBT_ST *p);
struct sms_isdbt_stats *p);

typedef void (*sms_prt_isdb_stats_ex_t)
(struct smsdvb_debugfs *debug_data,
struct SMSHOSTLIB_STATISTICS_ISDBT_EX_ST *p);
struct sms_isdbt_stats_ex *p);


struct smsdvb_client_t {
Expand Down Expand Up @@ -68,7 +68,8 @@ struct smsdvb_client_t {
};

/*
* This struct is a mix of RECEPTION_STATISTICS_EX_S and SRVM_SIGNAL_STATUS_S.
* This struct is a mix of struct sms_rx_stats_ex and
* struct sms_srvm_signal_status.
* It was obtained by comparing the way it was filled by the original code
*/
struct RECEPTION_STATISTICS_PER_SLICES_S {
Expand Down

0 comments on commit c8c9f2a

Please sign in to comment.