Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jan 2000 10:04:47 -0700
From:      Warner Losh <imp@village.org>
To:        rohrbach@nacamar.net
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: vaio n505x questions 
Message-ID:  <200001071704.KAA86330@harmony.village.org>
In-Reply-To: Your message of "Fri, 07 Jan 2000 17:53:04 %2B0100." <20000107175304.B35686@nacamar.net> 
References:  <20000107175304.B35686@nacamar.net>  <20000107015318.A68369@nacamar.net> <20000106193034.B57591@nacamar.net> <Pine.BSF.4.10.10001062029230.3591-100000@mobile.webweaving.org> <20000107015318.A68369@nacamar.net> <200001070618.XAA83589@harmony.village.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001071704.KAA86330>