|
|
1.1 root 1: /**************************************************************************
2: Etherboot - BOOTP/TFTP Bootstrap Program
3: Prism2 NIC driver for Etherboot
4: Wrapper for prism2_pci
5:
6: Written 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:
17: FILE_LICENCE ( GPL2_OR_LATER );
18:
19: #include <ipxe/pci.h>
20: #include <nic.h>
21:
22: #define WLAN_HOSTIF WLAN_PCI
23: #include "prism2.c"
24:
25: static 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:
37: static void prism2_pci_disable ( struct nic *nic ) {
38: prism2_disable ( nic );
39: }
40:
41: static struct pci_device_id prism2_pci_nics[] = {
42: PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
43: PCI_ROM(0x1260, 0x3873, "hwp01170", "ActionTec HWP01170", 0),
44: PCI_ROM(0x1260, 0x3873, "dwl520", "DLink DWL-520", 0),
45: };
46:
47: PCI_DRIVER ( prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS );
48:
49: DRIVER ( "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: */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.