diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aicasm/aicasm_gram.y')
-rw-r--r-- | drivers/scsi/aic7xxx/aicasm/aicasm_gram.y | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y b/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y index e1079dd3cc28..81be6a261cc8 100644 --- a/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y +++ b/drivers/scsi/aic7xxx/aicasm/aicasm_gram.y | |||
@@ -143,6 +143,8 @@ void yyerror(const char *string); | |||
143 | 143 | ||
144 | %token <value> T_ADDRESS | 144 | %token <value> T_ADDRESS |
145 | 145 | ||
146 | %token T_COUNT | ||
147 | |||
146 | %token T_ACCESS_MODE | 148 | %token T_ACCESS_MODE |
147 | 149 | ||
148 | %token T_MODES | 150 | %token T_MODES |
@@ -353,6 +355,7 @@ reg_attribute_list: | |||
353 | reg_attribute: | 355 | reg_attribute: |
354 | reg_address | 356 | reg_address |
355 | | size | 357 | | size |
358 | | count | ||
356 | | access_mode | 359 | | access_mode |
357 | | modes | 360 | | modes |
358 | | field_defn | 361 | | field_defn |
@@ -393,6 +396,13 @@ size: | |||
393 | } | 396 | } |
394 | ; | 397 | ; |
395 | 398 | ||
399 | count: | ||
400 | T_COUNT T_NUMBER | ||
401 | { | ||
402 | cur_symbol->count += $2; | ||
403 | } | ||
404 | ; | ||
405 | |||
396 | access_mode: | 406 | access_mode: |
397 | T_ACCESS_MODE T_MODE | 407 | T_ACCESS_MODE T_MODE |
398 | { | 408 | { |
@@ -801,6 +811,7 @@ scratch_ram: | |||
801 | cur_symtype = SRAMLOC; | 811 | cur_symtype = SRAMLOC; |
802 | cur_symbol->type = SRAMLOC; | 812 | cur_symbol->type = SRAMLOC; |
803 | initialize_symbol(cur_symbol); | 813 | initialize_symbol(cur_symbol); |
814 | cur_symbol->count += 1; | ||
804 | } | 815 | } |
805 | reg_address | 816 | reg_address |
806 | { | 817 | { |
@@ -832,6 +843,7 @@ scb: | |||
832 | initialize_symbol(cur_symbol); | 843 | initialize_symbol(cur_symbol); |
833 | /* 64 bytes of SCB space */ | 844 | /* 64 bytes of SCB space */ |
834 | cur_symbol->info.rinfo->size = 64; | 845 | cur_symbol->info.rinfo->size = 64; |
846 | cur_symbol->count += 1; | ||
835 | } | 847 | } |
836 | reg_address | 848 | reg_address |
837 | { | 849 | { |