Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

networking/cs89x0.txt: delete stale information about hand patching

Output of a git grep happened to make me look into this file, and
I found instructions about how to hand patch (without using patch)
the driver into the kernel tree.

Since the driver has been a part of the mainline kernel for years,
we can dump this whole section. Fortunately it doesn't even cause
a renumbering of the sections to do so.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Paul Gortmaker and committed by
David S. Miller
00494be4 18aafc62

-79
-79
Documentation/networking/cs89x0.txt
··· 36 36 4.1 Compiling the Driver as a Loadable Module 37 37 4.2 Compiling the driver to support memory mode 38 38 4.3 Compiling the driver to support Rx DMA 39 - 4.4 Compiling the Driver into the Kernel 40 39 41 40 5.0 TESTING AND TROUBLESHOOTING 42 41 5.1 Known Defects and Limitations ··· 362 363 The compile-time optionality for DMA was removed in the 2.3 kernel 363 364 series. DMA support is now unconditionally part of the driver. It is 364 365 enabled by the 'use_dma=1' module option. 365 - 366 - 4.4 COMPILING THE DRIVER INTO THE KERNEL 367 - 368 - If your Linux distribution already has support for the cs89x0 driver 369 - then simply copy the source file to the /usr/src/linux/drivers/net 370 - directory to replace the original ones and run the make utility to 371 - rebuild the kernel. See Step 3 for rebuilding the kernel. 372 - 373 - If your Linux does not include the cs89x0 driver, you need to edit three 374 - configuration files, copy the source file to the /usr/src/linux/drivers/net 375 - directory, and then run the make utility to rebuild the kernel. 376 - 377 - 1. Edit the following configuration files by adding the statements as 378 - indicated. (When possible, try to locate the added text to the section of the 379 - file containing similar statements). 380 - 381 - 382 - a.) In /usr/src/linux/drivers/net/Config.in, add: 383 - 384 - tristate 'CS89x0 support' CONFIG_CS89x0 385 - 386 - Example: 387 - 388 - if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then 389 - tristate 'ICL EtherTeam 16i/32 support' CONFIG_ETH16I 390 - fi 391 - 392 - tristate 'CS89x0 support' CONFIG_CS89x0 393 - 394 - tristate 'NE2000/NE1000 support' CONFIG_NE2000 395 - if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then 396 - tristate 'NI5210 support' CONFIG_NI52 397 - 398 - 399 - b.) In /usr/src/linux/drivers/net/Makefile, add the following lines: 400 - 401 - ifeq ($(CONFIG_CS89x0),y) 402 - L_OBJS += cs89x0.o 403 - else 404 - ifeq ($(CONFIG_CS89x0),m) 405 - M_OBJS += cs89x0.o 406 - endif 407 - endif 408 - 409 - 410 - c.) In /linux/drivers/net/Space.c file, add the line: 411 - 412 - extern int cs89x0_probe(struct device *dev); 413 - 414 - 415 - Example: 416 - 417 - extern int ultra_probe(struct device *dev); 418 - extern int wd_probe(struct device *dev); 419 - extern int el2_probe(struct device *dev); 420 - 421 - extern int cs89x0_probe(struct device *dev); 422 - 423 - extern int ne_probe(struct device *dev); 424 - extern int hp_probe(struct device *dev); 425 - extern int hp_plus_probe(struct device *dev); 426 - 427 - 428 - Also add: 429 - 430 - #ifdef CONFIG_CS89x0 431 - { cs89x0_probe,0 }, 432 - #endif 433 - 434 - 435 - 2.) Copy the driver source files (cs89x0.c and cs89x0.h) 436 - into the /usr/src/linux/drivers/net directory. 437 - 438 - 439 - 3.) Go to /usr/src/linux directory and run 'make config' followed by 'make' 440 - (or make bzImage) to rebuild the kernel. 441 - 442 - 4.) Use the DOS 'setup' utility to disable plug and play on the NIC. 443 366 444 367 445 368 5.0 TESTING AND TROUBLESHOOTING