Lines Matching full:features
131 * struct fpga_features - Data read from the features register
241 * get_features() - Fill structure with info from features register.
243 * @features: Pointer to the structure to fill with information from the
244 * features register
247 static int get_features(struct udevice *dev, struct fpga_features *features) in get_features() argument
295 memset(features, 0, sizeof(struct fpga_features)); in get_features()
297 ihs_fpga_get(priv->map, features, &raw_features); in get_features()
302 features->video_channels = 0; in get_features()
306 features->video_channels = 1; in get_features()
311 features->video_channels = 2; in get_features()
317 features->carriers = 0; in get_features()
321 features->carriers = 1; in get_features()
325 features->carriers = 2; in get_features()
329 features->carriers = 4; in get_features()
335 features->carrier_speed = CARRIER_SPEED_1G; in get_features()
338 features->carrier_speed = CARRIER_SPEED_2_5G; in get_features()
341 features->carrier_speed = CARRIER_SPEED_10G; in get_features()
347 features->ram_config = RAM_DDR2_32BIT_295MBPS; in get_features()
351 features->ram_config = RAM_DDR3_32BIT_590MBPS; in get_features()
355 features->ram_config = RAM_DDR3_48BIT_590MBPS; in get_features()
359 features->ram_config = RAM_DDR3_64BIT_1800MBPS; in get_features()
363 features->ram_config = RAM_DDR3_48BIT_1800MBPS; in get_features()
367 features->pcm_tx = raw_features & FEATURE_PCM_TX; in get_features()
368 features->pcm_rx = raw_features & FEATURE_PCM_RX; in get_features()
369 features->spdif_tx = raw_features & FEATURE_SPDIF_TX; in get_features()
370 features->spdif_rx = raw_features & FEATURE_SPDIF_RX; in get_features()
371 features->usb2 = raw_features & FEATURE_USB2; in get_features()
372 features->rs232 = raw_extended_features & EXT_FEATURE_RS232; in get_features()
373 features->compression_type1 = raw_extended_features & in get_features()
375 features->compression_type2 = raw_extended_features & in get_features()
377 features->compression_type3 = raw_extended_features & in get_features()
379 features->interlace = raw_extended_features & EXT_FEATURE_INTERLACE; in get_features()
380 features->osd = raw_extended_features & EXT_FEATURE_OSD; in get_features()
381 features->compression_pipes = raw_extended_features & in get_features()
475 * get_features() - Fill structure with info from features register.
477 * @features: Pointer to the structure to fill with information from the
478 * features register
485 static int get_features(unsigned int fpga, struct fpga_features *features) in get_features() argument
514 memset(features, 0, sizeof(struct fpga_features)); in get_features()
519 features->video_channels = raw_features & 0x3; in get_features()
520 features->carriers = (raw_features >> 2) & 0x3; in get_features()
522 features->carrier_speed = (raw_features & FEATURE_CARRIER_SPEED_2_5) in get_features()
527 features->ram_config = RAM_DDR2_32BIT_295MBPS; in get_features()
531 features->ram_config = RAM_DDR3_32BIT_590MBPS; in get_features()
535 features->ram_config = RAM_DDR3_48BIT_590MBPS; in get_features()
539 features->pcm_tx = raw_features & FEATURE_PCM_AUDIO_TX; in get_features()
540 features->pcm_rx = raw_features & FEATURE_PCM_AUDIO_RX; in get_features()
541 features->spdif_tx = raw_extended_features & in get_features()
543 features->spdif_rx = raw_extended_features & in get_features()
546 features->usb2 = raw_features & FEATURE_USB20; in get_features()
547 features->rs232 = raw_extended_features & EXTENDED_FEATURE_RS232; in get_features()
549 features->compression_type1 = false; in get_features()
550 features->compression_type2 = false; in get_features()
551 features->compression_type3 = false; in get_features()
554 features->compression_type3 = true; in get_features()
557 features->compression_type2 = true; in get_features()
560 features->compression_type1 = true; in get_features()
564 features->interlace = raw_extended_features & in get_features()
566 features->osd = raw_features & FEATURE_OSD; in get_features()
567 features->compression_pipes = raw_extended_features & in get_features()
584 struct fpga_features features; in fpga_print_info() local
588 get_features(dev, &features); in fpga_print_info()
632 printf(" FPGA V %d.%02d\n features: ", in fpga_print_info()
635 if (!features.compression_type1 && in fpga_print_info()
636 !features.compression_type2 && in fpga_print_info()
637 !features.compression_type3) in fpga_print_info()
640 if (features.compression_type1) in fpga_print_info()
643 if (features.compression_type2) in fpga_print_info()
646 if (features.compression_type3) in fpga_print_info()
649 printf("%sosd", features.osd ? "" : "no "); in fpga_print_info()
651 if (features.pcm_rx && features.pcm_tx) in fpga_print_info()
653 else if (features.pcm_rx) in fpga_print_info()
655 else if (features.pcm_tx) in fpga_print_info()
658 if (features.spdif_rx && features.spdif_tx) in fpga_print_info()
660 else if (features.spdif_rx) in fpga_print_info()
662 else if (features.spdif_tx) in fpga_print_info()
667 switch (features.sysclock) { in fpga_print_info()
673 switch (features.ram_config) { in fpga_print_info()
689 printf(", %d carrier(s)", features.carriers); in fpga_print_info()
691 switch (features.carrier_speed) { in fpga_print_info()
703 printf(", %d video channel(s)\n", features.video_channels); in fpga_print_info()