Commit 675935dd authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: comedi: Remove hw_fifo_info_t typedef

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4a5a33b6
...@@ -534,12 +534,12 @@ enum register_layout { ...@@ -534,12 +534,12 @@ enum register_layout {
LAYOUT_4020, LAYOUT_4020,
}; };
typedef struct hw_fifo_info_struct { struct hw_fifo_info {
unsigned int num_segments; unsigned int num_segments;
unsigned int max_segment_length; unsigned int max_segment_length;
unsigned int sample_packing_ratio; unsigned int sample_packing_ratio;
uint16_t fifo_size_reg_mask; uint16_t fifo_size_reg_mask;
} hw_fifo_info_t; };
typedef struct pcidas64_board_struct { typedef struct pcidas64_board_struct {
const char *name; const char *name;
...@@ -553,26 +553,26 @@ typedef struct pcidas64_board_struct { ...@@ -553,26 +553,26 @@ typedef struct pcidas64_board_struct {
int ao_scan_speed; // analog output speed (for a scan, not conversion) int ao_scan_speed; // analog output speed (for a scan, not conversion)
const struct comedi_lrange *ao_range_table; const struct comedi_lrange *ao_range_table;
const int *ao_range_code; const int *ao_range_code;
const hw_fifo_info_t *const ai_fifo; const struct hw_fifo_info *const ai_fifo;
enum register_layout layout; // different board families have slightly different registers enum register_layout layout; // different board families have slightly different registers
unsigned has_8255:1; unsigned has_8255:1;
} pcidas64_board; } pcidas64_board;
static const hw_fifo_info_t ai_fifo_4020 = { static const struct hw_fifo_info ai_fifo_4020 = {
num_segments:2, num_segments:2,
max_segment_length:0x8000, max_segment_length:0x8000,
sample_packing_ratio:2, sample_packing_ratio:2,
fifo_size_reg_mask:0x7f, fifo_size_reg_mask:0x7f,
}; };
static const hw_fifo_info_t ai_fifo_64xx = { static const struct hw_fifo_info ai_fifo_64xx = {
num_segments:4, num_segments:4,
max_segment_length:0x800, max_segment_length:0x800,
sample_packing_ratio:1, sample_packing_ratio:1,
fifo_size_reg_mask:0x3f, fifo_size_reg_mask:0x3f,
}; };
static const hw_fifo_info_t ai_fifo_60xx = { static const struct hw_fifo_info ai_fifo_60xx = {
num_segments:4, num_segments:4,
max_segment_length:0x800, max_segment_length:0x800,
sample_packing_ratio:1, sample_packing_ratio:1,
...@@ -2041,7 +2041,7 @@ static int ai_config_calibration_source(struct comedi_device * dev, unsigned int ...@@ -2041,7 +2041,7 @@ static int ai_config_calibration_source(struct comedi_device * dev, unsigned int
static int ai_config_block_size(struct comedi_device * dev, unsigned int * data) static int ai_config_block_size(struct comedi_device * dev, unsigned int * data)
{ {
int fifo_size; int fifo_size;
const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; const struct hw_fifo_info *const fifo = board(dev)->ai_fifo;
unsigned int block_size, requested_block_size; unsigned int block_size, requested_block_size;
int retval; int retval;
...@@ -3929,7 +3929,7 @@ static int set_ai_fifo_size(struct comedi_device * dev, unsigned int num_samples ...@@ -3929,7 +3929,7 @@ static int set_ai_fifo_size(struct comedi_device * dev, unsigned int num_samples
{ {
unsigned int num_fifo_entries; unsigned int num_fifo_entries;
int retval; int retval;
const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; const struct hw_fifo_info *const fifo = board(dev)->ai_fifo;
num_fifo_entries = num_samples / fifo->sample_packing_ratio; num_fifo_entries = num_samples / fifo->sample_packing_ratio;
...@@ -3957,7 +3957,7 @@ static int set_ai_fifo_segment_length(struct comedi_device * dev, ...@@ -3957,7 +3957,7 @@ static int set_ai_fifo_segment_length(struct comedi_device * dev,
unsigned int num_entries) unsigned int num_entries)
{ {
static const int increment_size = 0x100; static const int increment_size = 0x100;
const hw_fifo_info_t *const fifo = board(dev)->ai_fifo; const struct hw_fifo_info *const fifo = board(dev)->ai_fifo;
unsigned int num_increments; unsigned int num_increments;
uint16_t bits; uint16_t bits;
......
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