Stubs for accessing the PCI driver

This commit is contained in:
Philip Homburg
2005-12-02 14:41:46 +00:00
parent b3cd15b01b
commit 3dd0a97049
12 changed files with 391 additions and 0 deletions

23
lib/syslib/pci_init.c Normal file
View File

@@ -0,0 +1,23 @@
/*
pci_init.c
*/
#include "syslib.h"
#include <minix/sysutil.h>
/*===========================================================================*
* pci_init *
*===========================================================================*/
PUBLIC void pci_init()
{
int r;
message m;
m.m_type= BUSC_PCI_INIT;
r= sendrec(PCI_PROC_NR, &m);
if (r != 0)
panic("pci", "pci_init: can't talk to PCI", r);
if (m.m_type != 0)
panic("pci", "pci_init: got bad reply from PCI", m.m_type);
}