[realtek] SMC 1211 and SMP kernel compiling

Donald Becker becker@scyld.com
Thu, 8 Feb 2001 09:22:18 -0500 (EST)


On Thu, 8 Feb 2001, Forest Denger wrote:

>  I'm sorry if this has already been answered, but i cannot find it on
> your website. I have the SMC 1211tx card and i need to compile your
> driver for my debian machine. I have my own kernel 2.2.18 compiled
> with SMP option. The older version of this driver (off smc's website
> its very old 1.06 i think) has a command at the bottom with directions
> to compile for SMP machines. however, i have downloaded your
> netpack.tgz file, and there are no instructions for SMP support.

You no longer need a different compile line for SMP systems.

The drivers now use the following snippet of code:
____
#include <linux/config.h>
#if defined(CONFIG_SMP) && ! defined(__SMP__)
#define __SMP__
#endif
____
This has the drawback of requiring the correct config.h file to exist,
but it now must exist for other configuration options.

> also, in the Makefile on the netdrivers.tgz file renames the RTL and
> tulip drivers to put _cb at the end to denote cardbus drivers.

The almost-duplicate *_cb.o driver is an old scheme from before August 1999.
A single driver will now work with PCI, CardBus and hot-swap PCI.
CardBus cards require the cb_shim.o module to work with David Hinds
PCMCIA package.

Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993