From: jschief@finbol.toppoint.de
Newsgroups: comp.os.linux.announce
Subject: patch: Mitsumi-CDROM 99pl11 & c++
Message-ID: <22umb4$m0o@theory.TC.Cornell.EDU>
Date: 25 Jul 93 19:19:00 GMT
Approved: linux-announce@tc.cornell.edu (Matt Welsh)

Hi,
2 small patches for using the mitsumi cdrom with 99pl11
they apply to mcd03.tar.z
a.) in timer.h the number 22 is used for qic02-streamer
    I use 23
    #define MCD_TIMER 23

b.) apply the following to mcd.c to compile without errors
and warning with 99pl11 and c++ 
 
with :  patch mcd.c -p0 < patchlist

May help
Joerg

--------------cut here-------------------------

74c74
< __asm__("cld;rep;insb"::"d" (port),"D" (buf),"c" (nr):"cx","di")
---
> __asm__("cld;rep;insb": :"d" (port),"D" (buf),"c" (nr):"cx","di");
91c91
< struct mcd_Play {
---
> struct mcd_Playstr {
125c125
< static struct mcd_Play mcd_Play;
---
> static struct mcd_Playstr mcd_Play;
137c137
< static void bin2bcd(char *p);
---
> void bin2bcd(unsigned char *p);
140c140
< static void sendMcdCmd(int cmd, struct mcd_Play *params);
---
> static void sendMcdCmd(int cmd, struct mcd_Playstr *params);
146c146
< static int getValue(char *result);
---
> int getValue(unsigned char *result);
176c176
< mcdPlay(struct mcd_Play *arg)
---
> mcdPlay(struct mcd_Playstr *arg)
657c657
< 	struct mcd_Play mcdcmd;
---
> 	struct mcd_Playstr mcdcmd;
692d691
< 
703a703
> 
706a707,708
> 
> 
867,868c869,870
< static void
< bin2bcd(char *p)
---
> void
> bin2bcd(unsigned char *p)
916c918
< sendMcdCmd(int cmd, struct mcd_Play *params)
---
> sendMcdCmd(int cmd, struct mcd_Playstr *params)
993,995c995
< 
< static int
< getValue(char *result)
---
> int getValue(unsigned char *result)
1024c1024
< 	char notUsed;
---
> 	unsigned char notUsed;
----------------end of patch list---------------------

-- 
Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
