Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

prism2_pci.c 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. uint32_t membase = 0; /* Prism2.5 Memory Base */
  21. pci_fill_nic ( nic, pci );
  22. pci_read_config_dword( pci, PRISM2_PCI_MEM_BASE, &membase);
  23. membase &= PCI_BASE_ADDRESS_MEM_MASK;
  24. hw->membase = (uint32_t) phys_to_virt(membase);
  25. printf ( "Prism2.5 has registers at %#x\n", hw->membase );
  26. nic->ioaddr = hw->membase;
  27. return prism2_probe ( nic, hw );
  28. }
  29. static void prism2_pci_disable ( struct nic *nic,
  30. struct pci_device *pci __unused ) {
  31. prism2_disable ( nic );
  32. }
  33. static struct pci_id prism2_pci_nics[] = {
  34. PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone"),
  35. PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170"),
  36. PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520"),
  37. };
  38. PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
  39. DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
  40. prism2_pci_probe, prism2_pci_disable );