-
- /* Check if man_id and flash_id are valid. */
- if (ids != 0xDEADDEAD && (*man_id == 0 || *flash_id == 0)) {
- /* Read information using 0x9f opcode
- * Device ID, Mfg ID would be read in the format:
- * <Ext Dev Info><Device ID Part2><Device ID Part 1><Mfg ID>
- * Example: ATMEL 0x00 01 45 1F
- * Extract MFG and Dev ID from last two bytes.
- */
- ids = qla24xx_read_flash_dword(ha,
- flash_data_to_access_addr(0xd009f));
- *man_id = LSB(ids);
- *flash_id = MSB(ids);
- }