Date: Mon, 12 Mar 2001 11:17:02 +0100 (CET) From: Soren Schmidt <sos@freebsd.dk> To: sos@freebsd.dk (Soren Schmidt) Cc: imp@harmony.village.org (Warner Losh), sos@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: iomega clik! Message-ID: <200103121017.LAA45917@freebsd.dk> In-Reply-To: <200103111037.LAA95252@freebsd.dk> from Soren Schmidt at "Mar 11, 2001 11:37:31 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103121017.LAA45917>