scsi_id.h revision ed142bdb68fdcd5ce591152ce0ec9d29898fbac4
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * Copyright (C) IBM Corp. 2003
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * This program is free software: you can redistribute it and/or modify
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * it under the terms of the GNU General Public License as published by
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * the Free Software Foundation, either version 2 of the License, or
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * (at your option) any later version.
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * This program is distributed in the hope that it will be useful,
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * but WITHOUT ANY WARRANTY; without even the implied warranty of
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * GNU General Public License for more details.
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * You should have received a copy of the GNU General Public License
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * along with this program. If not, see <http://www.gnu.org/licenses/>.
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen * MAX_ATTR_LEN: maximum length of the result of reading a sysfs
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ceLennart Poettering * MAX_SERIAL_LEN: the maximum length of the serial number, including
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poettering * added prefixes such as vendor and product (model) strings.
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poettering * MAX_BUFFER_LEN: maximum buffer size and line length used while reading
07630cea1f3a845c09309f197ac7c4f11edd3b62Lennart Poettering * the config file.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* Always from page 0x80 e.g. 'B3G1P8500RWT' - may not be unique */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* NULs if not set - otherwise hex encoding using lower-case e.g. '50014ee0016eb572' */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* NULs if not set - otherwise hex encoding using lower-case e.g. '0xe00000d80000' */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering /* NULs if not set - otherwise decimal number */
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringint scsi_std_inquiry(struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname);
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringint scsi_get_serial(struct udev *udev, struct scsi_id_device *dev_scsi, const char *devname,
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering * Page code values.