diff options
Diffstat (limited to 'sys/dev/microcode')
| -rw-r--r-- | sys/dev/microcode/aic7xxx/aic79xx_seq.h | 5 | ||||
| -rw-r--r-- | sys/dev/microcode/aic7xxx/aic7xxx_reg.h | 4 | ||||
| -rw-r--r-- | sys/dev/microcode/aic7xxx/aic7xxx_seq.h | 9 |
3 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/microcode/aic7xxx/aic79xx_seq.h b/sys/dev/microcode/aic7xxx/aic79xx_seq.h index 06b8b1855ec..9c3dfbe2623 100644 --- a/sys/dev/microcode/aic7xxx/aic79xx_seq.h +++ b/sys/dev/microcode/aic7xxx/aic79xx_seq.h @@ -1135,5 +1135,6 @@ static const struct cs { { 721, 725 } }; -static const int num_critical_sections = sizeof(critical_sections) - / sizeof(*critical_sections); +#define NUM_CRITICAL_SECTIONS \ + (sizeof(critical_sections) / sizeof(*critical_sections)) +static const int num_critical_sections = NUM_CRITICAL_SECTIONS; diff --git a/sys/dev/microcode/aic7xxx/aic7xxx_reg.h b/sys/dev/microcode/aic7xxx/aic7xxx_reg.h index ecb97a2257c..3154fb3ed8a 100644 --- a/sys/dev/microcode/aic7xxx/aic7xxx_reg.h +++ b/sys/dev/microcode/aic7xxx/aic7xxx_reg.h @@ -2,8 +2,8 @@ * DO NOT EDIT - This file is automatically generated * from the following source files: * - * NetBSD: aic7xxx.seq,v 1.20 2019/06/04 10:15:22 msaitoh Exp $ - * NetBSD: aic7xxx.reg,v 1.4 2005/12/11 12:22:18 christos Exp $ + * NetBSD: aic7xxx.seq,v 1.21 2021/09/03 22:33:17 andvar Exp $ + * NetBSD: aic7xxx.reg,v 1.5 2021/08/07 19:41:14 andvar Exp $ */ typedef int (ahc_reg_print_t)(u_int, u_int *, u_int); typedef struct ahc_reg_parse_entry { diff --git a/sys/dev/microcode/aic7xxx/aic7xxx_seq.h b/sys/dev/microcode/aic7xxx/aic7xxx_seq.h index f7630a96d62..16e46a6b049 100644 --- a/sys/dev/microcode/aic7xxx/aic7xxx_seq.h +++ b/sys/dev/microcode/aic7xxx/aic7xxx_seq.h @@ -2,8 +2,8 @@ * DO NOT EDIT - This file is automatically generated * from the following source files: * - * NetBSD: aic7xxx.seq,v 1.20 2019/06/04 10:15:22 msaitoh Exp $ - * NetBSD: aic7xxx.reg,v 1.4 2005/12/11 12:22:18 christos Exp $ + * NetBSD: aic7xxx.seq,v 1.21 2021/09/03 22:33:17 andvar Exp $ + * NetBSD: aic7xxx.reg,v 1.5 2021/08/07 19:41:14 andvar Exp $ */ static const uint8_t seqprog[] = { 0xb2, 0x00, 0x00, 0x08, @@ -1313,5 +1313,6 @@ static const struct cs { { 884, 886 } }; -static const int num_critical_sections = sizeof(critical_sections) - / sizeof(*critical_sections); +#define NUM_CRITICAL_SECTIONS \ + (sizeof(critical_sections) / sizeof(*critical_sections)) +static const int num_critical_sections = NUM_CRITICAL_SECTIONS; |
