From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,380fecc5e7c4df39,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-07-25 12:26:10 PST Path: gmd.de!xlink.net!howland.reston.ans.net!usc!rutgers!rochester!cornell!batcomputer!bounce-bounce From: jschief@finbol.toppoint.de Newsgroups: comp.os.linux.announce Subject: patch: Mitsumi-CDROM 99pl11 & c++ Keywords: Mitsumi, CDROM driver, patch Message-ID: <22umb4$m0o@theory.TC.Cornell.EDU> Date: 25 Jul 93 19:19:00 GMT Sender: mdw@TC.Cornell.EDU Reply-To: jschief@finbol.toppoint.de Followup-To: comp.os.linux Organization: None NNTP-Posting-Host: theory.tc.cornell.edu 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