diff options
Diffstat (limited to 'drivers/firewire/fw-transaction.c')
-rw-r--r-- | drivers/firewire/fw-transaction.c | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index abc37fa52492..8e2b94557390 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c | |||
@@ -720,23 +720,37 @@ MODULE_AUTHOR("Kristian Hoegsberg <krh@bitplanet.net>"); | |||
720 | MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); | 720 | MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); |
721 | MODULE_LICENSE("GPL"); | 721 | MODULE_LICENSE("GPL"); |
722 | 722 | ||
723 | static const u32 vendor_textual_descriptor_data[] = { | 723 | static const u32 vendor_textual_descriptor[] = { |
724 | /* textual descriptor leaf () */ | 724 | /* textual descriptor leaf () */ |
725 | 0x00080000, | 725 | 0x00060000, |
726 | 0x00000000, | 726 | 0x00000000, |
727 | 0x00000000, | 727 | 0x00000000, |
728 | 0x4c696e75, /* L i n u */ | 728 | 0x4c696e75, /* L i n u */ |
729 | 0x78204669, /* x F i */ | 729 | 0x78204669, /* x F i */ |
730 | 0x72657769, /* r e w i */ | 730 | 0x72657769, /* r e w i */ |
731 | 0x72652028, /* r e ( */ | 731 | 0x72650000, /* r e */ |
732 | 0x4a554a55, /* J U J U */ | ||
733 | 0x29000000, /* ) */ | ||
734 | }; | 732 | }; |
735 | 733 | ||
736 | static struct fw_descriptor vendor_textual_descriptor = { | 734 | static const u32 model_textual_descriptor[] = { |
737 | .length = ARRAY_SIZE(vendor_textual_descriptor_data), | 735 | /* model descriptor leaf () */ |
736 | 0x00030000, | ||
737 | 0x00000000, | ||
738 | 0x00000000, | ||
739 | 0x4a756a75, /* J u j u */ | ||
740 | }; | ||
741 | |||
742 | static struct fw_descriptor vendor_id_descriptor = { | ||
743 | .length = ARRAY_SIZE(vendor_textual_descriptor), | ||
744 | .immediate = 0x03d00d1e, | ||
738 | .key = 0x81000000, | 745 | .key = 0x81000000, |
739 | .data = vendor_textual_descriptor_data, | 746 | .data = vendor_textual_descriptor, |
747 | }; | ||
748 | |||
749 | static struct fw_descriptor model_id_descriptor = { | ||
750 | .length = ARRAY_SIZE(model_textual_descriptor), | ||
751 | .immediate = 0x17000001, | ||
752 | .key = 0x81000000, | ||
753 | .data = model_textual_descriptor, | ||
740 | }; | 754 | }; |
741 | 755 | ||
742 | static int __init fw_core_init(void) | 756 | static int __init fw_core_init(void) |
@@ -748,7 +762,9 @@ static int __init fw_core_init(void) | |||
748 | return retval; | 762 | return retval; |
749 | 763 | ||
750 | /* Add the vendor textual descriptor. */ | 764 | /* Add the vendor textual descriptor. */ |
751 | retval = fw_core_add_descriptor(&vendor_textual_descriptor); | 765 | retval = fw_core_add_descriptor(&vendor_id_descriptor); |
766 | BUG_ON(retval < 0); | ||
767 | retval = fw_core_add_descriptor(&model_id_descriptor); | ||
752 | BUG_ON(retval < 0); | 768 | BUG_ON(retval < 0); |
753 | 769 | ||
754 | return 0; | 770 | return 0; |