iPXE
Macros | Functions | Variables
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)
 
 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)
 

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()

static 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 }
unsigned char irqno
Definition: nic.h:56
unsigned long membase
Memory base.
Definition: pci.h:215
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:464
Definition: hw.c:16
unsigned int ioaddr
Definition: nic.h:55
static hfa384x_t hw_global
Definition: prism2.c:143
Definition: nic.h:49
static int prism2_probe(struct nic *nic, hfa384x_t *hw)
Definition: prism2.c:769
void * pci_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.

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

◆ prism2_pci_disable()

static void prism2_pci_disable ( struct nic nic)
static

Definition at line 47 of file prism2_pci.c.

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

References prism2_disable().

◆ PCI_DRIVER()

PCI_DRIVER ( prism2_pci_driver  ,
prism2_pci_nics  ,
PCI_NO_CLASS   
)

◆ DRIVER()

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

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:303

Definition at line 51 of file prism2_pci.c.