From owner-freebsd-mobile Fri Jan 7 9: 4:53 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 08E6415826 for ; Fri, 7 Jan 2000 09:04:49 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id KAA16799; Fri, 7 Jan 2000 10:04:47 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA86330; Fri, 7 Jan 2000 10:04:47 -0700 (MST) Message-Id: <200001071704.KAA86330@harmony.village.org> To: rohrbach@nacamar.net Subject: Re: vaio n505x questions Cc: freebsd-mobile@FreeBSD.ORG In-reply-to: Your message of "Fri, 07 Jan 2000 17:53:04 +0100." <20000107175304.B35686@nacamar.net> References: <20000107175304.B35686@nacamar.net> <20000107015318.A68369@nacamar.net> <20000106193034.B57591@nacamar.net> <20000107015318.A68369@nacamar.net> <200001070618.XAA83589@harmony.village.org> Date: Fri, 07 Jan 2000 10:04:47 -0700 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <20000107175304.B35686@nacamar.net> "Karsten W. Rohrbach" writes: : Warner Losh (imp@village.org) @ Thu, Jan 06, 2000 at 11:18:39PM -0700: : > In message <20000107015318.A68369@nacamar.net> "Karsten W. Rohrbach" writes: : > : apparently i cant get sound and ata for the pccard cdrom ("" : > : "NinjaATA-") to work... : > : > ata doesn't support pccard attachments right now. : : warner, now should i use wd* again (i thought this one should be : obsolete with ata) or use wdc[01] for attaching just the cdrom? can i : use ata and wdc at the same time? Don't use wd unless you have to. I have some patches (http://www.freebsd.org/~imp/ata-patch) which applied to -current as of a few days ago w/o a hitch. They support only the ata flash, but not cdrom. I'll kludge something up so that they support both. Or you could do it :-). If you look at this part of the patch: ... + /* Allocate the port range */ + rid = 0; + port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 16, RF_ACTIVE); + /* XXX 16 shouldn't be hard coded */ + + if (!port) + return (ENOMEM); ... + lun = 0; + res = ata_probe(rman_get_start(port), + rman_get_start(port) + ATA_ALTPORT_ONE_WINDOW, 0, dev, &lun); ... You'll see the problem. Somehow, by magic, one must deside to use the one window code or not. I suggest a device flag bit and switch off of them. The rest of the infrastructure should be in place. Lemme know if you come up with a better patch :-). Or you could just hard code it for you by changing the 16 to 8 and changing offset in ata_probe to ATA_ALTPORT. I don't have a ata cdrom card I can test with easily. The only one I have is a atapi floppy which dies for reasons unknown. I do have my eye on a vaio cdrom... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message