prism2_pci.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00054
00055
00056
00057
00058