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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  22. * 02110-1301, USA.
  23. */
  24. FILE_LICENCE ( GPL2_OR_LATER );
  25. #include <ipxe/pci.h>
  26. #include <nic.h>
  27. #define WLAN_HOSTIF WLAN_PCI
  28. #include "prism2.c"
  29. static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) {
  30. hfa384x_t *hw = &hw_global;
  31. printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
  32. hw->membase = ioremap ( pci->membase, 0x100 );
  33. nic->ioaddr = pci->membase;
  34. nic->irqno = 0;
  35. return prism2_probe ( nic, hw );
  36. }
  37. static void prism2_pci_disable ( struct nic *nic ) {
  38. prism2_disable ( nic );
  39. }
  40. static struct pci_device_id prism2_pci_nics[] = {
  41. PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
  42. };
  43. PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
  44. DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
  45. prism2_pci_probe, prism2_pci_disable );
  46. /*
  47. * Local variables:
  48. * c-basic-offset: 8
  49. * c-indent-level: 8
  50. * tab-width: 8
  51. * End:
  52. */