SCSI write support (for usbms mainly).

* grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
	a const pointer.
	(grub_scsi_write): Implement.
	* include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-30 12:26:11 +01:00
parent 67639fd75e
commit cc774926f1
5 changed files with 47 additions and 12 deletions

View file

@ -69,7 +69,7 @@ struct grub_scsi_dev
/* Write SIZE bytes from BUF to the device SCSI after sending the
command CMD of size CMDSIZE. */
grub_err_t (*write) (struct grub_scsi *scsi, grub_size_t cmdsize, char *cmd,
grub_size_t size, char *buf);
grub_size_t size, const char *buf);
/* The next scsi device. */
struct grub_scsi_dev *next;