/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2008 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GRUB_SCSI_H
struct grub_scsi;
enum
{
};
#define GRUB_SCSI_ID_LUN_SHIFT 0
static inline grub_uint32_t
{
return (subsystem << GRUB_SCSI_ID_SUBSYSTEM_SHIFT)
}
struct grub_scsi_dev
{
/* Call HOOK with each device name, until HOOK returns non-zero. */
/* Open the device named NAME, and set up SCSI. */
/* Close the scsi device SCSI. */
/* Read SIZE bytes from the device SCSI into BUF after sending the
command CMD of size CMDSIZE. */
/* Write SIZE bytes from BUF to the device SCSI after sending the
command CMD of size CMDSIZE. */
/* The next scsi device. */
};
struct grub_scsi
{
/* The underlying scsi device. */
/* Type of SCSI device. XXX: Make enum. */
int bus;
/* Number of LUNs. */
int luns;
/* LUN for this `struct grub_scsi'. */
int lun;
/* Set to 0 when not removable, 1 when removable. */
int removable;
/* Size of the device in blocks. */
int size;
/* Size of one block. */
int blocksize;
/* Device-specific data. */
void *data;
};
#endif /* GRUB_SCSI_H */