iPXE
prism2_pci.c File Reference
#include <ipxe/pci.h>
#include <nic.h>
#include "prism2.c"

Go to the source code of this file.

Macros

#define WLAN_HOSTIF   WLAN_PCI

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static int prism2_pci_probe (struct nic *nic, struct pci_device *pci)
static void prism2_pci_disable (struct nic *nic, void *hwdev __unused)
 PCI_DRIVER (prism2_pci_driver, prism2_pci_nics, PCI_NO_CLASS)
 DRIVER ("Prism2/PCI", nic_driver, pci_driver, prism2_pci_driver, prism2_pci_probe, prism2_pci_disable, no_fake_bss)

Variables

static struct pci_device_id prism2_pci_nics []

Macro Definition Documentation

◆ WLAN_HOSTIF

#define WLAN_HOSTIF   WLAN_PCI

Definition at line 32 of file prism2_pci.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER )

◆ prism2_pci_probe()

int prism2_pci_probe ( struct nic * nic,
struct pci_device * pci )
static

Definition at line 35 of file prism2_pci.c.

35 {
37
38 printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
39 hw->membase = pci_ioremap ( pci, pci->membase, 0x100 );
40
41 nic->ioaddr = pci->membase;
42 nic->irqno = 0;
43
44 return prism2_probe ( nic, hw );
45}
void * pci_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
static int prism2_probe(struct nic *nic, hfa384x_t *hw)
Definition prism2.c:769
static hfa384x_t hw_global
Definition prism2.c:143
struct hfa384x hfa384x_t
Definition hw.c:16
Definition nic.h:49
unsigned char irqno
Definition nic.h:56
unsigned int ioaddr
Definition nic.h:55
unsigned long membase
Memory base.
Definition pci.h:220
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition vsprintf.c:465

References hw_global, nic::ioaddr, nic::irqno, pci_device::membase, pci_ioremap(), printf(), and prism2_probe().

Referenced by DRIVER().

◆ prism2_pci_disable()

void prism2_pci_disable ( struct nic * nic,
void *hwdev __unused )
static

Definition at line 47 of file prism2_pci.c.

47 {
49}
static void prism2_disable(struct nic *nic __unused)
Definition prism2.c:736

References __unused, and prism2_disable().

Referenced by DRIVER().

◆ PCI_DRIVER()

PCI_DRIVER ( prism2_pci_driver ,
prism2_pci_nics ,
PCI_NO_CLASS  )

References prism2_pci_nics.

◆ DRIVER()

DRIVER ( "Prism2/PCI" ,
nic_driver ,
pci_driver ,
prism2_pci_driver ,
prism2_pci_probe ,
prism2_pci_disable ,
no_fake_bss  )

Variable Documentation

◆ prism2_pci_nics

struct pci_device_id prism2_pci_nics[]
static
Initial value:
= {
PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
}
#define PCI_ROM(_vendor, _device, _name, _description, _data)
Definition pci.h:308

Definition at line 51 of file prism2_pci.c.

51 {
52PCI_ROM(0x1260, 0x3873, "prism2_pci", "Harris Semiconductor Prism2.5 clone", 0),
53};

Referenced by PCI_DRIVER().