Tech Insider					   Technology and Trends


			   USENET Archives

From axboe@image.dk Sat, 24 Jul 1999 21:16:17 +0200
Date: Sat, 24 Jul 1999 21:16:17 +0200
From: Jens Axboe axboe@image.dk
Subject: [Livid-dev] CDROM updates

Hi folks,

I've been incorporating the DVD patches found on the web site into
a form that will likely enter the standard kernel (once I get it
completely wrapped up). The basic DVD code is still the same, and
thus compatability should be insured with the set found on the
homepage.

Now, DVD isn't the only thing happening in the CD-ROM world
these days. Therefore the patch does a lot of other things
beside that. It should work fine, however, and I urge you too
give it a shot. It can be found at http://www.kernel.dk - I
will post a cleaned up version tomorrow that you can try, or
you could go for what is there now.

While the previous patch was very ATAPI specific, mine handles
ATAPI/SCSI/parallel devices alike (the latter has no "hook"
for DVD defined yet, but that can be done quickly. I didn't
rush it, since I'm not aware of any parallel DVD drives and
don't even know if there ever will be any).

Matthew will set up a cdrom-patch on CVS, but until get
it from the above mentioned homepage.

-- 
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer

From derek@spider.com Sat, 24 Jul 1999 22:54:08 +0100
Date: Sat, 24 Jul 1999 22:54:08 +0100
From: Derek Fawcus derek@spider.com
Subject: [Livid-dev] CDROM updates

On Sat, Jul 24, 1999 at 09:16:17PM +0200, Jens Axboe wrote:
> Hi folks,
> 
> I've been incorporating the DVD patches found on the web site into
> a form that will likely enter the standard kernel (once I get it
> completely wrapped up). The basic DVD code is still the same, and
> thus compatability should be insured with the set found on the
> homepage.

  There were some fixes to the patches from the web site posted to
this and the linux dvd list.  You've not incorporated those fixes.
I've appended the info below.

DF
-- 
Derek Fawcus                                                    derek@spider.com
Spider Software Ltd.                                        +44 (0) 131 475 7034


        case DVD_LU_SEND_ASF:
                setup_report_key (&pc, ai->lsasf.agid, 5);
                pc.buflen = pc.c[9] = 8;                  
                
                rv = cdrom_queue_packet_command (drive, &pc);   
                if (rv)                                      
                        return rv;
        
>               ai->lsasf.asf = buf[7] & 1;
                break;


        case DVD_INVALIDATE_AGID:
>               setup_report_key (&pc, ai->lsa.agid, 0x3f);
                
                rv = cdrom_queue_packet_command (drive, &pc);                    
                if (rv)                                      
                        return rv;
                break;            

        /* Post-auth key */
        case DVD_LU_SEND_TITLE_KEY:
                setup_report_key (&pc, ai->lstk.agid, 4);
                pc.c[5] = ai->lstk.lba;
                pc.c[4] = ai->lstk.lba >> 8;
                pc.c[3] = ai->lstk.lba >> 16;
                pc.c[2] = ai->lstk.lba >> 24;
                pc.buflen = pc.c[9] = 12;
 
                rv = cdrom_queue_packet_command (drive, &pc);
                if (rv)
                        return rv;
 
>               ai->lstk.cpm = (buf[4] >> 7) & 1;
>               ai->lstk.cp_sec = (buf[4] >> 6) & 1;
>               ai->lstk.cgms = (buf[4] >> 4) & 3;
>               copy_key (ai->lstk.title_key, &buf[5]);
                /* Returning data, let host change state */
                break;

From axboe@image.dk Sun, 25 Jul 1999 01:39:52 +0200
Date: Sun, 25 Jul 1999 01:39:52 +0200
From: Jens Axboe axboe@image.dk
Subject: [Livid-dev] CDROM updates

On Sat, Jul 24 1999, Derek Fawcus wrote:
>   There were some fixes to the patches from the web site posted to
> this and the linux dvd list.  You've not incorporated those fixes.
> I've appended the info below.

Great, thanks! I put them in here now.

> DF

-- 
*  Jens Axboe 
*  Linux CD-ROM Maintainer 




From axboe@image.dk Wed, 28 Jul 1999 22:17:09 +0200
Date: Wed, 28 Jul 1999 22:17:09 +0200
From: Jens Axboe axboe@image.dk
Subject: [Livid-dev] Re: CDROM patches from http://www.kernel.dk

On Wed, Jul 28 1999, Andreas Bogk wrote:
> Jens Axboe <axboe@image.dk> writes:
> 
> > juggling two different codebases at one. Could you replace that with :
> > 
> > struct semaphore sem = MUTEX_LOCKED;
> 
> That worked. What didn't work though are the DVD ioctls on a SCSI
> DVD. I keep getting a "Function not implemented" error when trying to
> isse an DVD_AUTH ioctl.

On a related note - I've put up a new set of patches. I really need
to CVS my kernel... Could people with SCSI drives please test? That
goes for ATAPI people as well, actually :)

http://www.kernel.dk

-- 
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer



			   USENET Archives


The materials and information included in this website may only be used
for purposes such as criticism, review, private study, scholarship, or 
research.


Electronic mail:			      WorldWideWeb:
   tech-insider@outlook.com		         http://tech-insider.org/