• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/ide/

Lines Matching refs:id

30  * Version 1.10		Update set for new IDE. drive->id is now always
57 * generic_id - add a generic drive id
60 * Add a fake id field to the drive we are passed. This allows
67 drive->id->cyls = drive->cyl;
68 drive->id->heads = drive->head;
69 drive->id->sectors = drive->sect;
70 drive->id->cur_cyls = drive->cyl;
71 drive->id->cur_heads = drive->head;
72 drive->id->cur_sectors = drive->sect;
77 struct hd_driveid *id = drive->id;
81 drive->cyl = drive->bios_cyl = id->cyls;
82 drive->head = drive->bios_head = id->heads;
83 drive->sect = drive->bios_sect = id->sectors;
87 if ((id->field_valid & 1) && id->cur_cyls &&
88 id->cur_heads && (id->cur_heads <= 16) && id->cur_sectors) {
89 drive->cyl = id->cur_cyls;
90 drive->head = id->cur_heads;
91 drive->sect = id->cur_sectors;
95 if (drive->head > 16 && id->heads && id->heads <= 16) {
96 drive->cyl = id->cyls;
97 drive->head = id->heads;
98 drive->sect = id->sectors;
104 struct hd_driveid *id = drive->id;
107 if (id->max_multsect) {
109 id->multsect = ((id->max_multsect/2) > 1) ? id->max_multsect : 0;
110 id->multsect_valid = id->multsect ? 1 : 0;
111 drive->mult_req = id->multsect_valid ? id->max_multsect : INITIAL_MULT_COUNT;
115 if (drive->mult_req > id->max_multsect)
116 drive->mult_req = id->max_multsect;
117 if (drive->mult_req || ((id->multsect_valid & 1) && id->multsect))
137 struct hd_driveid *id;
139 id = drive->id;
140 /* read 512 bytes of id info */
141 hwif->ata_input_data(drive, id, SECTOR_WORDS);
145 ide_fix_driveid(id);
153 if ((id->model[0] == 'P' && id->model[1] == 'M') ||
154 (id->model[0] == 'S' && id->model[1] == 'K')) {
155 printk("%s: EATA SCSI HBA %.10s\n", drive->name, id->model);
165 if ((id->model[0] == 'N' && id->model[1] == 'E') /* NEC */
166 || (id->model[0] == 'F' && id->model[1] == 'X') /* Mitsumi */
167 || (id->model[0] == 'P' && id->model[1] == 'i'))/* Pioneer */
171 ide_fixstring(id->model, sizeof(id->model), bswap);
172 ide_fixstring(id->fw_rev, sizeof(id->fw_rev), bswap);
173 ide_fixstring(id->serial_no, sizeof(id->serial_no), bswap);
175 if (strstr(id->model, "E X A B Y T E N E S T"))
179 id->model[sizeof(id->model)-1] = '\0';
180 printk("%s: %s, ", drive->name, id->model);
188 u8 type = (id->config >> 8) & 0x1f;
192 if (!strstr(id->model, "CD-ROM")) {
193 if (!strstr(id->model, "oppy") &&
194 !strstr(id->model, "poyp") &&
195 !strstr(id->model, "ZIP"))
209 if (!strstr(id->model, "CD-ROM") &&
210 strstr(id->model, "ZIP")) {
245 if ((id->config != 0x848a) && (id->config & (1<<7)))
249 printk("%s DISK drive\n", (id->config == 0x848a) ? "CFA" : "ATA" );
254 kfree(id);
510 printk("%s: enabling %s -- ", hwif->name, drive->id->model);
553 * In order to keep things simple we have an id
561 drive->id = kzalloc(SECTOR_WORDS *4, GFP_KERNEL);
563 if(drive->id == NULL)
565 printk(KERN_ERR "ide: out of memory for id data.\n");
568 strcpy(drive->id->model, "UNKNOWN");
581 if (strstr(drive->id->model, "E X A B Y T E N E S T"))
698 if (strcmp(drive0->id->model, drive1->id->model))
702 if (strncmp(drive0->id->serial_no, drive1->id->serial_no, 20))
706 if (drive0->id->serial_no[0] == 0)
868 drive->no_io_32bit = drive->id->dword_io ? 1 : 0;
1272 kfree(drive->id);
1273 drive->id = NULL;