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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #include <gpxe/pci.h>
  15. #include <nic.h>
  16. #define WLAN_HOSTIF WLAN_PCI
  17. #include "prism2.c"
  18. static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) {
  19. hfa384x_t *hw = &hw_global;
  20. printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
  21. hw->membase = ioremap ( pci->membase, 0x100 );
  22. nic->ioaddr = pci->membase;
  23. nic->irqno = 0;
  24. return prism2_probe ( nic, hw );
  25. }
  26. static void prism2_pci_disable ( struct nic *nic ) {
  27. prism2_disable ( nic );
  28. }
  29. static struct pci_device_id prism2_pci_nics[] = {
  30. PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
  31. PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170", 0),
  32. PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520", 0),
  33. };
  34. PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
  35. DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
  36. prism2_pci_probe, prism2_pci_disable );
  37. /*
  38. * Local variables:
  39. * c-basic-offset: 8
  40. * c-indent-level: 8
  41. * tab-width: 8
  42. * End:
  43. */