You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3c529.c 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Split out from 3c509.c to make build process more sane
  3. *
  4. */
  5. #include "etherboot.h"
  6. #include <gpxe/mca.h>
  7. #include <gpxe/isa.h> /* for ISA_ROM */
  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 nic *nic, struct mca_device *mca ) {
  21. /* Retrieve NIC parameters from MCA device parameters */
  22. nic->ioaddr = ( ( mca->pos[4] & 0xfc ) | 0x02 ) << 8;
  23. nic->irqno = mca->pos[5] & 0x0f;
  24. printf ( "3c529 board found on MCA at %#hx IRQ %d -",
  25. nic->ioaddr, nic->irqno );
  26. /* Hand off to generic t5x9 probe routine */
  27. return t5x9_probe ( nic, MCA_ID ( mca ), 0xffff );
  28. }
  29. static void t529_disable ( struct nic *nic, struct mca_device *mca __unused ) {
  30. t5x9_disable ( nic );
  31. }
  32. static struct mca_device_id el3_mca_adapters[] = {
  33. { "3Com 3c529 EtherLink III (10base2)", 0x627c },
  34. { "3Com 3c529 EtherLink III (10baseT)", 0x627d },
  35. { "3Com 3c529 EtherLink III (test mode)", 0x62db },
  36. { "3Com 3c529 EtherLink III (TP or coax)", 0x62f6 },
  37. { "3Com 3c529 EtherLink III (TP)", 0x62f7 },
  38. };
  39. MCA_DRIVER ( t529_driver, el3_mca_adapters );
  40. DRIVER ( "3c529", nic_driver, mca_driver, t529_driver,
  41. t529_probe, t529_disable );
  42. ISA_ROM( "3c529", "3c529 == MCA 3c509" );
  43. /*
  44. * Local variables:
  45. * c-basic-offset: 8
  46. * c-indent-level: 8
  47. * tab-width: 8
  48. * End:
  49. */