prism2_pci.c

Go to the documentation of this file.
00001 /**************************************************************************
00002 Etherboot -  BOOTP/TFTP Bootstrap Program
00003 Prism2 NIC driver for Etherboot
00004 Wrapper for prism2_pci
00005 
00006 Written by Michael Brown of Fen Systems Ltd
00007 $Id$
00008 ***************************************************************************/
00009 
00010 /*
00011  * This program is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU General Public License as
00013  * published by the Free Software Foundation; either version 2, or (at
00014  * your option) any later version.
00015  */
00016 
00017 FILE_LICENCE ( GPL2_OR_LATER );
00018 
00019 #include <gpxe/pci.h>
00020 #include <nic.h>
00021 
00022 #define WLAN_HOSTIF WLAN_PCI
00023 #include "prism2.c"
00024 
00025 static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) {
00026   hfa384x_t *hw = &hw_global;
00027 
00028   printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
00029   hw->membase = ioremap ( pci->membase, 0x100 );
00030 
00031   nic->ioaddr = pci->membase;
00032   nic->irqno = 0;
00033 
00034   return prism2_probe ( nic, hw );
00035 }
00036 
00037 static void prism2_pci_disable ( struct nic *nic ) {
00038   prism2_disable ( nic );
00039 }
00040 
00041 static struct pci_device_id prism2_pci_nics[] = {
00042 PCI_ROM(0x1260, 0x3873, "prism2_pci",   "Harris Semiconductor Prism2.5 clone", 0),
00043 PCI_ROM(0x1260, 0x3873, "hwp01170",     "ActionTec HWP01170", 0),
00044 PCI_ROM(0x1260, 0x3873, "dwl520",       "DLink DWL-520", 0),
00045 };
00046 
00047 PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
00048 
00049 DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
00050          prism2_pci_probe, prism2_pci_disable );
00051 
00052 /*
00053  * Local variables:
00054  *  c-basic-offset: 8
00055  *  c-indent-level: 8
00056  *  tab-width: 8
00057  * End:
00058  */

Generated on Tue Apr 6 20:01:02 2010 for gPXE by  doxygen 1.5.7.1