1/************************************************************************** 2Etherboot - BOOTP/TFTP Bootstrap Program 3Prism2 NIC driver for Etherboot 4Wrapper for prism2_pci 5 6Written by Michael Brown of Fen Systems Ltd 7$Id$ 8***************************************************************************/ 9 10/* 11 * This program is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU General Public License as 13 * published by the Free Software Foundation; either version 2, or (at 14 * your option) any later version. 15 */ 16 17FILE_LICENCE ( GPL2_OR_LATER ); 18 19#include <gpxe/pci.h> 20#include <nic.h> 21 22#define WLAN_HOSTIF WLAN_PCI 23#include "prism2.c" 24 25static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) { 26 hfa384x_t *hw = &hw_global; 27 28 printf ( "Prism2.5 has registers at %#lx\n", pci->membase ); 29 hw->membase = ioremap ( pci->membase, 0x100 ); 30 31 nic->ioaddr = pci->membase; 32 nic->irqno = 0; 33 34 return prism2_probe ( nic, hw ); 35} 36 37static void prism2_pci_disable ( struct nic *nic ) { 38 prism2_disable ( nic ); 39} 40 41static struct pci_device_id prism2_pci_nics[] = { 42PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0), 43PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170", 0), 44PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520", 0), 45}; 46 47PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS ); 48 49DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver, 50 prism2_pci_probe, prism2_pci_disable ); 51 52/* 53 * Local variables: 54 * c-basic-offset: 8 55 * c-indent-level: 8 56 * tab-width: 8 57 * End: 58 */ 59