From owner-freebsd-mobile Mon Mar 12 2:17:12 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id E38D137B718; Mon, 12 Mar 2001 02:17:06 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id LAA45917; Mon, 12 Mar 2001 11:17:02 +0100 (CET) (envelope-from sos) From: Soren Schmidt Message-Id: <200103121017.LAA45917@freebsd.dk> Subject: Re: iomega clik! In-Reply-To: <200103111037.LAA95252@freebsd.dk> from Soren Schmidt at "Mar 11, 2001 11:37:31 am" To: sos@freebsd.dk (Soren Schmidt) Date: Mon, 12 Mar 2001 11:17:02 +0100 (CET) Cc: imp@harmony.village.org (Warner Losh), sos@FreeBSD.ORG, mobile@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org It seems Soren Schmidt wrote: > It seems Warner Losh wrote: > > I'll look at this asap, some of it should be dealt with a bit > differently, I'll be back with a new patch... OK, here is the "official" patch for the clik, the detach part is handled by another patch set I have in the wings, that deals with prober detach/attach of devices, but thats for another time.. Anyhow I cannot test this, so please let me know if this makes the clik work... Index: atapi-fd.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/atapi-fd.c,v retrieving revision 1.58 diff -u -r1.58 atapi-fd.c --- atapi-fd.c 2001/03/06 09:42:46 1.58 +++ atapi-fd.c 2001/03/12 07:48:11 @@ -140,6 +146,19 @@ 0, 0, 0, 0, 0, 0, 0 }; int count, error = 0; + /* The IOMEGA Clik! doesn't support reading the cap page, fake it */ + if (!strncmp(ATA_PARAM(fdp->atp->controller, fdp->atp->unit)->model, + "IOMEGA Clik!", 12)) { + fdp->transfersize = 64; + fdp->cap.transfer_rate = 500; + fdp->cap.heads = 1; + fdp->cap.sectors = 2; + fdp->cap.cylinders = 39441; + fdp->cap.sector_size = 512; + atapi_test_ready(fdp->atp); + return 0; + } + bzero(buffer, sizeof(buffer)); /* get drive capabilities, some drives needs this repeated */ for (count = 0 ; count < 5 ; count++) { -Soren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message