1 /**************************************************************************
2 Etherboot - BOOTP/TFTP Bootstrap Program
3 Prism2 NIC driver for Etherboot
6 Written by Michael Brown of Fen Systems Ltd
8 ***************************************************************************/
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 of the
14 * License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 FILE_LICENCE ( GPL2_OR_LATER );
32 #define WLAN_HOSTIF WLAN_PCI
35 static int prism2_pci_probe ( struct nic *nic, struct pci_device *pci ) {
36 hfa384x_t *hw = &hw_global;
38 printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
39 hw->membase = ioremap ( pci->membase, 0x100 );
41 nic->ioaddr = pci->membase;
44 return prism2_probe ( nic, hw );
47 static void prism2_pci_disable ( struct nic *nic ) {
48 prism2_disable ( nic );
51 static struct pci_device_id prism2_pci_nics[] = {
52 PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
55 PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
57 DRIVER ( "Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver,
58 prism2_pci_probe, prism2_pci_disable );