2
* Copyright (C) 2004,2005 Heinz Mauelshagen, Red Hat GmbH.
5
* See file LICENSE at the top of this source tree for license information.
14
unsigned short dummy[10];
15
#define ATA_SERIAL_LEN 20
16
unsigned char serial[ATA_SERIAL_LEN];
17
unsigned short dummy1[3];
18
unsigned char fw_rev[8];
19
unsigned char model[40];
20
unsigned short dummy2[33];
21
unsigned short major_rev_num;
22
unsigned short minor_rev_num;
23
unsigned short command_set_1;
24
unsigned short command_set_2;
25
unsigned short command_set_extension;
26
unsigned short cfs_enable_1;
27
unsigned short dummy3;
28
unsigned short csf_default;
29
unsigned short dummy4[168];
32
#ifndef ATA_IDENTIFY_DEVICE
33
#define ATA_IDENTIFY_DEVICE 0xEC
35
#ifndef HDIO_DRIVE_CMD
36
#define HDIO_DRIVE_CMD 0x031F
40
int get_ata_serial(struct lib_context *lc, int fd, struct dev_info *di);