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.

prism2_pci.c 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**************************************************************************
  2. Etherboot - BOOTP/TFTP Bootstrap Program
  3. Prism2 NIC driver for Etherboot
  4. Wrapper for prism2_pci
  5. Written by Michael Brown of Fen Systems Ltd
  6. $Id$
  7. ***************************************************************************/
  8. /*
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2, or (at
  12. * your option) any later version.
  13. */
  14. FILE_LICENCE ( GPL2_OR_LATER );
  15. #include <gpxe/pci.h>
  16. #include <nic.h>
  17. #define WLAN_HOSTIF WLAN_PCI
  18. #include "prism2.c"
  19. static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) {
  20. hfa384x_t *hw = &hw_global;
  21. printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
  22. hw->membase = ioremap ( pci->membase, 0x100 );
  23. nic->ioaddr = pci->membase;
  24. nic->irqno = 0;
  25. return prism2_probe ( nic, hw );
  26. }
  27. static void prism2_pci_disable ( struct nic *nic ) {
  28. prism2_disable ( nic );
  29. }
  30. static struct pci_device_id prism2_pci_nics[] = {
  31. PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
  32. PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170", 0),
  33. PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520", 0),
  34. };
  35. PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
  36. DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
  37. prism2_pci_probe, prism2_pci_disable );
  38. /*
  39. * Local variables:
  40. * c-basic-offset: 8
  41. * c-indent-level: 8
  42. * tab-width: 8
  43. * End:
  44. */