iPXE
Defines | 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.

Defines

#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 []

Define Documentation

#define WLAN_HOSTIF   WLAN_PCI

Definition at line 32 of file prism2_pci.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER  )
static int prism2_pci_probe ( struct nic nic,
struct pci_device pci 
) [static]

Definition at line 35 of file prism2_pci.c.

References hw_global, ioremap(), hfa384x::membase, pci_device::membase, printf(), and prism2_probe().

                                                                        {
  hfa384x_t *hw = &hw_global;

  printf ( "Prism2.5 has registers at %#lx\n", pci->membase );
  hw->membase = ioremap ( pci->membase, 0x100 );

  nic->ioaddr = pci->membase;
  nic->irqno = 0;

  return prism2_probe ( nic, hw );
}
static void prism2_pci_disable ( struct nic nic) [static]

Definition at line 47 of file prism2_pci.c.

References prism2_disable().

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

Variable Documentation

struct pci_device_id prism2_pci_nics[] [static]
Initial value:
 {
PCI_ROM(0x1260, 0x3873, "prism2_pci",   "Harris Semiconductor Prism2.5 clone", 0),
}

Definition at line 51 of file prism2_pci.c.