Lines Matching refs:nvram
1146 ncr_nvram *nvram; member
1385 static int __init sym_read_Symbios_nvram (ncr_slot *np, Symbios_nvram *nvram) in sym_read_Symbios_nvram() argument
1388 u_char *data = (u_char *) nvram; in sym_read_Symbios_nvram()
1389 int len = sizeof(*nvram); in sym_read_Symbios_nvram()
1398 if (nvram->type != 0 || in sym_read_Symbios_nvram()
1399 memcmp(nvram->trailer, Symbios_trailer, 6) || in sym_read_Symbios_nvram()
1400 nvram->byte_count != len - 12) in sym_read_Symbios_nvram()
1406 if (csum != nvram->checksum) in sym_read_Symbios_nvram()
1535 sym_read_T93C46_nvram (ncr_slot *np, Tekram_nvram *nvram) in sym_read_T93C46_nvram() argument
1553 retv = T93C46_Read_Data(np, (u_short *) nvram, in sym_read_T93C46_nvram()
1554 sizeof(*nvram) / sizeof(short), &gpreg); in sym_read_T93C46_nvram()
1568 sym_read_Tekram_nvram (ncr_slot *np, u_short device_id, Tekram_nvram *nvram) in sym_read_Tekram_nvram() argument
1570 u_char *data = (u_char *) nvram; in sym_read_Tekram_nvram()
1571 int len = sizeof(*nvram); in sym_read_Tekram_nvram()
1588 x = sym_read_T93C46_nvram(np, nvram); in sym_read_Tekram_nvram()
1622 devp->nvram = nvp; in ncr_get_nvram()
1649 devp->nvram = 0; in ncr_get_nvram()
1670 static void __init ncr_display_Symbios_nvram(Symbios_nvram *nvram) in ncr_display_Symbios_nvram() argument
1676 nvram->host_id & 0x0f, in ncr_display_Symbios_nvram()
1677 (nvram->flags & SYMBIOS_SCAM_ENABLE) ? " SCAM" :"", in ncr_display_Symbios_nvram()
1678 (nvram->flags & SYMBIOS_PARITY_ENABLE) ? " PARITY" :"", in ncr_display_Symbios_nvram()
1679 (nvram->flags & SYMBIOS_VERBOSE_MSGS) ? " VERBOSE" :"", in ncr_display_Symbios_nvram()
1680 (nvram->flags & SYMBIOS_CHS_MAPPING) ? " CHS_ALT" :"", in ncr_display_Symbios_nvram()
1681 (nvram->flags1 & SYMBIOS_SCAN_HI_LO) ? " HI_LO" :""); in ncr_display_Symbios_nvram()
1685 struct Symbios_target *tn = &nvram->target[i]; in ncr_display_Symbios_nvram()
1701 static void __init ncr_display_Tekram_nvram(Tekram_nvram *nvram) in ncr_display_Tekram_nvram() argument
1707 tags = 2 << nvram->max_tags_index; in ncr_display_Tekram_nvram()
1709 if (nvram->boot_delay_index < 6) in ncr_display_Tekram_nvram()
1710 boot_delay = Tekram_boot_delay[nvram->boot_delay_index]; in ncr_display_Tekram_nvram()
1711 switch((nvram->flags & TEKRAM_REMOVABLE_FLAGS) >> 6) { in ncr_display_Tekram_nvram()
1720 nvram->host_id & 0x0f, in ncr_display_Tekram_nvram()
1721 (nvram->flags1 & SYMBIOS_SCAM_ENABLE) ? " SCAM" :"", in ncr_display_Tekram_nvram()
1722 (nvram->flags & TEKRAM_MORE_THAN_2_DRIVES) ? " >2DRIVES":"", in ncr_display_Tekram_nvram()
1723 (nvram->flags & TEKRAM_DRIVES_SUP_1GB) ? " >1GB" :"", in ncr_display_Tekram_nvram()
1724 (nvram->flags & TEKRAM_RESET_ON_POWER_ON) ? " RESET" :"", in ncr_display_Tekram_nvram()
1725 (nvram->flags & TEKRAM_ACTIVE_NEGATION) ? " ACT_NEG" :"", in ncr_display_Tekram_nvram()
1726 (nvram->flags & TEKRAM_IMMEDIATE_SEEK) ? " IMM_SEEK" :"", in ncr_display_Tekram_nvram()
1727 (nvram->flags & TEKRAM_SCAN_LUNS) ? " SCAN_LUNS" :"", in ncr_display_Tekram_nvram()
1728 (nvram->flags1 & TEKRAM_F2_F6_ENABLED) ? " F2_F6" :"", in ncr_display_Tekram_nvram()
1734 struct Tekram_target *tn = &nvram->target[i]; in ncr_display_Tekram_nvram()
2524 ncr_nvram nvram0, nvram, *nvp; local
2607 nvp = &nvram;