Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Split out from 3c509.c to make build process more sane
  3. *
  4. */
  5. #include "etherboot.h"
  6. #include "mca.h"
  7. #include "isa.h"
  8. #include "nic.h"
  9. #include "3c509.h"
  10. /*
  11. * Several other pieces of the MCA support code were shamelessly
  12. * borrowed from the Linux kernel source.
  13. *
  14. * MCA support added by Adam Fritzler (mid@auk.cx)
  15. *
  16. * Generalised out of the 3c529 driver and into a bus type by Michael
  17. * Brown <mbrown@fensystems.co.uk>
  18. *
  19. */
  20. static int t529_probe ( struct dev *dev, struct mca_device *mca ) {
  21. struct nic *nic = nic_device ( dev );
  22. /* Retrieve NIC parameters from MCA device parameters */
  23. nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
  24. nic->irqno = mca->pos[5] & 0x0f;
  25. printf ( "%s board found on MCA at %#hx IRQ %d -",
  26. dev->name, nic->ioaddr, nic->irqno );
  27. /* Hand off to generic t5x9 probe routine */
  28. return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff );
  29. }
  30. static struct mca_id el3_mca_adapters[] = {
  31. { "3Com 3c529 EtherLink III (10base2)", 0x627c },
  32. { "3Com 3c529 EtherLink III (10baseT)", 0x627d },
  33. { "3Com 3c529 EtherLink III (test mode)", 0x62db },
  34. { "3Com 3c529 EtherLink III (TP or coax)", 0x62f6 },
  35. { "3Com 3c529 EtherLink III (TP)", 0x62f7 },
  36. };
  37. static struct mca_driver t529_driver
  38. = MCA_DRIVER ( "3c529", el3_mca_adapters );
  39. BOOT_DRIVER ( "3c529", find_mca_boot_device, &t529_driver, t529_probe );
  40. ISA_ROM( "3c529", "3c529 == MCA 3c509" );