mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
75a4a592e5
Mon Apr 25 13:37:00 UTC 2011 Slackware 13.37 x86_64 stable is released! Thanks to everyone who pitched in on this release: the Slackware team, the folks producing upstream code, and linuxquestions.org for providing a great forum for collaboration and testing. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. As always, thanks to the Slackware community for testing, suggestions, and feedback. :-) Have fun!
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
#ifndef _SCSI_IOCTL_H
|
|
#define _SCSI_IOCTL_H
|
|
|
|
#define SCSI_IOCTL_SEND_COMMAND 1
|
|
#define SCSI_IOCTL_TEST_UNIT_READY 2
|
|
#define SCSI_IOCTL_BENCHMARK_COMMAND 3
|
|
#define SCSI_IOCTL_SYNC 4 /* Request synchronous parameters */
|
|
#define SCSI_IOCTL_START_UNIT 5
|
|
#define SCSI_IOCTL_STOP_UNIT 6
|
|
/* The door lock/unlock constants are compatible with Sun constants for
|
|
the cdrom */
|
|
#define SCSI_IOCTL_DOORLOCK 0x5380 /* lock the eject mechanism */
|
|
#define SCSI_IOCTL_DOORUNLOCK 0x5381 /* unlock the mechanism */
|
|
|
|
#define SCSI_REMOVAL_PREVENT 1
|
|
#define SCSI_REMOVAL_ALLOW 0
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
struct scsi_device;
|
|
|
|
/*
|
|
* Structures used for scsi_ioctl et al.
|
|
*/
|
|
|
|
typedef struct scsi_ioctl_command {
|
|
unsigned int inlen;
|
|
unsigned int outlen;
|
|
unsigned char data[0];
|
|
} Scsi_Ioctl_Command;
|
|
|
|
typedef struct scsi_idlun {
|
|
__u32 dev_id;
|
|
__u32 host_unique_id;
|
|
} Scsi_Idlun;
|
|
|
|
/* Fibre Channel WWN, port_id struct */
|
|
typedef struct scsi_fctargaddress {
|
|
__u32 host_port_id;
|
|
unsigned char host_wwn[8]; // include NULL term.
|
|
} Scsi_FCTargAddress;
|
|
|
|
extern int scsi_ioctl(struct scsi_device *, int, void __user *);
|
|
extern int scsi_nonblockable_ioctl(struct scsi_device *sdev, int cmd,
|
|
void __user *arg, struct file *filp);
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* _SCSI_IOCTL_H */
|