From owner-freebsd-hackers Sun Sep 8 16:11:43 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA01916 for hackers-outgoing; Sun, 8 Sep 1996 16:11:43 -0700 (PDT) Received: from augur.opr.com ([206.158.128.143]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id QAA01911 for ; Sun, 8 Sep 1996 16:11:41 -0700 (PDT) Received: (from ivan@localhost) by augur.opr.com (8.6.12/8.6.12) id SAA01498 for hackers@FreeBSD.org; Sun, 8 Sep 1996 18:08:53 -0400 From: Ivan Pulleyn Message-Id: <199609082208.SAA01498@augur.opr.com> Subject: atapi.c To: hackers@FreeBSD.org Date: Sun, 8 Sep 1996 18:08:53 -0400 (EDT) X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi, While attempting to make my el-cheapo ide cdrom work with FreeBSD, I noticed the following problem with atapi.c. During atapi_probe(), an atapi_wait() is called before sending an identify request to the device. This causes a busy timeout if the cdrom is the only device on the controller. Removing the following lines seemed to fix it for me ( using 2.1.5-RELEASE sources ). If other people are having problems with ATAPI cdroms, I suggest trying this out. Ivan... /usr/src/sys/i386/isa/atapi.c 321,327d320 < /* Wait for controller not busy. */ < if (atapi_wait (port, 0) < 0) { < print (("atapiX.%d at 0x%x: controller busy, status=%b\n", < unit, port, inb (port + AR_STATUS), ARS_BITS)); < return (0); < } < -- Ivan Pulleyn work: Millennium Computer home: 44 Anthony Street ivan@torpid.com 2851 Clover Street Rochester, NY 14619 http://www.torpid.com/ Pittsford, NY 14534 716 235-1206 sleep- 716 248-0510 x 234