From: Thomas Maguin <T.Maguin@web.de>
To: linux-kernel@vger.kernel.org
Subject: VariRec, GigaRec and PowerRec as user
Date: Sun, 12 Feb 2006 19:51:50 +0100 [thread overview]
Message-ID: <200602121952.02696.T.Maguin@web.de> (raw)
[-- 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 --]
reply other threads:[~2006-02-12 18:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200602121952.02696.T.Maguin@web.de \
--to=t.maguin@web.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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