Lines Matching refs:nvram
1396 ncr_nvram *nvram; member
2543 Tekram_nvram *nvram);
2544 static int sym_read_Symbios_nvram (ncr_slot *np, Symbios_nvram *nvram);
4828 ncr_Symbios_setup_target(ncb_p np, int target, Symbios_nvram *nvram) in ncr_Symbios_setup_target() argument
4831 Symbios_target *tn = &nvram->target[target]; in ncr_Symbios_setup_target()
4849 ncr_Tekram_setup_target(ncb_p np, int target, Tekram_nvram *nvram) in ncr_Tekram_setup_target() argument
4852 struct Tekram_target *tn = &nvram->target[target]; in ncr_Tekram_setup_target()
4863 tp->usrtags = 2 << nvram->max_tags_index; in ncr_Tekram_setup_target()
4912 static int __init ncr_prepare_setting(ncb_p np, ncr_nvram *nvram) argument
5136 if (nvram) {
5137 switch(nvram->type) {
5139 np->myaddr = nvram->data.Tekram.host_id & 0x0f;
5142 if (!(nvram->data.Symbios.flags & SYMBIOS_PARITY_ENABLE))
5144 np->myaddr = nvram->data.Symbios.host_id & 0x0f;
5145 if (nvram->data.Symbios.flags & SYMBIOS_VERBOSE_MSGS)
5189 if (nvram && nvram->type != SCSI_NCR_SYMBIOS_NVRAM)
5214 (nvram && nvram->type == SCSI_NCR_SYMBIOS_NVRAM)) &&
5243 if (nvram) {
5244 switch(nvram->type) {
5246 ncr_Tekram_setup_target(np, i, &nvram->data.Tekram);
5249 ncr_Symbios_setup_target(np, i, &nvram->data.Symbios);
5275 i = nvram ? nvram->type : 0;
5307 void __init ncr_display_Symbios_nvram(ncb_p np, Symbios_nvram *nvram) argument
5313 ncr_name(np), nvram->host_id & 0x0f,
5314 (nvram->flags & SYMBIOS_SCAM_ENABLE) ? " SCAM" :"",
5315 (nvram->flags & SYMBIOS_PARITY_ENABLE) ? " PARITY" :"",
5316 (nvram->flags & SYMBIOS_VERBOSE_MSGS) ? " VERBOSE" :"",
5317 (nvram->flags & SYMBIOS_CHS_MAPPING) ? " CHS_ALT" :"",
5318 (nvram->flags1 & SYMBIOS_SCAN_HI_LO) ? " HI_LO" :"");
5322 struct Symbios_target *tn = &nvram->target[i];
5337 void __init ncr_display_Tekram_nvram(ncb_p np, Tekram_nvram *nvram) argument
5343 tags = 2 << nvram->max_tags_index;
5345 if (nvram->boot_delay_index < 6)
5346 boot_delay = Tekram_boot_delay[nvram->boot_delay_index];
5347 switch((nvram->flags & TEKRAM_REMOVABLE_FLAGS) >> 6) {
5356 ncr_name(np), nvram->host_id & 0x0f,
5357 (nvram->flags1 & SYMBIOS_SCAM_ENABLE) ? " SCAM" :"",
5358 (nvram->flags & TEKRAM_MORE_THAN_2_DRIVES) ? " >2DRIVES" :"",
5359 (nvram->flags & TEKRAM_DRIVES_SUP_1GB) ? " >1GB" :"",
5360 (nvram->flags & TEKRAM_RESET_ON_POWER_ON) ? " RESET" :"",
5361 (nvram->flags & TEKRAM_ACTIVE_NEGATION) ? " ACT_NEG" :"",
5362 (nvram->flags & TEKRAM_IMMEDIATE_SEEK) ? " IMM_SEEK" :"",
5363 (nvram->flags & TEKRAM_SCAN_LUNS) ? " SCAN_LUNS" :"",
5364 (nvram->flags1 & TEKRAM_F2_F6_ENABLED) ? " F2_F6" :"",
5370 struct Tekram_target *tn = &nvram->target[i];
5403 ncr_nvram *nvram = device->nvram; local
5555 if (nvram) {
5556 switch(nvram->type) {
5559 ncr_display_Symbios_nvram(np, &nvram->data.Symbios);
5564 ncr_display_Tekram_nvram(np, &nvram->data.Tekram);
5568 nvram = 0;
5592 (void) ncr_prepare_setting(np, nvram);
12906 ncr_nvram nvram0, nvram, *nvp; local
13007 nvp = &nvram;
13461 devp->nvram = nvp;
13488 devp->nvram = 0;
14503 static int __init sym_read_Symbios_nvram (ncr_slot *np, Symbios_nvram *nvram) argument
14506 u_char *data = (u_char *) nvram;
14507 int len = sizeof(*nvram);
14516 if (nvram->type != 0 ||
14517 memcmp(nvram->trailer, Symbios_trailer, 6) ||
14518 nvram->byte_count != len - 12)
14524 if (csum != nvram->checksum)
14653 sym_read_T93C46_nvram (ncr_slot *np, Tekram_nvram *nvram) argument
14671 retv = T93C46_Read_Data(np, (u_short *) nvram,
14672 sizeof(*nvram) / sizeof(short), &gpreg);
14686 sym_read_Tekram_nvram (ncr_slot *np, u_short device_id, Tekram_nvram *nvram) argument
14688 u_char *data = (u_char *) nvram;
14689 int len = sizeof(*nvram);
14706 x = sym_read_T93C46_nvram(np, nvram);