mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* VariRec, GigaRec and PowerRec as user
@ 2006-02-12 18:51 Thomas Maguin
  0 siblings, 0 replies; only message in thread
From: Thomas Maguin @ 2006-02-12 18:51 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1638 bytes --]

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 #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-12 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-12 18:51 VariRec, GigaRec and PowerRec as user Thomas Maguin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome