aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-transaction.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-03-07 12:12:36 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:03:05 -0500
commit937f687969f77bfeee5efd71cadfa6f1a813665e (patch)
treeb9b691299676369ffb1882ba668fa89e9675312b /drivers/firewire/fw-transaction.c
parent65efffa8f0cd86a199bf19ede5c91552d35c5a38 (diff)
firewire: Let an fw_descriptor specify a leading immediate key/value pair.
This lets us break out "Juju" as the model name in the config rom. Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-transaction.c')
-rw-r--r--drivers/firewire/fw-transaction.c34
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>");
720MODULE_DESCRIPTION("Core IEEE1394 transaction logic"); 720MODULE_DESCRIPTION("Core IEEE1394 transaction logic");
721MODULE_LICENSE("GPL"); 721MODULE_LICENSE("GPL");
722 722
723static const u32 vendor_textual_descriptor_data[] = { 723static 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
736static struct fw_descriptor vendor_textual_descriptor = { 734static 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
742static 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
749static 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
742static int __init fw_core_init(void) 756static 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;