4 * General defines and such for scsi_id
6 * Copyright (C) IBM Corp. 2003
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation version 2 of the License.
13 #define MAX_PATH_LEN 512
16 * MAX_ATTR_LEN: maximum length of the result of reading a sysfs
19 #define MAX_ATTR_LEN 256
22 * MAX_SERIAL_LEN: the maximum length of the serial number, including
23 * added prefixes such as vendor and product (model) strings.
25 #define MAX_SERIAL_LEN 256
28 * MAX_BUFFER_LEN: maximum buffer size and line length used while reading
31 #define MAX_BUFFER_LEN 256
33 struct scsi_id_device {
39 char serial[MAX_SERIAL_LEN];
43 extern int scsi_std_inquiry(struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname);
44 extern int scsi_get_serial (struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname,
45 int page_code, char *serial_short, int len);
51 PAGE_83_PRE_SPC3 = -0x83,
52 PAGE_UNSPECIFIED = 0x00,