Classes | Functions

base/host/hostpcicfg.cc File Reference

#include "nul/motherboard.h"
#include "sys/semaphore.h"

Classes

struct  PciConfigAccess
 PCI config space access. More...

Functions

 PARAM (pcicfg,{MessageHostOp msg0(MessageHostOp::OP_ALLOC_SEMAPHORE, 0UL);check0(!mb.bus_hostop.send(msg0),"%s could not allocate semaphore\n", __PRETTY_FUNCTION__);MessageHostOp msg1(MessageHostOp::OP_ALLOC_IOIO_REGION,(PciConfigAccess::BASE<< 8)|3);check0(!mb.bus_hostop.send(msg1),"%s could not allocate ioports %x+8\n", __PRETTY_FUNCTION__, PciConfigAccess::BASE);Device *dev=new PciConfigAccess(mb.bus_hwioin, mb.bus_hwioout, msg0.value);mb.bus_hwpcicfg.add(dev, PciConfigAccess::receive_static< MessagePciConfig >);},"pcicfg - provide HW PCI config space access through IO ports 0xcf8/0xcfc.")

Function Documentation

PARAM ( pcicfg   ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines