[PATCH] CEM28/CEM33 support added to xe driver

Scott Mitchell scott+freebsd at fishballoon.org
Sun Jun 15 05:22:59 PDT 2003


Hi Warner,

I've added another patch to kern/50664.  This patch adds support for the
Ethernet side of the CEM28 and CEM33 10Mbps Ethernet/modem combo cards.
The driver now works well with all the cards I have to test against (a CE2,
CE3, CEM28 and CEM33).

There are a couple of gotchas to be aware of:
- My CEM28 (and all others, as far as I know) has its MAC address in a
  non-standard location in the CIS.  Ultimately some quirk code will be
  required to deal with this, but for now I've just added 'ether 0x98' to
  the relevant pccard.conf entry.
- I/O port selection for the CEM28 and CEM33 is a bit crufty -- it needs to
  find a port range adjacent to whichever sio port range the pccard layer
  has picked from the CIS config entries.  I needed to disable one of the
  onboard serial ports on my laptop to free up enough I/O space in the
  right place.  Some combination of disabling ports and picking the right
  CIS config entry will probably be required.
- I still have no idea how all of this works (or doesn't) with NEWCARD.

IMHO this is now ready to be committed, although obviously it should be
reviewed and hopefully tested a bit more by other people first.  There is
more work I'd like to do on it (media selection, miibus integration (?),
NEWCARD-ification) but as I've reached a point where everything at least
works, I'd like to get it into the tree.  If nothing else, that would
encourage me to backport it to 4.x, which is where most users of the driver
seem to be.

Let me know if you want a diff with all the changes in kern/50644 against
-CURRENT.  I'm not sure all the changes in there still apply cleanly.

Cheers,

	Scott

-- 
===========================================================================
Scott Mitchell           | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England       | 0x54B171B9 |  don't get sucked into jet engines"
scott at fishballoon.org | 0xAA775B8B |      -- Anon


More information about the freebsd-mobile mailing list