home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5361 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.8 KB  |  74 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!sgiblab!tsoft!mdurkin
  3. From: mdurkin@tsoft.sf-bay.org (Mike Durkin)
  4. Subject: Re: Danpex EW-2016 Ethernet card on 386BSD?
  5. Message-ID: <1992Sep9.050718.8599@tsoft.sf-bay.org>
  6. Organization: The TeleSoft BBS and Public Access Unix, +1 415 969 7958
  7. References: <5fnntrg.alm@netcom.com>
  8. Date: Wed, 9 Sep 1992 05:07:18 GMT
  9. Lines: 63
  10.  
  11. In article <5fnntrg.alm@netcom.com> alm@netcom.com (Andrew Moore) writes:
  12. >Danpex EW-2016 is an inexpensive (US$85.) allegedly WD8013-compatible
  13. >ethernet card.  I was wondering if anyone has gotten 386BSD to
  14. >recognize it, and if so, what configuration and jumper settings they
  15. >used.
  16.  
  17. I have one of these cards also and after fiddling a bit with the source
  18. found that the checksum in the probe fails.  I commented it out and am
  19. using the card successfully, NFS mounting to and from my Sun3s with no
  20. problems.
  21.  
  22. in if_we.c, change it to something like...
  23. --- cut ---
  24.     /*
  25.      * Here we check the card ROM, if the checksum passes, and the
  26.      * type code and ethernet address check out, then we know we have
  27.      * a wd8003 card.
  28.      *
  29.      * Autoconfiguration: No warning message is printed on error.
  30.      */
  31.     for (sum = 0, i = 0; i < 8; ++i)
  32.         sum += inb(is->id_iobase + WD_ROM_OFFSET + i);
  33.     if (sum != WD_CHECKSUM)
  34.         {
  35.             printf("we: probe: checksum failed... installing anyway\n");
  36.             /* return (0); */
  37.         }
  38.     sc->we_type = inb(is->id_iobase + WD_ROM_OFFSET + 6);
  39. --- cut ---
  40.  
  41. Since irq2 == irq9, I kept the INSTALL.NOTES defaults for the settings
  42. and the only changes I made to the cards defaults was to set the irq
  43. jumper to IRQ9 (2), and I think I took off the boot prom jumper although
  44. there isn't a prom anyway.
  45.  
  46.  
  47. [...]
  48. >
  49. >But it is not clear what "iomem" should be.  The default for we0 is
  50. >0xd0000.  I presume this corresponds to the "RAM buffer base address"
  51. >jumper setting on the EW-2016.  If so, these addresses appear to be
  52. >tied to specific interrupt values.  For IRQ 15, for instance, I/O
  53. >(i.e., port) address 0x200 and iomem 0xdc00 (sic) are required.  I
  54.  
  55. I think this is just the way the examples are put together in the docs...
  56. don't think they're tied together.
  57.  
  58. >tried iomem 0xdc000 too (with appropriate changes to the kernel), but
  59. >this didn't work either.  What are the implications, if any, of such
  60. >small iomem values (i.e., 0xd000 as opposed to 0xd0000)?
  61. >
  62. >Finally, the default iosiz for we0 is 8K (8196).  Does it matter that
  63. >the EW-2016 RAM buffer size is 16K?  I tried both iosiz 8196 and 16384
  64. >to no avail.
  65.  
  66. I don't completely understand the PROM and memory addressing myself...
  67. can someone explain this?  Unless I'm missing something, I only see
  68. how to set the prom address and not how to pick where the iomem goes.
  69.  
  70.      Mike
  71.  
  72. -- 
  73. Mike Durkin / mdurkin@tsoft.sf-bay.org -or- apple!tsoft!mdurkin
  74.