Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 1999 00:44:23 -0600
From:      Warner Losh <imp@village.org>
To:        mobile@freebsd.org, current@freebsd.org, committers@freebsd.org
Subject:   Massive pccard disruptions to continue
Message-ID:  <199910230644.AAA27296@harmony.village.org>

next in thread | raw e-mail | index | archive | help
OK.  I'm getting ready to commit the sio modem changes to make it work
with pccard.  This is a heads up that how ep is configured has changed
to be more sane for pccard, and also that things may be massively
unstable for a few days.  That's the nature of current.  I have a
couple of minor issues to take care of before I actually do the
commit.

To summarize the changes, I killed the legacy PCCARD_MODULE macro and
all things associated with it.  It is not longer emulated, even in the
slightest.  Everything is done via newbus.  This kills lots and lots
lines and makes it possible for newbus attachments, and only newbus
attachments.  Also, pccardd no longer sets the unit number, so the
unit numbers have changed.  The ep driver is hit by this since it
checks against NEP (this should be fixed, btw) in places.

This breaks all PCCARD drivers, except those that have been converted.
I've converted ep and sio.  Ed will follow by me or someone else very
shortly.  I've also heard that people are interested in getting the
pccard support for floppy as well.  Look at sio or ep for a cut and
paste model of how to do things.  Neither is perfect, but can be used
if you absolutely MUST upgrade the driver before the new pccard code
can be committed, ported and stabilized.

If you are dying to try out the sio patches before they make it into
the tree, one can grab a snapshot I just made from

	http://www.freebsd.org/~imp/pccard-snap.patch		[**]

which contain many known problems that I'm working on correcting.  I
have some debug writes I need to remove, one minor issue with the
message
	ep0: eeprom failed to come ready
issued twice, but it seems to work none the less.  Cards cannot be
ejected for reasons unknown at this time.  DO NOT RUN THESE PATCHES
UNLESS YOU HAVE A BACKUP KERNEL IN CASE I'VE BROKEN YOUR LAPTOP.  READ
THE PATCH FOR MINOR, BUT IMPORTANT CHANGES TO HOW EP IS CONFIGURED.

Many thanks to Doug Rabson and Peter Wemm for their help, patient
explainations and goading while at FreeBSD Con '99.  Without this, I
wouldn't have been able to make this work.  Thanks also to Peter for
the patches that helped me understand sio's problem better and allowed
me to make this work.  I appologize to them that I was unable to get
them done at FreeBSD CON'99.

Comments to me...

Warner

P.S.  I wish I could add pictures of the happy dance I did after
seeing the many pictures of this on the FreeBSD CON pictures web
site...

[*] Unless absolutely necessary...
[**] Keep trying if this file isn't there...  I'm generating it now as
I type.  I'm generating them from my laptop connected via the ep
driver...  They may also contain other things as well, but should be
fairly clean:
wc pccard-snap.patch
    3389   12760   91407 pccard-snap.patch



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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