VariRec, GigaRec and PowerRec as user

From: Thomas Maguin
Date: Sun Feb 12 2006 - 13:49:47 EST


This patch allows to normal users on Plextor drives:

- Hide CD-R
- SingleSession
- SpeedRead
- PowerRec
- VariRec
- GigaRec

Can be tested with new qpxtool (testing version available here):
http://de.geocities.com/linux_piewie/download/qpxtool-testing.tgz


--- linux/include/scsi/old-scsi.hÂÂÂÂÂÂÂ2006-02-12 16:15:40.000000000 +0100
+++ linux/include/scsi/scsi.hÂÂÂ2006-02-12 17:23:20.000000000 +0100
@@ -108,7 +108,11 @@
Â#define SEARCH_LOW_12 Â Â Â Â 0xb2
Â#define READ_ELEMENT_STATUS Â 0xb8
Â#define SEND_VOLUME_TAG Â Â Â 0xb6
+#define PLEXTOR_MODE Â Â Â Â Â0xe9
Â#define WRITE_LONG_2 Â Â Â Â Â0xea
+#define PLEXTOR_PREC_SPEEDS Â 0xeb
+#define PLEXTOR_MODE2 Â Â Â Â 0xed
+
Â#define READ_16 Â Â Â Â Â Â Â 0x88
Â#define WRITE_16 Â Â Â Â Â Â Â0x8a
Â#define VERIFY_16ÂÂÂÂÂÂ Â Â Â0x8f
--- linux/drivers/block/old-scsi_ioctl.cÂÂÂÂÂÂÂÂ2006-02-12 16:23:37.000000000
+0100
+++ linux/drivers/block/scsi_ioctl.cÂÂÂÂ2006-02-12 16:25:31.000000000 +0100
@@ -159,7 +159,10 @@
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(GPCMD_GET_PERFORMANCE),
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(GPCMD_SEEK),
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(GPCMD_STOP_PLAY_SCAN),
-
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(PLEXTOR_MODE),
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(PLEXTOR_PREC_SPEEDS),
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_read(PLEXTOR_MODE2),
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ/* Basic writing commands */
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_write(WRITE_6),
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂsafe_for_write(WRITE_10),

Attachment: pgp00000.pgp
Description: PGP signature